Skip to content

Commit ee61202

Browse files
authored
Fix gradle warnings in prb (FoundationDB#3225)
I ran the gradle tasks with `--warning-mode all` and found the following warnings, and resolved them: - Remove `-b ./build.gradle` from our actions. This has been deprecated, and seems unnecessary. - Replace `jarTask.archiveName` with `jarTask.archiveFileName` because `archiveName` has been deprecated
1 parent 8e3556e commit ee61202

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

actions/run-gradle/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ runs:
1313
run: sed -i -e "s/^org\.gradle\..*/#&/g" gradle.properties
1414
- name: Run Command
1515
shell: bash
16-
run: GRADLE_OPTS="-XX:+HeapDumpOnOutOfMemoryError -Xverify:none -XX:+TieredCompilation -Xmx4096m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED" ./gradlew --no-daemon --console=plain -b ./build.gradle ${{ inputs.gradle_command }}
16+
run: GRADLE_OPTS="-XX:+HeapDumpOnOutOfMemoryError -Xverify:none -XX:+TieredCompilation -Xmx4096m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED" ./gradlew --no-daemon --console=plain ${{ inputs.gradle_command }}

gradle/publishing.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ if (ext.publishLibrary) {
9393
GenerateMavenPom pomTask = tasks.generatePomFileForLibraryPublication
9494
Jar jarTask = tasks.jar
9595
if (filename == pomTask.destination.name) {
96-
jarTask.archiveName.replace "jar", "pom"
96+
jarTask.archiveFileName.map { archive -> archive.replace("jar", "pom") }
9797
} else {
9898
filename
9999
}

0 commit comments

Comments
 (0)