diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 00000000..f2e8a085 --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,17 @@ +[versions] +kotest = "4.6.0" +androidxTest = "1.3.0" + +[libraries] +android-x-startupRuntime = { module = "androidx.startup:startup-runtime", version = "1.1.0" } +android-x-test-coreKtx = { module = "androidx.test:core-ktx", version.ref = "androidxTest" } +android-x-test-orchestrator = { module = "androidx.test:orchestrator", version.ref = "androidxTest" } +android-x-test-runner = { module = "androidx.test:runner", version.ref = "androidxTest" } +android-x-test-junitKtx = { module = "androidx.test.ext:junit-ktx", version = "1.1.3" } +android-material = { module = "com.google.android.material:material", version = "1.4.0" } + +kotest-runnerJunit5 = { module = "io.kotest:kotest-runner-junit5-jvm", version.ref = "kotest" } +kotest-assertions = { module = "io.kotest:kotest-assertions-core-jvm", version.ref = "kotest" } +kotest-property = { module = "io.kotest:kotest-property-jvm", version.ref = "kotest" } + +junit4 = { module = "junit:junit", version = "4.13.2" } diff --git a/library/ruler-android-startup/build.gradle b/library/ruler-android-startup/build.gradle index 9ed2d363..a48f6c3e 100644 --- a/library/ruler-android-startup/build.gradle +++ b/library/ruler-android-startup/build.gradle @@ -5,7 +5,7 @@ plugins { dependencies { api project(':library:ruler-android') - implementation libs.android.x.startupRuntime + implementation deps.android.x.startupRuntime } apply from: "$rootDir/gradle/dokka-config.gradle" diff --git a/library/ruler-android/build.gradle b/library/ruler-android/build.gradle index c586d8b0..1e378e34 100644 --- a/library/ruler-android/build.gradle +++ b/library/ruler-android/build.gradle @@ -25,11 +25,11 @@ android { dependencies { api project(':library:ruler') - androidTestUtil libs.android.x.test.orchestrator - androidTestImplementation libs.android.x.testExtJunitKtx - androidTestImplementation libs.android.x.test.coreKtx - androidTestImplementation libs.android.x.test.runner - androidTestImplementation libs.kotest.assertions + androidTestUtil deps.android.x.test.orchestrator + androidTestImplementation deps.android.x.test.junitKtx + androidTestImplementation deps.android.x.test.coreKtx + androidTestImplementation deps.android.x.test.runner + androidTestImplementation deps.kotest.assertions } apply from: "$rootDir/gradle/dokka-config.gradle" diff --git a/library/ruler/build.gradle b/library/ruler/build.gradle index 3ff3dff7..a1129b33 100644 --- a/library/ruler/build.gradle +++ b/library/ruler/build.gradle @@ -5,9 +5,9 @@ plugins { test.useJUnitPlatform() dependencies { - testImplementation libs.kotest.runnerJunit5 - testImplementation libs.kotest.assertions - testImplementation libs.kotest.property + testImplementation deps.kotest.runnerJunit5 + testImplementation deps.kotest.assertions + testImplementation deps.kotest.property } apply from: "$rootDir/gradle/dokka-config.gradle" diff --git a/sample/build.gradle b/sample/build.gradle index d061b5f6..8cf3c91b 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -42,6 +42,6 @@ android { } dependencies { - implementation libs.android.material + implementation deps.android.material implementation project(":library:ruler-android-startup") } diff --git a/settings.gradle.kts b/settings.gradle.kts index da3e7c96..d26e485a 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -6,3 +6,9 @@ include( ":library:ruler-android-startup", ":sample", ) + +enableFeaturePreview("VERSION_CATALOGS") + +dependencyResolutionManagement { + defaultLibrariesExtensionName.set("deps") +}