Skip to content

Commit 830b1e0

Browse files
committed
Merge branch 'develop' into cr/fix-missing-native-image-dir
2 parents 0a9f080 + d39fa61 commit 830b1e0

File tree

84 files changed

+685
-309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+685
-309
lines changed

build.gradle

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
buildscript {
22
repositories {
3-
mavenCentral() { metadataSources { mavenPom(); ignoreGradleMetadataRedirection() } }
4-
gradlePluginPortal() { metadataSources { mavenPom(); ignoreGradleMetadataRedirection() } }
3+
mavenCentral()
4+
gradlePluginPortal()
55
}
66

77
dependencies {
88
classpath 'com.palantir.jakartapackagealignment:jakarta-package-alignment:0.6.0'
99
classpath 'com.gradle.publish:plugin-publish-plugin:1.3.1'
10-
classpath 'com.palantir.baseline:gradle-baseline-java:6.29.0'
11-
classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.34.0'
10+
classpath 'com.palantir.baseline:gradle-baseline-java:6.42.0'
11+
classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.36.0'
1212
classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.19.0'
13-
classpath 'com.palantir.gradle.failure-reports:gradle-failure-reports:1.13.0'
14-
classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.2.0'
15-
classpath 'com.palantir.gradle.idea-configuration:gradle-idea-configuration:0.4.0'
16-
classpath 'com.palantir.gradle.jdks:gradle-jdks:0.67.0'
17-
classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.18.0'
13+
classpath 'com.palantir.gradle.failure-reports:gradle-failure-reports:1.14.0'
14+
classpath 'com.palantir.gradle.gitversion:gradle-git-version:4.0.0'
15+
classpath 'com.palantir.gradle.idea-configuration:gradle-idea-configuration:0.5.0'
16+
classpath 'com.palantir.gradle.jdks:gradle-jdks:0.69.0'
17+
classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.21.0'
1818
classpath 'com.palantir.gradle.plugintesting:gradle-plugin-testing:0.6.0'
19-
classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.67.0'
19+
classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.71.0'
2020
classpath 'com.palantir.gradle.revapi:gradle-revapi:1.8.0'
21-
classpath 'com.palantir.suppressible-error-prone:gradle-suppressible-error-prone:2.9.0'
22-
classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
21+
classpath 'com.palantir.suppressible-error-prone:gradle-suppressible-error-prone:2.11.0'
2322
classpath 'me.champeau.jmh:jmh-gradle-plugin:0.7.3'
2423
}
2524
}
@@ -50,7 +49,6 @@ allprojects {
5049

5150
subprojects {
5251
apply plugin: 'java-library'
53-
apply plugin: 'org.inferred.processors'
5452

5553
tasks.withType(Checkstyle).configureEach {
5654
enabled = false

changelog/2.68.0/pr-1312.v2.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
type: fix
2+
fix:
3+
description: Support for var in record patterns
4+
links:
5+
- https://github.com/palantir/palantir-java-format/pull/1312

changelog/2.69.0/pr-1313.v2.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
type: improvement
2+
improvement:
3+
description: Make palantir-java-format support spotless 6.22.0, which is [transitively
4+
brought in from baseline to support the configuration cache](https://github.com/palantir/gradle-baseline/pull/3119)
5+
links:
6+
- https://github.com/palantir/palantir-java-format/pull/1313

changelog/2.70.0/pr-1338.v2.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
type: fix
2+
fix:
3+
description: Update to use the new configuration cache safe `GradleOperatingSystem`
4+
links:
5+
- https://github.com/palantir/palantir-java-format/pull/1338

changelog/2.71.0/pr-1367.v2.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
type: fix
2+
fix:
3+
description: |-
4+
Fix the following error when running under JDK 25 EA:
5+
6+
```
7+
'java.util.Queue com.sun.tools.javac.util.Log$DeferredDiagnosticHandler.getDiagnostics()'
8+
java.lang.NoSuchMethodError: 'java.util.Queue com.sun.tools.javac.util.Log$DeferredDiagnosticHandler.getDiagnostics()'
9+
```
10+
links:
11+
- https://github.com/palantir/palantir-java-format/pull/1367

eclipse_plugin/src/main/java/com/palantir/javaformat/java/PalantirJavaFormatter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public String createIndentationString(int indentationLevel) {
6060
}
6161

6262
/** Runs the Google Java formatter on the given source, with only the given ranges specified. */
63+
@SuppressWarnings("for-rollout:StatementSwitchToExpressionSwitch")
6364
@Nullable
6465
private TextEdit formatInternal(int kind, String source, IRegion[] regions, int initialIndent) {
6566
try {

eclipse_plugin/src/main/java/com/palantir/javaformat/java/SnippetFormatter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ private static List<Replacement> toReplacements(String source, String replacemen
153153
return replacements;
154154
}
155155

156+
@SuppressWarnings("for-rollout:StatementSwitchToExpressionSwitch")
156157
private SnippetWrapper snippetWrapper(SnippetKind kind, String source, int initialIndent) {
157158
/*
158159
* Synthesize a dummy class around the code snippet provided by Eclipse. The

gradle-palantir-java-format/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,5 @@ tasks.named("test").configure {
115115
}
116116

117117
gradleTestUtils {
118-
gradleVersions = ['7.6.4', '8.8', '8.12.1']
118+
gradleVersions = ['8.14.3']
119119
}

gradle-palantir-java-format/src/main/groovy/com/palantir/javaformat/gradle/NativeImageAtomicCopy.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import java.nio.file.Paths;
2828
import java.nio.file.StandardCopyOption;
2929
import java.nio.file.StandardOpenOption;
30-
import java.util.Optional;
3130
import org.gradle.api.logging.Logger;
3231
import org.gradle.api.logging.Logging;
3332

@@ -79,10 +78,5 @@ public static URI copyToCacheDir(URI srcUri, File cacheDir) {
7978
}
8079
}
8180

82-
private static Path getGradleCacheDir() {
83-
return Path.of(Optional.ofNullable(System.getenv("GRADLE_USER_HOME"))
84-
.orElseGet(() -> System.getenv("HOME") + "/.gradle"));
85-
}
86-
8781
private NativeImageAtomicCopy() {}
8882
}

0 commit comments

Comments
 (0)