From 27d53714721796ce3f3c8e3bcf969c00721d8f16 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 23 Apr 2023 14:55:01 +0530 Subject: chore(build): misc cleanups to application and dependency updates plugins --- .../src/main/kotlin/app/passwordstore/gradle/ApplicationPlugin.kt | 8 ++++---- .../kotlin/app/passwordstore/gradle/DependencyUpdatesPlugin.kt | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/ApplicationPlugin.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/ApplicationPlugin.kt index fc980750..c4620e6b 100644 --- a/build-logic/src/main/kotlin/app/passwordstore/gradle/ApplicationPlugin.kt +++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/ApplicationPlugin.kt @@ -6,8 +6,8 @@ import app.passwordstore.gradle.flavors.FlavorDimensions import app.passwordstore.gradle.flavors.ProductFlavors import app.passwordstore.gradle.signing.configureBuildSigning import app.passwordstore.gradle.snapshot.SnapshotExtension +import com.android.build.api.dsl.ApplicationExtension import com.android.build.gradle.AppPlugin -import com.android.build.gradle.internal.dsl.BaseAppModuleExtension import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.kotlin.dsl.apply @@ -21,8 +21,8 @@ class ApplicationPlugin : Plugin { override fun apply(project: Project) { project.pluginManager.apply(AppPlugin::class) AndroidCommon.configure(project) - project.extensions.configure { - val minifySwitch = project.providers.environmentVariable("DISABLE_MINIFY") + val minifySwitch = project.providers.environmentVariable("DISABLE_MINIFY") + project.extensions.configure { dependenciesInfo { includeInBundle = false includeInApk = false @@ -69,7 +69,7 @@ class ApplicationPlugin : Plugin { } private fun Project.isSnapshot(): Boolean { - with(project.providers) { + with(providers) { val workflow = environmentVariable("GITHUB_WORKFLOW") val snapshot = environmentVariable("SNAPSHOT") return workflow.isPresent || snapshot.isPresent diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/DependencyUpdatesPlugin.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/DependencyUpdatesPlugin.kt index 86742c24..50810938 100644 --- a/build-logic/src/main/kotlin/app/passwordstore/gradle/DependencyUpdatesPlugin.kt +++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/DependencyUpdatesPlugin.kt @@ -20,7 +20,6 @@ class DependencyUpdatesPlugin : Plugin { rejectVersionIf { when (candidate.group) { "commons-codec", - "com.android.tools.build", "org.eclipse.jgit" -> true else -> false } -- cgit v1.2.3