GeezerVison is showing github.com — Bump the min Gradle and Java requirements to 7.3 and 17 (#2540, first… · diffplug/spotless@b64ab47
File treeExpand file treeCollapse file tree Open diff view settings lib-extra/src/test/java/com/diffplug/spotless/extra/cpp main/java/com/diffplug/gradle/spotless test/java/com/diffplug/gradle/spotless
main/java/com/diffplug/spotless test/java/com/diffplug/spotless
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/changelog-print.yml +2-3Lines changed: 2 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 10 | 10 | name: changelogPrint | 11 | 11 | steps: | 12 | 12 | - uses: actions/checkout@v4 | 13 | | - - name: jdk 11 | 14 | | - uses: actions/setup-java@v4 | | 13 | + - uses: actions/setup-java@v4 | 15 | 14 | with: | 16 | | - java-version: 11 | | 15 | + java-version: 21 | 17 | 16 | distribution: 'temurin' | 18 | 17 | - name: gradle caching | 19 | 18 | uses: gradle/actions/setup-gradle@v4 | |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/ci.yml +8-17Lines changed: 8 additions & 17 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -23,11 +23,10 @@ jobs: | 23 | 23 | uses: actions/checkout@v4 | 24 | 24 | with: | 25 | 25 | fetch-depth: 0 | 26 | | - - name: Install JDK 11 | 27 | | - uses: actions/setup-java@v4 | | 26 | + - uses: actions/setup-java@v4 | 28 | 27 | with: | 29 | 28 | distribution: "temurin" | 30 | | - java-version: 11 | | 29 | + java-version: 21 | 31 | 30 | - name: gradle caching | 32 | 31 | uses: gradle/actions/setup-gradle@v4 | 33 | 32 | - name: spotlessCheck | @@ -41,33 +40,25 @@ jobs: | 41 | 40 | matrix: | 42 | 41 | kind: [maven, gradle] | 43 | 42 | # Test on the latest Java version once Gradle & Maven support it. | 44 | | - jre: [11, 17, 21, 24] | 45 | | - os: [ubuntu-latest] | | 43 | + jre: [17, 21, 24] | | 44 | + os: [ubuntu-latest, windows-latest] | 46 | 45 | include: | 47 | | - # test windows at the diagonals of the above matrix | 48 | | - - kind: maven | 49 | | - jre: 11 | 50 | | - os: windows-latest | 51 | | - - kind: gradle | 52 | | - jre: 17 | 53 | | - os: windows-latest | 54 | 46 | # npm on linux only (crazy slow on windows) | 55 | 47 | - kind: npm | 56 | | - jre: 11 | | 48 | + jre: 17 | 57 | 49 | os: ubuntu-latest | 58 | 50 | - kind: shfmt | 59 | | - jre: 11 | | 51 | + jre: 17 | 60 | 52 | os: ubuntu-latest | 61 | 53 | shfmt-version: v3.8.0 | 62 | 54 | - kind: idea | 63 | | - jre: 11 | | 55 | + jre: 17 | 64 | 56 | os: ubuntu-latest | 65 | 57 | runs-on: ${{ matrix.os }} | 66 | 58 | steps: | 67 | 59 | - name: Checkout | 68 | 60 | uses: actions/checkout@v4 | 69 | | - - name: Install JDK ${{ matrix.distribution }} ${{ matrix.java_version }} | 70 | | - uses: actions/setup-java@v4 | | 61 | + - uses: actions/setup-java@v4 | 71 | 62 | with: | 72 | 63 | distribution: "temurin" | 73 | 64 | java-version: ${{ matrix.jre }} | |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/deploy.yml +2-3Lines changed: 2 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 38 | 38 | ORG_GRADLE_PROJECT_gpg_key64: ${{ secrets.GPG_KEY64 }} | 39 | 39 | steps: | 40 | 40 | - uses: actions/checkout@v4 | 41 | | - - name: jdk 11 | 42 | | - uses: actions/setup-java@v4 | | 41 | + - uses: actions/setup-java@v4 | 43 | 42 | with: | 44 | | - java-version: 17 | | 43 | + java-version: 21 | 45 | 44 | distribution: 'temurin' | 46 | 45 | - name: gradle caching | 47 | 46 | uses: gradle/actions/setup-gradle@v4 | |
Collapse file Copy file name to clipboardExpand all lines: CHANGES.md +2Lines changed: 2 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10,6 +10,8 @@ This document is intended for Spotless developers. | 10 | 10 | We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`). | 11 | 11 |
| 12 | 12 | ## [Unreleased] | | 13 | +### Changes | | 14 | +* **BREAKING** Bump the required Java to `17`. ([#2375](https://github.com/diffplug/spotless/issues/2375), [#2540](https://github.com/diffplug/spotless/pull/2540)) | 13 | 15 |
| 14 | 16 | ## [3.3.0] - 2025-07-20 | 15 | 17 | ### Added | |
Collapse file Copy file name to clipboardExpand all lines: gradle.properties +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,6 +3,7 @@ org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1024m -Dfile.encoding=UTF-8 | 3 | 3 | org.gradle.parallel=true | 4 | 4 | org.gradle.caching=true | 5 | 5 | org.gradle.configuration-cache=true | | 6 | +org.gradle.configuration-cache.parallel=true | 6 | 7 |
| 7 | 8 | name=spotless | 8 | 9 | description=Spotless - keep your code spotless with Gradle | @@ -32,4 +33,4 @@ VER_JGIT=6.10.1.202505221210-r | 32 | 33 | VER_JUNIT=5.13.3 | 33 | 34 | VER_ASSERTJ=3.27.3 | 34 | 35 | VER_MOCKITO=5.18.0 | 35 | | -VER_SELFIE=2.5.3 | | 36 | +VER_SELFIE=2.5.3 |
Collapse file Copy file name to clipboard Collapse file Copy file name to clipboardExpand all lines: gradle/wrapper/gradle-wrapper.properties +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | distributionBase=GRADLE_USER_HOME | 2 | 2 | distributionPath=wrapper/dists | 3 | | -distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip | | 3 | +distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-rc-1-bin.zip | 4 | 4 | networkTimeout=10000 | 5 | 5 | validateDistributionUrl=true | 6 | 6 | zipStoreBase=GRADLE_USER_HOME | |
Collapse file Copy file name to clipboardExpand all lines: gradlew +1-1Lines changed: 1 addition & 1 deletion Collapse file Copy file name to clipboardExpand all lines: lib-extra/src/test/java/com/diffplug/spotless/extra/cpp/EclipseCdtFormatterStepTest.java -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 15 | 15 | */ | 16 | 16 | package com.diffplug.spotless.extra.cpp; | 17 | 17 |
| 18 | | -import static org.junit.jupiter.api.condition.JRE.JAVA_17; | 19 | | - | 20 | 18 | import java.util.stream.Stream; | 21 | 19 |
| 22 | | -import org.junit.jupiter.api.condition.EnabledForJreRange; | 23 | 20 | import org.junit.jupiter.params.ParameterizedTest; | 24 | 21 | import org.junit.jupiter.params.provider.MethodSource; | 25 | 22 |
| @@ -33,7 +30,6 @@ public EclipseCdtFormatterStepTest() { | 33 | 30 |
| 34 | 31 | @ParameterizedTest | 35 | 32 | @MethodSource | 36 | | - @EnabledForJreRange(min = JAVA_17) | 37 | 33 | void formatWithVersion(String version) throws Exception { | 38 | 34 | harnessFor(version).test("main.c", | 39 | 35 | "#include <a.h>;\nint main(int argc, \nchar *argv[]) {}", | |
Collapse file Copy file name to clipboardExpand all lines: lib/build.gradle +7Lines changed: 7 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +import org.gradle.util.GradleVersion | | 2 | + | 1 | 3 | plugins { | 2 | 4 | id 'java-library' | 3 | 5 | id 'io.github.davidburstrom.version-compatibility' | @@ -148,6 +150,11 @@ tasks.withType(Test).configureEach { | 148 | 150 | // https://docs.gradle.org/7.5/userguide/upgrading_version_7.html#removes_implicit_add_opens_for_test_workers | 149 | 151 | jvmArgs "--add-opens=java.base/java.lang=ALL-UNNAMED" | 150 | 152 | } | | 153 | + | | 154 | + if (GradleVersion.current() >= GradleVersion.version('9.0')) { | | 155 | + // https://github.com/gradle/gradle/issues/33619 | | 156 | + failOnNoDiscoveredTests = false | | 157 | + } | 151 | 158 | } | 152 | 159 |
| 153 | 160 | jar { | |
|