diff --git a/common-deps/build.gradle.kts b/common-deps/build.gradle.kts index dc863f447e..1625047e82 100644 --- a/common-deps/build.gradle.kts +++ b/common-deps/build.gradle.kts @@ -2,7 +2,6 @@ import org.jetbrains.kotlin.gradle.dsl.JvmDefaultMode description = "Kotlin Symbol Processor" -val junitVersion: String by project val signingKey: String? by project val signingPassword: String? by project @@ -16,7 +15,7 @@ plugins { dependencies { compileOnly(project(":api")) - testImplementation("junit:junit:$junitVersion") + testImplementation(libs.junit4) ksp(project(":cmdline-parser-gen")) } diff --git a/common-util/build.gradle.kts b/common-util/build.gradle.kts index abacc47b7a..265937af02 100644 --- a/common-util/build.gradle.kts +++ b/common-util/build.gradle.kts @@ -2,9 +2,6 @@ import org.jetbrains.kotlin.gradle.dsl.JvmDefaultMode description = "Kotlin Symbol Processing Util" -val junitVersion: String by project -val kotlinBaseVersion: String by project - plugins { kotlin("jvm") id("org.jetbrains.dokka") @@ -12,8 +9,8 @@ plugins { dependencies { implementation(project(":api")) - implementation(kotlin("stdlib", kotlinBaseVersion)) - testImplementation("junit:junit:$junitVersion") + implementation(libs.kotlin.stdlib) + testImplementation(libs.junit4) } kotlin { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 0000000000..4dabc14d15 --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,7 @@ +[versions] +kotlin-base = "2.3.20" +junit = "4.13.1" + +[libraries] +kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin-base" } +junit4 = { module = "junit:junit", version.ref = "junit" }