Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
// ...
}

Expand All @@ -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")
// ...
}

Expand All @@ -79,16 +79,15 @@ plugins {

</details>

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).

<details open>
<summary>Kotlin</summary>
<br>

```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 {
Expand All @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions release/changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [NEW] - JdkImageWorkaround: uses the Variant API on AGP ≥ 9.0.0-alpha06, falls back to legacy APIs on earlier versions
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The configureJavaCompileTask in the variant API was introduced in the alpha06

applyToAllAndroidVariantsLegacy(project) { variant ->
variant.javaCompileProvider.configure { JavaCompile task ->
jdkTransform(project, task)
Expand Down
Loading