Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Gradle 8.9 & Java 21 #876

Merged
merged 86 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
70bbe04
fix(deps): update junit5 monorepo to v5.9.3
renovate[bot] Jul 20, 2023
50ac368
chore(deps): update plugin com.github.node-gradle.node to v3.6.0
renovate[bot] Jul 20, 2023
7091142
chore(deps): update plugin com.gradle.enterprise to v3.14
renovate[bot] Jul 20, 2023
b7e7d29
chore(deps): update plugin com.gradle.plugin-publish to v1.2.0
renovate[bot] Jul 20, 2023
ac94c4f
fix(deps): update dependency commons-io:commons-io to v2.13.0
renovate[bot] Jul 20, 2023
312c6e6
fix(deps): update dependency com.google.guava:guava to v32
renovate[bot] Jul 20, 2023
9f04033
chore(deps): update plugin com.github.node-gradle.node to v5
renovate[bot] Jul 20, 2023
0f0cf46
chore(deps): update plugin org.ajoberstar.git-publish to v4.2.0
renovate[bot] Jul 20, 2023
054f578
Update org.codehaus.plexus:plexus-utils v4
renovate[bot] Jul 20, 2023
6267843
Gradle 8.2.1
renovate[bot] Jul 20, 2023
75d67f5
fix(deps): update junit5 monorepo to v5.10.0
renovate[bot] Jul 23, 2023
a340d18
chore(deps): update plugin com.gradle.enterprise to v3.14.1
renovate[bot] Jul 26, 2023
4adccc8
fix(deps): update dependency org.apache.commons:commons-lang3 to v3.13.0
renovate[bot] Jul 28, 2023
53ea308
fix(deps): update dependency com.google.guava:guava to v32.1.2-jre
renovate[bot] Jul 31, 2023
85687aa
fix(deps): update dependency org.vafer:jdependency to v2.9.0
renovate[bot] Aug 11, 2023
4f88432
chore(deps): update plugin com.gradle.plugin-publish to v1.2.1
renovate[bot] Aug 17, 2023
e707a28
chore(deps): update dependency vuepress to v1.9.10
renovate[bot] Aug 14, 2023
28f5c64
Gradle 8.3
renovate[bot] Aug 17, 2023
3105093
chore(deps): update plugin com.github.node-gradle.node to v6
renovate[bot] Aug 15, 2023
027bcb8
chore(deps): update plugin com.github.node-gradle.node to v7
renovate[bot] Aug 17, 2023
eefd05c
fix(deps): update dependency org.apache.ant:ant to v1.10.14
renovate[bot] Aug 20, 2023
7f320c7
chore(deps): update actions/checkout action to v4
renovate[bot] Sep 4, 2023
e07d172
chore(deps): update plugin com.gradle.enterprise to v3.15
renovate[bot] Sep 13, 2023
07e3e69
chore(deps): update actions/checkout digest to 8ade135
renovate[bot] Sep 25, 2023
4249b52
fix(deps): update dependency org.ow2.asm:asm-commons to v9.6
renovate[bot] Sep 30, 2023
082b888
fix(deps): update dependency org.ow2.asm:asm to v9.6
renovate[bot] Oct 1, 2023
9cee0e5
fix(deps): update dependency commons-io:commons-io to v2.14.0
renovate[bot] Oct 1, 2023
65f52a2
chore(deps): update dependency gradle to v8.4
renovate[bot] Oct 5, 2023
d091ecd
chore(deps): update plugin com.github.node-gradle.node to v7.0.1
renovate[bot] Oct 4, 2023
ef94538
chore(deps): update plugin com.gradle.enterprise to v3.15.1
renovate[bot] Oct 5, 2023
7c6219c
fix(deps): update dependency com.google.guava:guava to v32.1.3-jre
renovate[bot] Oct 11, 2023
d34c2b2
fix(deps): update dependency org.apache.logging.log4j:log4j-core to v…
renovate[bot] Oct 17, 2023
109dbfd
chore(deps): update plugin org.ajoberstar.git-publish to v4.2.1
renovate[bot] Oct 21, 2023
65c5a15
fix(deps): update dependency org.apache.logging.log4j:log4j-core to v…
renovate[bot] Oct 24, 2023
f38fee5
fix(deps): update dependency commons-io:commons-io to v2.15.0
renovate[bot] Oct 26, 2023
b2e6667
Migrate deprecations and warnings
Goooler Oct 27, 2023
bf36338
Reimplement ShadowCopyAction.getPermissions
Goooler Oct 27, 2023
2c85bda
Minor tweaks
Goooler Oct 28, 2023
cdc2103
Polish tests
Goooler Oct 28, 2023
976c02a
fix(deps): update junit5 monorepo to v5.10.1
renovate[bot] Nov 5, 2023
769c8d9
Use azul/zulu-openjdk docker image on CI
Goooler Nov 16, 2023
5b77780
chore(deps): update dependency gradle to v8.5
renovate[bot] Nov 29, 2023
3d7b326
chore(deps): update azul/zulu-openjdk docker tag to v21
renovate[bot] Nov 29, 2023
057c3d7
fix(deps): update dependency org.apache.commons:commons-lang3 to v3.14.0
renovate[bot] Nov 22, 2023
66ec255
fix(deps): update dependency org.apache.logging.log4j:log4j-core to v…
renovate[bot] Nov 20, 2023
2eb3a18
fix(deps): update dependency commons-io:commons-io to v2.15.1
renovate[bot] Nov 29, 2023
d87167b
fix(deps): update dependency org.codehaus.plexus:plexus-xml to v4.0.3
renovate[bot] Dec 13, 2023
4b290d0
chore(deps): update plugin com.gradle.enterprise to v3.16.1
renovate[bot] Dec 14, 2023
1d03f01
fix(deps): update dependency com.google.guava:guava to v33
renovate[bot] Dec 19, 2023
cf88a81
fix(deps): update dependency org.apache.logging.log4j:log4j-core to v…
renovate[bot] Dec 27, 2023
dc3c40f
Remove CC workaround for Sign tasks
Goooler Jan 9, 2024
14ec82f
chore(deps): update plugin com.gradle.enterprise to v3.16.2
renovate[bot] Feb 2, 2024
2d6338d
fix(deps): update dependency org.vafer:jdependency to v2.10
renovate[bot] Jan 25, 2024
8fbe4ee
chore(deps): update gradle/wrapper-validation-action action to v2
renovate[bot] Jan 29, 2024
e5dfc1f
chore(deps): update dependency gradle to v8.6
renovate[bot] Feb 2, 2024
1661709
chore(deps): update plugin com.github.node-gradle.node to v7.0.2
renovate[bot] Feb 3, 2024
ddea78d
chore(deps): update plugin org.ajoberstar.git-publish to v4.2.2
renovate[bot] Feb 18, 2024
52797e8
fix(deps): update junit5 monorepo to v5.10.2
renovate[bot] Feb 4, 2024
f6458ea
Replace deprecated file permission API usage (#82)
jbartok Mar 4, 2024
e012295
fix(deps): update dependency org.apache.logging.log4j:log4j-core to v…
renovate[bot] Feb 21, 2024
4b2b226
Replace deprecated file permission API usage
jbartok Mar 5, 2024
cb55eec
fix(deps): update dependency org.apache.logging.log4j:log4j-core to v…
renovate[bot] Mar 10, 2024
fc406dc
fix(deps): update dependency com.google.guava:guava to v33.1.0-jre
renovate[bot] Mar 13, 2024
41613cb
chore(deps): update dependency gradle to v8.7
renovate[bot] Mar 22, 2024
fc3e9f4
fix(deps): update dependency org.ow2.asm:asm-commons to v9.7
renovate[bot] Mar 23, 2024
c948a32
fix(deps): update dependency org.ow2.asm:asm to v9.7
renovate[bot] Mar 24, 2024
d1e9592
chore(deps): update plugin com.gradle.enterprise to v3.17
renovate[bot] Apr 2, 2024
a84839c
fix(deps): update dependency commons-io:commons-io to v2.16.1
renovate[bot] Apr 8, 2024
b69bbf2
chore(deps): update gradle/wrapper-validation-action action to v3
renovate[bot] Apr 13, 2024
1ed36dc
Migrate to develocity plugin
renovate[bot] Apr 24, 2024
e93d334
fix(deps): update dependency org.codehaus.plexus:plexus-utils to v4.0.1
renovate[bot] Apr 13, 2024
c584842
chore(deps): update dependency gradle to v8.8
renovate[bot] Jun 1, 2024
ddc7fb8
fix(deps): update dependency com.google.guava:guava to v33.2.1-jre
renovate[bot] May 31, 2024
16f1816
fix(deps): update dependency org.codehaus.plexus:plexus-xml to v4.0.4
renovate[bot] May 21, 2024
af47fc9
chore(deps): update plugin com.gradle.develocity to v3.17.4
renovate[bot] May 17, 2024
071a11c
Fix for PropertiesFileTransformer breaks Reproducible builds in 8.1.1
agascon Jun 7, 2024
bbe8479
Update and rename renovate.json to .github/renovate.json5
Goooler Jun 11, 2024
c8cea1c
chore(deps): update plugin com.gradle.develocity to v3.17.5 (#103)
renovate[bot] Jun 13, 2024
781b8a3
Execute tests in parallel
Goooler Jun 21, 2024
29963e0
chore(deps): update dependency gradle to v8.9
renovate[bot] Jul 11, 2024
ce96cdc
fix(deps): update junit5 monorepo to v5.10.3
renovate[bot] Jun 27, 2024
c61e280
Correct destinationDir in doc
Goooler Jul 12, 2024
47cc988
fix(deps): update dependency org.apache.commons:commons-lang3 to v3.15.0
renovate[bot] Jul 17, 2024
dd5e66f
chore(deps): update plugin com.gradle.develocity to v3.17.6
renovate[bot] Jul 22, 2024
67caa4b
Migrate from CircleCI to GHA
Goooler Jul 27, 2024
450f902
Add more Java versions into test matrix
Goooler Jul 31, 2024
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
84 changes: 0 additions & 84 deletions .circleci/config.yml

This file was deleted.

2 changes: 1 addition & 1 deletion renovate.json → .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
"config:base",
]
}
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:

