Skip to content

Commit 0ca15e7

Browse files
authored
Merge pull request #486 from gradle/wrapperbot/android-cache-fix-gradle-plugin/gradle-wrapper-8.1
Bump Gradle Wrapper from 8.0.2 to 8.1
2 parents 051fbbc + 225ab71 commit 0ca15e7

File tree

11 files changed

+20
-21
lines changed

11 files changed

+20
-21
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
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)
1919

2020
* Supported Gradle versions: 7.0+
21-
* Supported Android Gradle Plugin versions: 7.0.4, 7.1.3, 7.2.2, 7.3.1, 7.4.2, 8.0.0-beta05, and 8.1.0-alpha09
21+
* Supported Android Gradle Plugin versions: 7.0.4, 7.1.3, 7.2.2, 7.3.1, 7.4.2, 8.0.0, and 8.1.0-alpha11
2222
* Supported Kotlin versions: 1.6.0+
2323

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

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ supportedVersions.keySet().each { androidVersion ->
126126
systemProperty 'org.gradle.android.java_zulu_path', project.providers.environmentVariable('ZULU_JDK').getOrNull()
127127
systemProperty 'org.gradle.android.java_zulu_alt_path', project.providers.environmentVariable('ZULU_ALT_JDK').getOrNull()
128128

129-
if (androidVersion >= "8.0.0-alpha10") {
129+
if (androidVersion >= "8.0.0") {
130130
javaLauncher = javaToolchains.launcherFor {
131131
languageVersion = JavaLanguageVersion.of(17)
132132
}
@@ -189,7 +189,7 @@ tasks.named("githubRelease").configure {
189189
dependsOn(createReleaseTag)
190190
}
191191

192-
tasks.withType(Sign).configureEach {
192+
tasks.withType(com.gradle.publish.PublishTask).configureEach {
193193
notCompatibleWithConfigurationCache("$name task does not support configuration caching")
194194
}
195195

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ org.gradle.vfs.watch=true
22
org.gradle.daemon=true
33
org.gradle.parallel=true
44
org.gradle.caching=true
5-
org.gradle.unsafe.configuration-cache=true
5+
org.gradle.configuration-cache=true
66
org.gradle.jvmargs=-Duser.language=en -Duser.country=US -Dfile.encoding=UTF-8
77

88
isPTSEnabled=false

gradle/wrapper/gradle-wrapper.jar

468 Bytes
Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=ff7bf6a86f09b9b2c40bb8f48b25fc19cf2b2664fd1d220cd7ab833ec758d0d7
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
3+
distributionSha256Sum=a62c5f99585dd9e1f95dab7b9415a0e698fa9dd1e6c38537faa81ac078f4d23e
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
55
networkTimeout=10000
66
zipStoreBase=GRADLE_USER_HOME
77
zipStorePath=wrapper/dists

gradlew

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ done
8585
APP_BASE_NAME=${0##*/}
8686
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
8787

88-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
90-
9188
# Use the maximum available, or set MAX_FD != -1 to use that value.
9289
MAX_FD=maximum
9390

@@ -197,6 +194,10 @@ if "$cygwin" || "$msys" ; then
197194
done
198195
fi
199196

197+
198+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
199+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
200+
200201
# Collect all arguments for the java command;
201202
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
202203
# shell script including quotes and variable substitutions, so put them in

release/changes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
- [NEW] - Run tests against AGP 8.0.0-beta05
2-
- [NEW] - Run tests against AGP 8.1.0-alpha09
1+
- [NEW] - Run tests against AGP 8.0.0
2+
- [NEW] - Run tests against AGP 8.1.0-alpha11

src/main/resources/versions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"supportedVersions": {
3-
"8.1.0-alpha09": [
3+
"8.1.0-alpha11": [
44
"8.0.2"
55
],
6-
"8.0.0-beta05": [
6+
"8.0.0": [
77
"8.0.2"
88
],
99
"7.4.2": [

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

Lines changed: 2 additions & 2 deletions
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-
"8.1.0-alpha09" | ['MergeSourceSetFolders', 'RoomSchemaLocation', 'ZipMergingTask', 'JdkImage']
16-
"8.0.0-beta05" | ['MergeSourceSetFolders', 'RoomSchemaLocation', 'ZipMergingTask', 'JdkImage']
15+
"8.1.0-alpha11" | ['MergeSourceSetFolders', 'RoomSchemaLocation', 'ZipMergingTask', 'JdkImage']
16+
"8.0.0" | ['MergeSourceSetFolders', 'RoomSchemaLocation', 'ZipMergingTask', 'JdkImage']
1717
"7.4.2" | ['MergeSourceSetFolders', 'RoomSchemaLocation', 'ZipMergingTask', 'JdkImage']
1818
"7.3.1" | ['MergeSourceSetFolders', 'RoomSchemaLocation', 'ZipMergingTask', 'JdkImage']
1919
"7.2.2" | ['MergeSourceSetFolders', 'RoomSchemaLocation', 'ZipMergingTask', 'JdkImage']

src/test/resources/expectedOutcomes/8.0.0-beta05_outcomes.json renamed to src/test/resources/expectedOutcomes/8.0.0_outcomes.json

File renamed without changes.

0 commit comments

Comments
 (0)