diff --git a/build.gradle.kts b/build.gradle.kts index 79b45f18..f1d59d4c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,17 +1,20 @@ @file:Suppress("UNUSED_VARIABLE") import com.android.build.gradle.BaseExtension +import com.github.benmanes.gradle.versions.VersionsPlugin +import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask import java.net.URL import java.util.* buildscript { repositories { + gradlePluginPortal() mavenCentral() - mavenLocal() google() maven("https://maven.kr328.app/releases") } dependencies { + classpath(deps.build.update) classpath(deps.build.android) classpath(deps.build.kotlin.common) classpath(deps.build.kotlin.serialization) @@ -21,9 +24,21 @@ buildscript { } allprojects { + apply { + plugin(VersionsPlugin::class) + } + + tasks.withType(DependencyUpdatesTask::class) { + val rejectPattern = Regex("(beta|alpha)", RegexOption.IGNORE_CASE) + + rejectVersionIf { + candidate.version.contains(rejectPattern) + } + } + repositories { - google() mavenCentral() + google() maven("https://maven.kr328.app/releases") } } @@ -69,12 +84,6 @@ subprojects { } } - externalNativeBuild { - cmake { - version = "3.18.1" - } - } - if (isApp) { packagingOptions { excludes.add("DebugProbesKt.bin") diff --git a/settings.gradle.kts b/settings.gradle.kts index f1a55269..5c1763aa 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -14,25 +14,27 @@ include(":hideapi") dependencyResolutionManagement { versionCatalogs { create("deps") { + val version = "0.39.0" val agp = "7.0.2" val ksp = "1.5.30-1.0.0-beta09" val kotlin = "1.5.30" val golang = "1.0.3" - val coroutine = "1.5.0" - val coreKtx = "1.5.0" - val activity = "1.2.3" - val fragment = "1.3.4" - val appcompat = "1.3.0" + val coroutine = "1.5.2" + val coreKtx = "1.6.0" + val activity = "1.3.1" + val fragment = "1.3.6" + val appcompat = "1.3.1" val coordinator = "1.1.0" val recyclerview = "1.2.1" val viewpager = "1.0.0" - val material = "1.3.0" - val appcenter = "4.2.0" + val material = "1.4.0" + val appcenter = "4.3.1" val serialization = "1.2.1" val kaidl = "1.14" val room = "2.3.0" val multiprocess = "1.0.0" + alias("build-update").to("com.github.ben-manes:gradle-versions-plugin:$version") alias("build-android").to("com.android.tools.build:gradle:$agp") alias("build-kotlin-common").to("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin") alias("build-kotlin-serialization").to("org.jetbrains.kotlin:kotlin-serialization:$kotlin")