Skip to content

Commit e76f49a

Browse files
committed
Introduce KMP dependency
1 parent 250c302 commit e76f49a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ val testPluginClasspath by configurations.registering {
5151
}
5252

5353
dependencies {
54+
compileOnly(libs.kotlin.kmp)
5455
implementation(libs.apache.ant)
5556
implementation(libs.apache.commonsIo)
5657
implementation(libs.apache.log4j)
@@ -62,6 +63,7 @@ dependencies {
6263

6364
testPluginClasspath(libs.foojayResolver)
6465
testPluginClasspath(libs.pluginPublish)
66+
testPluginClasspath(libs.kotlin.kmp)
6567

6668
lintChecks(libs.androidx.gradlePluginLints)
6769
}

gradle/libs.versions.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[versions]
2+
kotlin = "2.1.10"
23
moshi = "1.15.2"
34

45
[libraries]
@@ -15,13 +16,14 @@ plexus-xml = "org.codehaus.plexus:plexus-xml:4.0.4"
1516
xmlunit = "org.xmlunit:xmlunit-legacy:2.10.0"
1617
moshi = { module = "com.squareup.moshi:moshi", version.ref = "moshi" }
1718
moshi-kotlin = { module = "com.squareup.moshi:moshi-kotlin", version.ref = "moshi" }
18-
foojayResolver = "org.gradle.toolchains.foojay-resolver-convention:org.gradle.toolchains.foojay-resolver-convention.gradle.plugin:0.9.0"
1919

2020
pluginPublish = "com.gradle.publish:plugin-publish-plugin:1.3.1"
2121
mavenPublish = "com.vanniktech:gradle-maven-publish-plugin:0.30.0"
2222
gitPublish = "org.ajoberstar.git-publish:gradle-git-publish:5.1.0"
2323
jetbrains-dokka = "org.jetbrains.dokka:dokka-gradle-plugin:2.0.0"
2424
node = "com.github.node-gradle:gradle-node-plugin:7.1.0"
25+
foojayResolver = "org.gradle.toolchains.foojay-resolver-convention:org.gradle.toolchains.foojay-resolver-convention.gradle.plugin:0.9.0"
26+
kotlin-kmp = { module = "org.jetbrains.kotlin.multiplatform:org.jetbrains.kotlin.multiplatform.gradle.plugin", version.ref = "kotlin" }
2527

2628
androidx-gradlePluginLints = "androidx.lint:lint-gradle:1.0.0-alpha03"
2729
# Dummy to get renovate updates, the version is used in rootProject build.gradle with spotless.
@@ -31,7 +33,7 @@ junit-bom = "org.junit:junit-bom:5.12.0"
3133
assertk = "com.willowtreeapps.assertk:assertk:0.28.1"
3234

3335
[plugins]
34-
kotlin-jvm = "org.jetbrains.kotlin.jvm:2.1.10"
36+
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
3537
android-lint = "com.android.lint:8.8.1"
3638
jetbrains-bcv = "org.jetbrains.kotlinx.binary-compatibility-validator:0.17.0"
3739
spotless = "com.diffplug.spotless:7.0.2"

0 commit comments

Comments
 (0)