feat(build): remove dependency updates plugin

Renovate handles this for us
This commit is contained in:
Harsh Shandilya 2024-01-22 00:22:34 +05:30
parent 7c9e563d96
commit 6d4acac53f
4 changed files with 1 additions and 46 deletions

View file

@ -65,10 +65,6 @@ gradlePlugin {
id = "com.github.android-password-store.versioning-plugin"
implementationClass = "app.passwordstore.gradle.versioning.VersioningPlugin"
}
register("versions") {
id = "com.github.android-password-store.versions"
implementationClass = "app.passwordstore.gradle.DependencyUpdatesPlugin"
}
}
}
@ -88,8 +84,6 @@ dependencies {
implementation(libs.build.r8)
implementation(libs.build.semver)
implementation(libs.build.sentry)
implementation(libs.build.vcu)
implementation(libs.build.versions)
implementation(libs.kotlinx.coroutines.core)
// Expose the generated version catalog API to the plugin.

View file

@ -1,35 +0,0 @@
package app.passwordstore.gradle
import com.github.benmanes.gradle.versions.VersionsPlugin
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import nl.littlerobots.vcu.plugin.VersionCatalogUpdateExtension
import nl.littlerobots.vcu.plugin.VersionCatalogUpdatePlugin
import org.gradle.api.Plugin
import org.gradle.api.initialization.Settings
import org.gradle.kotlin.dsl.apply
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.withType
@Suppress("Unused")
class DependencyUpdatesPlugin : Plugin<Settings> {
override fun apply(settings: Settings) {
settings.gradle.allprojects {
if (rootProject == this) {
pluginManager.apply(VersionCatalogUpdatePlugin::class)
extensions.configure<VersionCatalogUpdateExtension> { keep.keepUnusedLibraries.set(true) }
pluginManager.apply(VersionsPlugin::class)
tasks.withType<DependencyUpdatesTask> {
rejectVersionIf {
when (candidate.group) {
"commons-codec",
"org.eclipse.jgit" -> true
else -> false
}
}
checkForGradleUpdate = false
}
}
}
}
}

View file

@ -4,7 +4,6 @@
agp = "8.2.0"
androidxActivity = "1.8.2"
bouncycastle = "1.77"
moshi = "1.15.0"
# @keep used for kotlinCompilerExtensionVersion
composeCompiler = "1.5.8-dev-k1.9.22-42b6ec2b037"
coroutines = "1.7.3"
@ -13,6 +12,7 @@ hilt = "2.50"
kotlin = "1.9.22"
kotlinResult = "1.1.18"
lifecycle = "2.7.0"
moshi = "1.15.0"
[libraries]
android-desugarJdkLibs = "com.android.tools:desugar_jdk_libs:2.0.4"
@ -52,8 +52,6 @@ build-okhttp = "com.squareup.okhttp3:okhttp:4.12.0"
build-r8 = "com.android.tools:r8:8.2.42"
build-semver = "com.vdurmont:semver4j:3.1.0"
build-sentry = "io.sentry.android.gradle:io.sentry.android.gradle.gradle.plugin:4.2.0"
build-vcu = "nl.littlerobots.version-catalog-update:nl.littlerobots.version-catalog-update.gradle.plugin:0.8.3"
build-versions = "com.github.ben-manes:gradle-versions-plugin:0.50.0"
compose-bom = "androidx.compose:compose-bom:2023.10.01"
compose-foundation-core = { module = "androidx.compose.foundation:foundation" }
compose-foundation-layout = { module = "androidx.compose.foundation:foundation-layout" }

View file

@ -20,7 +20,6 @@ pluginManagement {
exclusiveContent {
forRepository { gradlePluginPortal() }
filter {
includeModule("com.github.ben-manes", "gradle-versions-plugin")
includeModule("com.gradle", "gradle-enterprise-gradle-plugin")
includeModule("com.gradle.enterprise", "com.gradle.enterprise.gradle.plugin")
includeModule("me.tylerbwong.gradle.metalava", "plugin")
@ -42,7 +41,6 @@ pluginManagement {
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
id("com.gradle.enterprise") version "3.16.1"
id("com.github.android-password-store.versions")
}
gradleEnterprise {