From c75fc2018c74cb52d908b813ed1f705c02a27815 Mon Sep 17 00:00:00 2001 From: OSS-Bot Date: Tue, 10 Sep 2024 08:06:19 +0000 Subject: [PATCH 1/2] Update agp to v8.6.0 --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7e34de55..cbb6d13c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -agp = "8.5.2" +agp = "8.6.0" agpAlpha = "8.6.0" anvil = "2.5.0-beta11" bugsnagGradle = "8.1.0" From 02bde58df2cb7dde822687dc47e5f39371eb4476 Mon Sep 17 00:00:00 2001 From: Zac Sweers Date: Wed, 11 Sep 2024 13:42:36 -0400 Subject: [PATCH 2/2] Update lint and baseline --- gradle.properties | 2 +- gradle/libs.versions.toml | 2 +- slack-plugin/lint-baseline.xml | 325 +++++++++++++++++++++++++++------ 3 files changed, 269 insertions(+), 60 deletions(-) diff --git a/gradle.properties b/gradle.properties index de6168a7..46f5f47d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,7 +12,7 @@ android.suppressUnsupportedOptionWarnings=android.suppressUnsupportedOptionWarni android.experimental.lint.version # Force use of the latest android lint version -android.experimental.lint.version=8.6.0-alpha06 +android.experimental.lint.version=8.8.0-alpha01 android.experimental.lint.missingBaselineIsEmptyBaseline=true # Disable noisy DAGP logs diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index cbb6d13c..cc53fa61 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -74,7 +74,7 @@ coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core" } coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test" } detekt = { module = "io.gitlab.arturbosch.detekt:detekt-core", version.ref = "detekt" } develocity-agent-adapters = "com.gradle:develocity-gradle-plugin-adapters:1.0.4" -gradleLints = "androidx.lint:lint-gradle:1.0.0-alpha01" +gradleLints = "androidx.lint:lint-gradle:1.0.0-alpha02" gradlePlugins-anvil = { module = "com.squareup.anvil:gradle-plugin", version.ref = "anvil" } gradlePlugins-bugsnag = { module = "com.bugsnag:bugsnag-android-gradle-plugin", version.ref = "bugsnagGradle" } gradlePlugins-compose = { module = "org.jetbrains.compose:compose-gradle-plugin", version.ref = "compose-jb" } diff --git a/slack-plugin/lint-baseline.xml b/slack-plugin/lint-baseline.xml index 7b30656f..eb62966d 100644 --- a/slack-plugin/lint-baseline.xml +++ b/slack-plugin/lint-baseline.xml @@ -1,8 +1,184 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -13,7 +189,7 @@ @@ -24,7 +200,7 @@ @@ -35,7 +211,7 @@ @@ -46,7 +222,7 @@ @@ -56,6 +232,61 @@ column="1"/> + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - @@ -155,17 +353,6 @@ column="1"/> - - - - + id="WithTypeWithoutConfigureEach" + message="Avoid passing a closure to withType, use withType().configureEach instead" + errorLine1=" project.tasks.withType(JavaCompile::class.java, baseConfig.javaCompileAptAction)" + errorLine2=" ~~~~~~~~"> + file="src/main/kotlin/slack/gradle/AnnotationProcessing.kt" + line="142" + column="23"/> + + + + + + + +