Skip to content

Commit 64846ec

Browse files
committed
add Kotlin version to generated BCVProperties
1 parent 7dc0753 commit 64846ec

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

modules/bcv-gradle-plugin/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ publishing {
129129
val createBCVProperties by tasks.registering {
130130
val bcvVersion = libs.versions.kotlinx.bcv
131131
inputs.property("bcvVersion", bcvVersion)
132+
val kotlinVersion = libs.versions.kotlinGradle
133+
inputs.property("kotlinVersion", kotlinVersion)
132134

133135
val generatedSource = layout.buildDirectory.dir("generated-src/main/kotlin/")
134136
outputs.dir(generatedSource)
@@ -146,6 +148,7 @@ val createBCVProperties by tasks.registering {
146148
|
147149
|internal object BCVProperties {
148150
| const val bcvVersion: String = "${bcvVersion.get()}"
151+
| const val kotlinVersion: String = "${kotlinVersion.get()}"
149152
|}
150153
|
151154
""".trimMargin()

modules/bcv-gradle-plugin/src/main/kotlin/BCVProjectPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ constructor(
6565
outputApiDir.convention(layout.projectDirectory.dir(API_DIR))
6666
projectName.convention(providers.provider { project.name })
6767
kotlinxBinaryCompatibilityValidatorVersion.convention(BCVProperties.bcvVersion)
68-
kotlinCompilerEmbeddableVersion.convention("1.9.22")
68+
kotlinCompilerEmbeddableVersion.convention(BCVProperties.kotlinVersion)
6969

7070
// have to set conventions because otherwise .add("...") doesn't work
7171
ignoredMarkers.convention(emptyList())

0 commit comments

Comments
 (0)