Skip to content

Commit 3518ac5

Browse files
committed
Merge branch 'main' into markdownExtConfig
2 parents b1cebd1 + b48fed7 commit 3518ac5

33 files changed

+186
-148
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,25 @@ jobs:
9797
cd ..
9898
./gradlew testIdea
9999
- name: junit result
100-
uses: mikepenz/action-junit-report@v5
100+
uses: mikepenz/action-junit-report@v6
101101
if: always() # always run even if the previous step fails
102102
with:
103103
check_name: JUnit ${{ matrix.kind }} ${{ matrix.jre }} ${{ matrix.os }}
104104
report_paths: '*/build/test-results/*/TEST-*.xml'
105105
check_retries: true
106+
107+
# Status check that is required in branch protection rules.
108+
final-status:
109+
needs:
110+
- build
111+
runs-on: ubuntu-latest
112+
if: always()
113+
steps:
114+
- name: Check
115+
run: |
116+
results=$(tr -d '\n' <<< '${{ toJSON(needs.*.result) }}')
117+
if ! grep -q -v -E '(failure|cancelled)' <<< "$results"; then
118+
echo "One or more required jobs failed"
119+
exit 1
120+
fi
121+
echo "All required jobs completed successfully."

CHANGES.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
1212
## [Unreleased]
1313
### Changes
1414
* Bump default `ktfmt` version to latest `0.58` -> `0.59`. ([#2681](https://github.com/diffplug/spotless/pull/2681)
15+
* Use Task Providers for task initialization. [#2719](https://github.com/diffplug/spotless/pull/2719)
16+
* **BREAKING** Bump minimum supported Gradle version from 7.3 to 8.1. [#2719](https://github.com/diffplug/spotless/pull/2719)
17+
* Bump default `jackson` version to latest `2.20.0` -> `2.20.1`. ([#2730](https://github.com/diffplug/spotless/pull/2730))
18+
* Bump default `cleanthat` version to latest `2.23` -> `2.24`. ([#2620](https://github.com/diffplug/spotless/pull/2620))
1519
### Fixed
16-
- palantirJavaFormat is no longer arbitrarily set to outdated versions on Java 17, latest available version is always used ([#2686](https://github.com/diffplug/spotless/pull/2686) fixes [#2685](https://github.com/diffplug/spotless/issues/2685))
20+
* palantirJavaFormat is no longer arbitrarily set to outdated versions on Java 17, latest available version is always used ([#2686](https://github.com/diffplug/spotless/pull/2686) fixes [#2685](https://github.com/diffplug/spotless/issues/2685))
21+
* Use Provider API for Gradle properties. ([#2718](https://github.com/diffplug/spotless/pull/2718)
1722
### Added
18-
- new options to customize Flexmark, e.g. to allow YAML front matter ([#2616](https://github.com/diffplug/spotless/issues/2616))
23+
* new options to customize Flexmark, e.g. to allow YAML front matter ([#2616](https://github.com/diffplug/spotless/issues/2616))
1924
### Removed
2025
* **BREAKING** Drop support for older Ktlint versions. ([#2711](https://github.com/diffplug/spotless/pull/2711))
2126

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ spotless {
3131
}
3232

3333
dependencies {
34-
rewrite(platform('org.openrewrite.recipe:rewrite-recipe-bom:3.16.0'))
34+
rewrite(platform('org.openrewrite.recipe:rewrite-recipe-bom:3.18.0'))
3535
rewrite('org.openrewrite.recipe:rewrite-migrate-java:3.19.0')
3636
rewrite('org.openrewrite.recipe:rewrite-java-security:3.19.2')
3737
rewrite('org.openrewrite.recipe:rewrite-rewrite:0.14.0')
3838
rewrite('org.openrewrite.recipe:rewrite-static-analysis:2.19.0')
39-
rewrite('org.openrewrite.recipe:rewrite-third-party:0.29.0')
39+
rewrite('org.openrewrite.recipe:rewrite-third-party:0.31.1')
4040
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ VER_SLF4J=[1.6,2.0[
3030
# Used in multiple places
3131
VER_DURIAN=1.2.0
3232
VER_JGIT=7.4.0.202509020913-r
33-
VER_JUNIT=5.14.0
33+
VER_JUNIT=5.14.1
3434
VER_ASSERTJ=3.27.6
3535
VER_MOCKITO=5.20.0
3636
VER_SELFIE=2.5.4

gradle/error-prone.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'net.ltgt.errorprone'
22

33
dependencies {
44
errorprone('com.google.errorprone:error_prone_core:2.42.0')
5-
errorprone('tech.picnic.error-prone-support:error-prone-contrib:0.25.0')
5+
errorprone('tech.picnic.error-prone-support:error-prone-contrib:0.26.0')
66
}
77

88
tasks.withType(JavaCompile).configureEach {

gradle/wrapper/gradle-wrapper.jar

176 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-9.1.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

lib-extra/build.gradle

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ spotless {
3838

3939
apply from: rootProject.file('gradle/special-tests.gradle')
4040
tasks.withType(Test).configureEach {
41-
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_16)) {
42-
// needed for EclipseCdtFormatterStepTest
43-
jvmArgs '--add-opens=java.base/java.lang=ALL-UNNAMED'
44-
}
41+
// needed for EclipseCdtFormatterStepTest
42+
jvmArgs '--add-opens=java.base/java.lang=ALL-UNNAMED'
4543
}
4644

4745
def NEEDS_P2_DEPS = [
@@ -50,9 +48,6 @@ def NEEDS_P2_DEPS = [
5048
'groovy',
5149
'jdt'
5250
]
53-
if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
54-
NEEDS_P2_DEPS.remove('cdt')
55-
}
5651
for (needsP2 in NEEDS_P2_DEPS) {
5752
sourceSets.register(needsP2) {
5853
compileClasspath += sourceSets.main.output

lib/build.gradle

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ dependencies {
8080

8181
// GLUE CODE (alphabetic order please)
8282
// cleanthat
83-
String VER_CLEANTHAT='2.23'
83+
String VER_CLEANTHAT='2.24'
8484
cleanthatCompileOnly "io.github.solven-eu.cleanthat:java:$VER_CLEANTHAT"
8585
compatCleanthat2Dot1CompileAndTestOnly "io.github.solven-eu.cleanthat:java:$VER_CLEANTHAT"
8686
// diktat old supported version 1.x
@@ -97,7 +97,7 @@ dependencies {
9797
// gson
9898
gsonCompileOnly 'com.google.code.gson:gson:2.13.2'
9999
// jackson
100-
String VER_JACKSON='2.20.0'
100+
String VER_JACKSON='2.20.1'
101101
jacksonCompileOnly "com.fasterxml.jackson.core:jackson-databind:$VER_JACKSON"
102102
jacksonCompileOnly "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$VER_JACKSON"
103103
// ktfmt
@@ -131,15 +131,9 @@ spotbugs {
131131

132132
apply from: rootProject.file('gradle/special-tests.gradle')
133133
tasks.withType(Test).configureEach {
134-
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_16)) {
135-
// https://docs.gradle.org/7.5/userguide/upgrading_version_7.html#removes_implicit_add_opens_for_test_workers
136-
jvmArgs "--add-opens=java.base/java.lang=ALL-UNNAMED"
137-
}
134+
jvmArgs "--add-opens=java.base/java.lang=ALL-UNNAMED"
138135

139-
if (GradleVersion.current() >= GradleVersion.version('9.0')) {
140-
// https://github.com/gradle/gradle/issues/33619
141-
failOnNoDiscoveredTests = false
142-
}
136+
failOnNoDiscoveredTests = false
143137
}
144138

145139
jar {

lib/src/main/java/com/diffplug/spotless/java/CleanthatJavaStep.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public final class CleanthatJavaStep implements Serializable {
4545
/**
4646
* CleanThat changelog is available at <a href="https://github.com/solven-eu/cleanthat/blob/master/CHANGES.MD">here</a>.
4747
*/
48-
private static final Jvm.Support<String> JVM_SUPPORT = Jvm.<String> support(NAME).add(11, "2.23");
48+
private static final Jvm.Support<String> JVM_SUPPORT = Jvm.<String> support(NAME).add(11, "2.24");
4949

5050
private final JarState.Promised jarState;
5151
private final String version;

0 commit comments

Comments
 (0)