diff --git a/README.md b/README.md index a877598f..b95243ac 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ This plugin should be applied anywhere the `com.android.application` or `com.and // in build.grade.kts for convention plugin build dependencies { // ... - implementation("org.gradle.android.cache-fix:org.gradle.android.cache-fix.gradle.plugin:3.0.1") + implementation("org.gradle.android.cache-fix:org.gradle.android.cache-fix.gradle.plugin:3.0.2") // ... } @@ -65,7 +65,7 @@ plugins { // in build.grade for convention plugin build dependencies { // ... - implementation("org.gradle.android.cache-fix:org.gradle.android.cache-fix.gradle.plugin:3.0.1") + implementation("org.gradle.android.cache-fix:org.gradle.android.cache-fix.gradle.plugin:3.0.2") // ... } @@ -79,8 +79,7 @@ plugins { -If you are not using convention plugins and would like a quick way of testing the plugin you can alternatively place it in the root project's build.gradle (change '3.0.1' to the latest version of the cache fix plugin -[here](https://plugins.gradle.org/plugin/org.gradle.android.cache-fix)). We discourage this approach because it uses [cross project configuration](https://docs.gradle.org/current/userguide/sharing_build_logic_between_subprojects.html#sec:convention_plugins_vs_cross_configuration). +If you are not using convention plugins and would like a quick way of testing the plugin you can alternatively place it in the root project's build.gradle. We discourage this approach because it uses [cross project configuration](https://docs.gradle.org/current/userguide/sharing_build_logic_between_subprojects.html#sec:convention_plugins_vs_cross_configuration).
Kotlin @@ -88,7 +87,7 @@ If you are not using convention plugins and would like a quick way of testing th ```kotlin plugins { - id("org.gradle.android.cache-fix") version "3.0.1" apply false + id("org.gradle.android.cache-fix") version "3.0.2" apply false } subprojects { @@ -105,7 +104,7 @@ subprojects { ```groovy plugins { - id "org.gradle.android.cache-fix" version "3.0.1" apply false + id "org.gradle.android.cache-fix" version "3.0.2" apply false } subprojects { diff --git a/release/changes.md b/release/changes.md index e69de29b..8437197c 100644 --- a/release/changes.md +++ b/release/changes.md @@ -0,0 +1 @@ +- [NEW] - JdkImageWorkaround: uses the Variant API on AGP ≥ 9.0.0-alpha06, falls back to legacy APIs on earlier versions diff --git a/src/main/groovy/org/gradle/android/workarounds/JdkImageWorkaround.groovy b/src/main/groovy/org/gradle/android/workarounds/JdkImageWorkaround.groovy index 6034354c..0523082e 100644 --- a/src/main/groovy/org/gradle/android/workarounds/JdkImageWorkaround.groovy +++ b/src/main/groovy/org/gradle/android/workarounds/JdkImageWorkaround.groovy @@ -61,7 +61,7 @@ class JdkImageWorkaround implements Workaround { // runtime configuration before querying (and instantiating) task configurations. applyRuntimeClasspathNormalization(project) - if (Versions.CURRENT_ANDROID_VERSION < VersionNumber.parse("9.0.0-alpha04")) { + if (Versions.CURRENT_ANDROID_VERSION < VersionNumber.parse("9.0.0-alpha06")) { applyToAllAndroidVariantsLegacy(project) { variant -> variant.javaCompileProvider.configure { JavaCompile task -> jdkTransform(project, task)