Skip to content

Commit 7d6dbad

Browse files
committed
Gradle 8.10-rc-1
1 parent 4546dfb commit 7d6dbad

File tree

7 files changed

+32
-29
lines changed

7 files changed

+32
-29
lines changed

.github/workflows/nebula.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,21 @@ jobs:
2222
strategy:
2323
matrix:
2424
# test against latest update of some major Java version(s), as well as specific LTS version(s)
25-
java: [ 8, 17, 21]
25+
java: [8, 17, 21]
2626
name: Gradle Build without Publish
2727
steps:
2828
- uses: actions/checkout@v1
2929
- name: Setup git user
3030
run: |
3131
git config --global user.name "Nebula Plugin Maintainers"
3232
git config --global user.email "[email protected]"
33-
- name: Set up JDK 8
34-
uses: actions/setup-java@v2
33+
- name: Set up JDKs
34+
uses: actions/setup-java@v4
3535
with:
3636
distribution: 'zulu'
37-
java-version: '8'
38-
java-package: jdk
39-
- name: Setup jdk
40-
uses: actions/setup-java@v2
41-
with:
42-
distribution: 'zulu'
43-
java-version: ${{ matrix.java }}
37+
java-version: |
38+
8
39+
${{ matrix.java }}
4440
java-package: jdk
4541
- uses: actions/cache@v1
4642
id: gradle-cache
@@ -74,10 +70,14 @@ jobs:
7470
run: |
7571
git config --global user.name "Nebula Plugin Maintainers"
7672
git config --global user.email "[email protected]"
77-
- name: Setup jdk 8
78-
uses: actions/setup-java@v1
73+
- name: Set up JDKs
74+
uses: actions/setup-java@v4
7975
with:
80-
java-version: 1.8
76+
distribution: 'zulu'
77+
java-version: |
78+
8
79+
21
80+
java-package: jdk
8181
- uses: actions/cache@v1
8282
id: gradle-cache
8383
with:
@@ -115,10 +115,14 @@ jobs:
115115
run: |
116116
git config --global user.name "Nebula Plugin Maintainers"
117117
git config --global user.email "[email protected]"
118-
- name: Setup jdk 8
119-
uses: actions/setup-java@v1
118+
- name: Set up JDKs
119+
uses: actions/setup-java@v4
120120
with:
121-
java-version: 1.8
121+
distribution: 'zulu'
122+
java-version: |
123+
8
124+
21
125+
java-package: jdk
122126
- uses: actions/cache@v1
123127
id: gradle-cache
124128
with:
@@ -143,4 +147,3 @@ jobs:
143147
startsWith(github.ref, 'refs/tags/v') &&
144148
(!contains(github.ref, '-rc.'))
145149
run: ./gradlew --info --stacktrace -Dgradle.publish.key=${{ secrets.gradlePublishKey }} -Dgradle.publish.secret=${{ secrets.gradlePublishSecret }} -Prelease.useLastTag=true final
146-

build.gradle

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ buildscript {
2525
}
2626

2727
plugins {
28-
id 'com.netflix.nebula.plugin-plugin' version '20.11.0'
28+
id 'com.netflix.nebula.plugin-plugin' version '21.0.0'
2929
id "org.jetbrains.kotlin.jvm" version "1.8.0"
3030
id 'com.github.johnrengelman.shadow' version '7.1.2'
3131
id 'java-gradle-plugin'
@@ -157,15 +157,9 @@ java {
157157
}
158158
}
159159

160-
tasks.withType(Test) {
160+
tasks.withType(Test).configureEach {
161161
maxHeapSize = '512m'
162162
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
163-
javaLauncher = javaToolchains.launcherFor {
164-
languageVersion = JavaLanguageVersion.of(System.getenv("JDK_VERSION_FOR_TESTS")?.toInteger() ?: 8)
165-
}
166-
doFirst {
167-
logger.lifecycle("Executing tests with JDK: ${System.getenv("JDK_VERSION_FOR_TESTS")?.toInteger() ?: 8}")
168-
}
169163
testLogging {
170164
events "PASSED", "FAILED", "SKIPPED"
171165
afterSuite { desc, result ->
@@ -181,10 +175,10 @@ tasks.withType(Test) {
181175

182176
// Kotlin compiles first, stubbing Java dependencies, however it can't stub Groovy and we need to call Groovy code from Kotlin. For details see:
183177
// https://discuss.gradle.org/t/kotlin-groovy-and-java-compilation/14903/10
184-
tasks.named('compileGroovy') {
178+
tasks.named('compileGroovy').configure {
185179
classpath = sourceSets.main.compileClasspath
186180
}
187-
tasks.named('compileKotlin') {
181+
tasks.named('compileKotlin').configure {
188182
classpath += files(sourceSets.main.groovy.classesDirectory)
189183
}
190184

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
toolchainVersion=21

gradle/wrapper/gradle-wrapper.jar

51 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-rc-1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717
#
18+
# SPDX-License-Identifier: Apache-2.0
19+
#
1820

1921
##############################################################################
2022
#
@@ -84,7 +86,8 @@ done
8486
# shellcheck disable=SC2034
8587
APP_BASE_NAME=${0##*/}
8688
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87-
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90+
' "$PWD" ) || exit
8891

8992
# Use the maximum available, or set MAX_FD != -1 to use that value.
9093
MAX_FD=maximum

gradlew.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
@rem See the License for the specific language governing permissions and
1414
@rem limitations under the License.
1515
@rem
16+
@rem SPDX-License-Identifier: Apache-2.0
17+
@rem
1618

1719
@if "%DEBUG%"=="" @echo off
1820
@rem ##########################################################################

0 commit comments

Comments
 (0)