jobs:
build:
strategy:
matrix:
Goooler marked this conversation as resolved.
Show resolved Hide resolved
os: [ ubuntu-latest, windows-latest ]
# Always test on the latest version and all LTS.
java: [ 11, 17, 21, 22 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
Goooler marked this conversation as resolved.
Show resolved Hide resolved
java-version: ${{ matrix.java }}
- uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true
validate-wrappers: true
- run: ./gradlew build
20 changes: 0 additions & 20 deletions .github/workflows/gradle-wrapper-validation.yml

This file was deleted.

30 changes: 12 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ plugins {
id 'idea'
id 'java-gradle-plugin'
id 'signing'
id 'com.gradle.plugin-publish' version '1.1.0'
id 'org.ajoberstar.git-publish' version '4.1.1'
id 'com.github.node-gradle.node' version '3.5.1'
id 'com.gradle.plugin-publish' version '1.2.1'
id 'org.ajoberstar.git-publish' version '4.2.2'
id 'com.github.node-gradle.node' version '7.0.2'
}

apply plugin: ShadowPlugin
Expand All @@ -20,39 +20,33 @@ apply from: file('gradle/vuepress.gradle')
apply from: file('gradle/ghPages.gradle')
apply from: file('gradle/dependencies.gradle')

repositories {
gradlePluginPortal()
mavenCentral()
}

tasks.withType(Test).configureEach {
useJUnitPlatform()

// https://docs.gradle.org/8.8/userguide/performance.html#execute_tests_in_parallel
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1

if (System.env.CI == 'true') {
testLogging.showStandardStreams = true
minHeapSize "1g"
maxHeapSize "1g"
}

systemProperty 'java.io.tmpdir', buildDir.absolutePath
systemProperty 'java.io.tmpdir', project.layout.buildDirectory.asFile.get().absolutePath

// Required to test configuration cache in tests when using withDebug()
// https://github.com/gradle/gradle/issues/22765#issuecomment-1339427241
jvmArgs(
"--add-opens",
"java.base/java.util=ALL-UNNAMED",
"--add-opens",
"java.base/java.util.concurrent.atomic=ALL-UNNAMED",
"--add-opens",
"java.base/java.lang.invoke=ALL-UNNAMED",
"--add-opens",
"java.base/java.net=ALL-UNNAMED",
"--add-opens", "java.base/java.util=ALL-UNNAMED",
"--add-opens", "java.base/java.util.concurrent.atomic=ALL-UNNAMED",
"--add-opens", "java.base/java.lang.invoke=ALL-UNNAMED",
"--add-opens", "java.base/java.net=ALL-UNNAMED",
)
}

// Remove the gradleApi so it isn't merged into the jar file.
// This is required because 'java-gradle-plugin' adds gradleApi() to the 'api' configuration.
// See https://github.com/gradle/gradle/blob/master/subprojects/plugin-development/src/main/java/org/gradle/plugin/devel/plugins/JavaGradlePluginPlugin.java#L162
// See https://github.com/gradle/gradle/blob/972c3e5c6ef990dd2190769c1ce31998a9402a79/subprojects/plugin-development/src/main/java/org/gradle/plugin/devel/plugins/JavaGradlePluginPlugin.java#L161
configurations.named(JavaPlugin.API_CONFIGURATION_NAME) {
dependencies.remove(project.dependencies.gradleApi())
}
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ScriptHolder {

//Grab the dependencies closure and resolve it against
//the buildSrc project dependencies
//This effectively applies the same dependenices from build.gradle into buildSrc/build.gradle
//This effectively applies the same dependencies from build.gradle into buildSrc/build.gradle
//This is required so that when buildSrc is compiled it has the dependencies to compile the source code
def closure = holder.dependencies.clone()
closure.delegate = project.dependencies
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=2g
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx4g -XX:MaxMetaspaceSize=2g
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.unsafe.configuration-cache=true
org.gradle.configuration-cache=true
24 changes: 13 additions & 11 deletions gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ dependencies {
shadow 'org.codehaus.groovy:groovy-backports-compat23:3.0.8'

implementation 'org.jdom:jdom2:2.0.6.1'
implementation 'org.ow2.asm:asm:9.5'
implementation 'org.ow2.asm:asm-commons:9.5'
implementation 'commons-io:commons-io:2.11.0'
implementation 'org.apache.ant:ant:1.10.13'
implementation 'org.codehaus.plexus:plexus-utils:3.5.1'
implementation "org.apache.logging.log4j:log4j-core:2.20.0"
implementation('org.vafer:jdependency:2.8.0') {
implementation 'org.ow2.asm:asm:9.7'
implementation 'org.ow2.asm:asm-commons:9.7'
implementation 'commons-io:commons-io:2.16.1'
implementation 'org.apache.ant:ant:1.10.14'
implementation 'org.codehaus.plexus:plexus-utils:4.0.1'
implementation 'org.codehaus.plexus:plexus-xml:4.0.4'
implementation "org.apache.logging.log4j:log4j-core:2.23.1"
implementation('org.vafer:jdependency:2.10') {
exclude group: 'org.ow2.asm'
}

Expand All @@ -19,8 +20,9 @@ dependencies {
}
testImplementation 'org.spockframework:spock-junit4:2.3-groovy-3.0'
testImplementation 'xmlunit:xmlunit:1.6'
testImplementation 'org.apache.commons:commons-lang3:3.12.0'
testImplementation 'com.google.guava:guava:31.1-jre'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.9.2'
testImplementation 'org.apache.commons:commons-lang3:3.15.0'
testImplementation 'com.google.guava:guava:33.2.1-jre'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.10.3'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
4 changes: 0 additions & 4 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ signing {
sign(publishing.publications)
}

tasks.withType(Sign).configureEach {
notCompatibleWithConfigurationCache("https://github.com/gradle/gradle/issues/13470")
}

tasks.register('release') {
dependsOn tasks.named('assemble'), tasks.named('publishPlugins'), tasks.named('gitPublishPush')
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
34 changes: 21 additions & 13 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

##############################################################################
#
Expand Down Expand Up @@ -55,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand Down Expand Up @@ -83,10 +85,9 @@ done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down Expand Up @@ -133,26 +134,29 @@ location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi

# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down Expand Up @@ -197,11 +201,15 @@ if "$cygwin" || "$msys" ; then
done
fi

# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.

set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
Expand Down
Loading