diff --git a/CHANGELOG.md b/CHANGELOG.md index 81d863a9..8606aed2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ * `Versions`: * `Kotlin`: `1.8.20` * `Serialization`: `1.5.1` - * `MicroUtils`: `0.19.4` + * `MicroUtils`: `0.19.5` * `UUID`: `0.7.1` * `MVVM`: * Add `NavigationMVVMSingleActivity` as abstract class for single-activity oriented way of navigation diff --git a/build.gradle b/build.gradle index 83ec92ea..70b4939d 100644 --- a/build.gradle +++ b/build.gradle @@ -18,6 +18,19 @@ buildscript { plugins { alias(libs.plugins.kotlin.dokka) + alias(libs.plugins.versions) +} + +def isNonStable = { String version -> + def stableKeyword = ['RELEASE', 'FINAL', 'GA'].any { it -> version.toUpperCase().contains(it) } + def regex = /^[0-9,.v-]+(-r)?$/ + return !stableKeyword && !(version ==~ regex) +} + +tasks.named("dependencyUpdates").configure { + rejectVersionIf { + isNonStable(it.candidate.version) + } } allprojects { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7dde4fac..5f069cac 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -5,7 +5,7 @@ kotlin-coroutines = "1.6.4" kotlin-serialization = "1.5.1" dokka = "1.8.20" -microutils = "0.19.4" +microutils = "0.19.5" kslog = "1.1.1" uuid = "0.7.1" @@ -14,8 +14,8 @@ compose = "1.4.0" dexcount = "4.0.0" junit_version = "4.12" -test_ext_junit_version = "1.1.3" -espresso_core = "3.4.0" +test_ext_junit_version = "1.1.5" +espresso_core = "3.5.1" android-gradle-plugin = "7.4.2" android-minSdk = "21" @@ -25,10 +25,12 @@ android-buildTools = "33.0.2" android-core-ktx = "1.10.1" android-appcompat = "1.6.1" android-material = "1.6.1" -android-compose-material3 = "1.0.1" +android-compose-material3 = "1.1.0" github-release = "2.4.1" +versions = "0.47.0" + [libraries] kotlin = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" } @@ -76,3 +78,5 @@ kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" } kotlin-dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" } compose = { id = "org.jetbrains.compose", version.ref = "compose" } + +versions = { id = "com.github.ben-manes.versions", version.ref = "versions" }