@@ -32,12 +32,19 @@ sourceSets {
3232 }
3333}
3434
35+ val VERSION : String? by project
36+
37+ version = (VERSION ? : " LOCAL" )
38+
39+
40+ val mainMcpDesktopClass = " org.http4k.mcp.Http4kMcpDesktop"
41+
3542graalvmNative {
3643 toolchainDetection.set(true )
3744 binaries {
3845 named(" main" ) {
3946 imageName.set(" http4k-mcp-desktop" )
40- mainClass.set(" org.http4k.mcp.Http4kMcpDesktop " )
47+ mainClass.set(mainMcpDesktopClass )
4148 useFatJar.set(true )
4249 sharedLibrary.set(false )
4350
@@ -48,6 +55,20 @@ graalvmNative {
4855}
4956
5057tasks {
58+
59+ register(" generateVersionProperties" ) {
60+ doLast {
61+ file(" src/main/resources/version.properties" ).apply {
62+ parentFile.mkdirs()
63+ writeText(" version=${project.version} " )
64+ }
65+ }
66+ }
67+
68+ named(" processResources" ) {
69+ dependsOn(" generateVersionProperties" )
70+ }
71+
5172 withType<KotlinJvmCompile >().configureEach {
5273 compilerOptions {
5374 allWarningsAsErrors = false
@@ -70,14 +91,19 @@ dependencies {
7091 implementation(platform(" org.http4k:http4k-bom:$http4kVersion " ))
7192
7293 implementation(" dev.forkhandles:bunting4k:_" )
94+
95+ runtimeOnly(" org.slf4j:slf4j-nop:_" )
96+
97+ implementation(" com.jcabi:jcabi-manifests:_" )
98+
7399 implementation(Http4k .securityOauth)
74100 implementation(Http4k .client.websocket)
75- implementation(platform(" org.http4k:http4k-realtime-core " ))
101+ implementation(platform(Http4k .realtimeCore ))
76102
77- testImplementation(platform(" org .junit:junit- bom:_ " ))
78- testImplementation(" org .junit.jupiter:junit-jupiter- api" )
79- testImplementation(" org .junit.jupiter:junit-jupiter- engine" )
80- testImplementation(" org.http4k:http4k- testing- hamkrest" )
103+ testImplementation(platform(Testing .junit. bom))
104+ testImplementation(Testing .junit.jupiter. api)
105+ testImplementation(Testing .junit.jupiter. engine)
106+ testImplementation(Http4k . testing. hamkrest)
81107
82108// testImplementation(project(":http4k-mcp-sdk"))
83109 testImplementation(" org.http4k:http4k-server-helidon:_" )
0 commit comments