Skip to content

Commit b8001fb

Browse files
authored
Merge pull request #278 from gradle/no/update-non-cacheable
Remove workaround for already non-cacheable tasks.
2 parents 8f68f6a + e6c4570 commit b8001fb

File tree

7 files changed

+8
-39
lines changed

7 files changed

+8
-39
lines changed

src/main/groovy/org/gradle/android/AndroidCacheFixPlugin.groovy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import org.gradle.android.workarounds.CompileLibraryResourcesWorkaround
99
import org.gradle.android.workarounds.CompilerArgsProcessor
1010
import org.gradle.android.workarounds.DataBindingMergeDependencyArtifactsWorkaround
1111
import org.gradle.android.workarounds.LibraryJniLibsWorkaround
12-
import org.gradle.android.workarounds.MergeJavaResourcesWorkaround
1312
import org.gradle.android.workarounds.MergeNativeLibsWorkaround
1413

1514
import org.gradle.android.workarounds.MergeSourceSetFoldersWorkaround
@@ -39,7 +38,6 @@ class AndroidCacheFixPlugin implements Plugin<Project> {
3938
// error instead of a ClassDefNotFound.
4039
if (isMaybeSupportedAndroidVersion(project)) {
4140
return Arrays.<Workaround>asList(
42-
new MergeJavaResourcesWorkaround(),
4341
new MergeNativeLibsWorkaround(),
4442
new MergeSourceSetFoldersWorkaround(),
4543
new RoomSchemaLocationWorkaround(),

src/main/groovy/org/gradle/android/workarounds/BundleLibraryClassesWorkaround.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import org.gradle.api.Project
1010
* Disables caching of the BundleLibraryClassesJar and BundleLibraryClassesDir tasks which are mostly disk bound and
1111
* unlikely to provide positive performance benefits.
1212
*/
13-
@AndroidIssue(introducedIn = "4.1.0", fixedIn = [], link = "https://issuetracker.google.com/issues/199763362")
13+
@AndroidIssue(introducedIn = "4.1.0", fixedIn = "7.2.0-alpha06", link = "https://issuetracker.google.com/issues/199763362")
1414
@CompileStatic
1515
class BundleLibraryClassesWorkaround implements Workaround {
1616
private static final String CACHING_ENABLED_PROPERTY = "org.gradle.android.cache-fix.BundleLibraryClasses.caching.enabled"

src/main/groovy/org/gradle/android/workarounds/DataBindingMergeDependencyArtifactsWorkaround.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import org.gradle.api.Task
1010
* Disables caching of the DataBindingMergeDependencyArtifactsTask task which is mostly disk bound and
1111
* unlikely to provide positive performance benefits.
1212
*/
13-
@AndroidIssue(introducedIn = "3.5.0", fixedIn = [], link = "https://issuetracker.google.com/issues/200002454")
13+
@AndroidIssue(introducedIn = "3.5.0", fixedIn = "7.2.0-alpha06", link = "https://issuetracker.google.com/issues/200002454")
1414
@CompileStatic
1515
class DataBindingMergeDependencyArtifactsWorkaround implements Workaround {
1616
private static final String CACHING_ENABLED_PROPERTY = "org.gradle.android.cache-fix.DataBindingMergeDependencyArtifacts.caching.enabled"

src/main/groovy/org/gradle/android/workarounds/LibraryJniLibsWorkaround.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import org.gradle.api.Task;
1010
* Disables caching of the LibraryJniLibsTask task which is mostly disk bound and
1111
* unlikely to provide positive performance benefits.
1212
*/
13-
@AndroidIssue(introducedIn = "3.6.0", fixedIn = [], link = "https://issuetracker.google.com/issues/200002454")
13+
@AndroidIssue(introducedIn = "3.6.0", fixedIn = "7.2.0-alpha06", link = "https://issuetracker.google.com/issues/200002454")
1414
@CompileStatic
1515
class LibraryJniLibsWorkaround implements Workaround {
1616

src/main/groovy/org/gradle/android/workarounds/MergeJavaResourcesWorkaround.groovy

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/main/groovy/org/gradle/android/workarounds/StripDebugSymbolsWorkaround.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import org.gradle.api.Task
1010
* Disables caching of the StripDebugSymbols task which is mostly disk bound and unlikely to provide positive
1111
* performance benefits.
1212
*/
13-
@AndroidIssue(introducedIn = "3.5.0", fixedIn = [], link = "https://issuetracker.google.com/issues/181143775")
13+
@AndroidIssue(introducedIn = "3.5.0", fixedIn = "7.2.0-alpha06", link = "https://issuetracker.google.com/issues/181143775")
1414
@CompileStatic
1515
class StripDebugSymbolsWorkaround implements Workaround {
1616
private static final String CACHING_ENABLED_PROPERTY = "org.gradle.android.cache-fix.StripDebugSymbols.caching.enabled"

src/test/groovy/org/gradle/android/WorkaroundTest.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ class WorkaroundTest extends Specification {
1212
workarounds.collect { it.class.simpleName.replaceAll(/Workaround/, "") }.sort() == expectedWorkarounds.sort()
1313
where:
1414
androidVersion | expectedWorkarounds
15-
"7.3.0-alpha07" | ['ZipMergingTask', 'LibraryJniLibs', 'DataBindingMergeDependencyArtifacts', 'BundleLibraryClasses', 'MergeSourceSetFolders', 'MergeJavaResources', 'RoomSchemaLocation', 'StripDebugSymbols', 'MergeNativeLibs', 'CompileLibraryResources']
16-
"7.2.0-beta04" | ['ZipMergingTask', 'LibraryJniLibs', 'DataBindingMergeDependencyArtifacts', 'BundleLibraryClasses', 'MergeSourceSetFolders', 'MergeJavaResources', 'RoomSchemaLocation', 'StripDebugSymbols', 'MergeNativeLibs', 'CompileLibraryResources']
17-
"7.1.3" | ['ZipMergingTask', 'LibraryJniLibs', 'DataBindingMergeDependencyArtifacts', 'BundleLibraryClasses', 'MergeSourceSetFolders', 'MergeJavaResources', 'RoomSchemaLocation', 'StripDebugSymbols', 'MergeNativeLibs', 'CompileLibraryResources']
18-
"7.0.4" | ['ZipMergingTask', 'LibraryJniLibs', 'DataBindingMergeDependencyArtifacts', 'BundleLibraryClasses', 'MergeSourceSetFolders', 'MergeJavaResources', 'RoomSchemaLocation', 'StripDebugSymbols', 'MergeNativeLibs', 'CompileLibraryResources']
15+
"7.3.0-alpha07" | ['ZipMergingTask', 'LibraryJniLibs', 'DataBindingMergeDependencyArtifacts', 'BundleLibraryClasses', 'MergeSourceSetFolders', 'RoomSchemaLocation', 'StripDebugSymbols', 'MergeNativeLibs', 'CompileLibraryResources']
16+
"7.2.0-beta04" | ['ZipMergingTask', 'LibraryJniLibs', 'DataBindingMergeDependencyArtifacts', 'BundleLibraryClasses', 'MergeSourceSetFolders', 'RoomSchemaLocation', 'StripDebugSymbols', 'MergeNativeLibs', 'CompileLibraryResources']
17+
"7.1.3" | ['ZipMergingTask', 'LibraryJniLibs', 'DataBindingMergeDependencyArtifacts', 'BundleLibraryClasses', 'MergeSourceSetFolders', 'RoomSchemaLocation', 'StripDebugSymbols', 'MergeNativeLibs', 'CompileLibraryResources']
18+
"7.0.4" | ['ZipMergingTask', 'LibraryJniLibs', 'DataBindingMergeDependencyArtifacts', 'BundleLibraryClasses', 'MergeSourceSetFolders', 'RoomSchemaLocation', 'StripDebugSymbols', 'MergeNativeLibs', 'CompileLibraryResources']
1919
}
2020
}

0 commit comments

Comments
 (0)