File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ plugins {
1313val generateLibVersion by tasks.registering {
1414 val outputDir = layout.buildDirectory.dir(" generated-sources/libVersion" )
1515 outputs.dir(outputDir)
16+
17+ // Capture version at configuration time to avoid configuration cache issues
18+ val projectVersion = project.version.toString()
1619
1720 doLast {
1821 val sourceFile = outputDir.get().file(" io/modelcontextprotocol/kotlin/sdk/LibVersion.kt" ).asFile
@@ -21,7 +24,7 @@ val generateLibVersion by tasks.registering {
2124 """
2225 package io.modelcontextprotocol.kotlin.sdk
2326
24- public const val LIB_VERSION: String = "${project.version} "
27+ public const val LIB_VERSION: String = "$projectVersion "
2528
2629 """ .trimIndent(),
2730 )
You can’t perform that action at this time.
0 commit comments