Skip to content

Commit 465bee0

Browse files
committed
fix: downgrade jgit since to make jreleaser work
1 parent 8b5b46f commit 465bee0

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

build.gradle.kts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ plugins {
1111
kotlin("plugin.serialization") version "2.2.10"
1212
id("com.diffplug.spotless") version "7.2.1"
1313
id("io.kotest.multiplatform") version "5.9.1"
14-
id("org.jreleaser") version "1.17.0"
14+
id("org.jreleaser") version "1.19.0"
1515
id("pl.allegro.tech.build.axion-release") version "1.20.1"
1616
}
1717

@@ -37,6 +37,10 @@ version = rootProject.scmVersion.version
3737

3838
description = "MCP Server for GitHub Code Repositories Analysis"
3939

40+
buildscript {
41+
configurations.all { resolutionStrategy { force("org.eclipse.jgit:org.eclipse.jgit:6.10.1.202505221210-r") } }
42+
}
43+
4044
dependencies {
4145
val ktorVersion = "3.2.0"
4246
val coroutinesVersion = "1.10.2"
@@ -69,7 +73,7 @@ dependencies {
6973
implementation("ch.qos.logback:logback-classic:1.5.18")
7074

7175
// JGit for repository interaction
72-
implementation("org.eclipse.jgit:org.eclipse.jgit:5.13.3.202401111512-r")
76+
implementation("org.eclipse.jgit:org.eclipse.jgit:6.10.1.202505221210-r")
7377

7478
implementation("io.github.tree-sitter:ktreesitter-jvm:0.24.1")
7579

@@ -230,7 +234,7 @@ jreleaser {
230234

231235
release {
232236
github {
233-
enabled.set(false)
237+
enabled.set(true)
234238
overwrite.set(false)
235239
}
236240
}

src/test/kotlin/mcp/code/analysis/server/McpTest.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import io.modelcontextprotocol.kotlin.sdk.CallToolRequest
55
import io.modelcontextprotocol.kotlin.sdk.CallToolResult
66
import io.modelcontextprotocol.kotlin.sdk.TextContent
77
import io.modelcontextprotocol.kotlin.sdk.server.Server as SdkServer
8-
import kotlin.text.get
98
import kotlinx.coroutines.runBlocking
109
import kotlinx.serialization.json.JsonObject
1110
import kotlinx.serialization.json.JsonPrimitive
@@ -237,7 +236,6 @@ class McpTest {
237236
fun `check-analysis-status tool handler uses default branch if not provided`() = runBlocking {
238237
// Arrange
239238
val repoUrl = "https://github.com/test/repo"
240-
val defaultBranch = "main"
241239

242240
// Act
243241
serverUnderTest.configureServer()

0 commit comments

Comments
 (0)