Skip to content

Commit 0bc9df0

Browse files
authored
Merge pull request #282 from gradle/no/remove-compile-workaround
Remove CompileLibraryResourcesWorkaround in AGP 7.2.0-beta01+
2 parents 9ea5f9f + 3a2aed6 commit 0bc9df0

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
Some Android plugin versions have issues with Gradle's build cache feature. When applied to an Android project this plugin applies workarounds for these issues based on the Android plugin and Gradle versions. For other versions, please see [older versions.](#older-android-gradle-plugin-versions)
1818

1919
* Supported Gradle versions: 7.0+
20-
* Supported Android Gradle Plugin versions: 7.0.4, 7.1.3, 7.2.0-beta04, 7.3.0-alpha07
20+
* Supported Android Gradle Plugin versions: 7.0.4, 7.1.3, 7.2.0-beta04, 7.3.0-alpha08
2121
* Supported Kotlin versions: 1.4.32+
2222

2323
We only test against the latest patch versions of each minor version of Android Gradle Plugin. This means that although it may work perfectly well with an older patch version (say 7.0.1), we do not test against these older patch versions, so the latest patch version is the only version from that minor release that we technically support.

Diff for: release/changes.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* Remove workarounds for tasks already marked as non-cacheable.
2+
* Support latest versions of AGP.
3+
* Fix for false positive warnings in kotlin-dsl-accessors build.
4+
* Publish signature for jar file.

Diff for: src/main/groovy/org/gradle/android/workarounds/CompileLibraryResourcesWorkaround.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import org.gradle.api.Project
99
* Warns if the user is not using experimental support for relative path sensitivity that was added
1010
* with 7.0.0-alpha09.
1111
*/
12-
@AndroidIssue(introducedIn = "7.0.0-alpha09", fixedIn = [], link = "https://issuetracker.google.com/issues/155218379")
12+
@AndroidIssue(introducedIn = "7.0.0-alpha09", fixedIn = "7.2.0-beta01", link = "https://issuetracker.google.com/issues/155218379")
1313
@CompileStatic
1414
class CompileLibraryResourcesWorkaround implements Workaround {
1515
public static final String ENABLE_SOURCE_SET_PATHS_MAP = "android.experimental.enableSourceSetPathsMap"

Diff for: src/test/groovy/org/gradle/android/CompileLibraryResourcesWorkaroundTest.groovy

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import spock.lang.Issue
88
class CompileLibraryResourcesWorkaroundTest extends AbstractTest {
99
def "warns when experimental flags are not provided"() {
1010
Assume.assumeTrue(TestVersions.latestAndroidVersionForCurrentJDK() >= Versions.android("7.0.0-alpha09"))
11+
Assume.assumeTrue(TestVersions.latestAndroidVersionForCurrentJDK() < Versions.android("7.2.0-beta01"))
1112

1213
SimpleAndroidApp.builder(temporaryFolder.root, cacheDir)
1314
.withAndroidVersion(TestVersions.latestAndroidVersionForCurrentJDK())
@@ -44,6 +45,7 @@ class CompileLibraryResourcesWorkaroundTest extends AbstractTest {
4445

4546
def "does not warn when experimental flags are provided"() {
4647
Assume.assumeTrue(TestVersions.latestAndroidVersionForCurrentJDK() >= Versions.android("7.0.0-alpha09"))
48+
Assume.assumeTrue(TestVersions.latestAndroidVersionForCurrentJDK() <= Versions.android("7.2.0-beta01"))
4749

4850
SimpleAndroidApp.builder(temporaryFolder.root, cacheDir)
4951
.withAndroidVersion(TestVersions.latestAndroidVersionForCurrentJDK())

Diff for: src/test/groovy/org/gradle/android/WorkaroundTest.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class WorkaroundTest extends Specification {
1212
workarounds.collect { it.class.simpleName.replaceAll(/Workaround/, "") }.sort() == expectedWorkarounds.sort()
1313
where:
1414
androidVersion | expectedWorkarounds
15-
"7.3.0-alpha08" | ['CompileLibraryResources', 'MergeNativeLibs', 'MergeSourceSetFolders', 'RoomSchemaLocation', 'ZipMergingTask']
16-
"7.2.0-beta04" | ['CompileLibraryResources', 'MergeNativeLibs', 'MergeSourceSetFolders', 'RoomSchemaLocation', 'ZipMergingTask']
15+
"7.3.0-alpha08" | ['MergeNativeLibs', 'MergeSourceSetFolders', 'RoomSchemaLocation', 'ZipMergingTask']
16+
"7.2.0-beta04" | ['MergeNativeLibs', 'MergeSourceSetFolders', 'RoomSchemaLocation', 'ZipMergingTask']
1717
"7.1.3" | ['BundleLibraryClasses', 'CompileLibraryResources', 'DataBindingMergeDependencyArtifacts', 'LibraryJniLibs', 'MergeNativeLibs', 'MergeSourceSetFolders', 'RoomSchemaLocation', 'StripDebugSymbols', 'ZipMergingTask']
1818
"7.0.4" | ['BundleLibraryClasses', 'CompileLibraryResources', 'DataBindingMergeDependencyArtifacts', 'LibraryJniLibs', 'MergeNativeLibs', 'MergeSourceSetFolders', 'RoomSchemaLocation', 'StripDebugSymbols', 'ZipMergingTask']
1919
}

0 commit comments

Comments
 (0)