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

Bump spotless and versionlock #2829

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-2829.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: fix
fix:
description: Update spotless java to 6.25.0 from 6.6.0
links:
- https://github.com/palantir/gradle-baseline/pull/2829
29 changes: 20 additions & 9 deletions versions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ aopalliance:aopalliance:1.0 (1 constraints: 170a83ac)
com.diffplug.durian:durian-collect:1.2.0 (3 constraints: 4d313bd2)
com.diffplug.durian:durian-core:1.2.0 (4 constraints: 2640ae56)
com.diffplug.durian:durian-io:1.2.0 (1 constraints: 1313c62d)
com.diffplug.spotless:spotless-lib:2.25.3 (2 constraints: f424dde6)
com.diffplug.spotless:spotless-lib-extra:2.25.3 (1 constraints: 4c132341)
com.diffplug.spotless:spotless-plugin-gradle:6.6.0 (1 constraints: 0e051b36)
com.diffplug.durian:durian-swt.os:4.2.2 (1 constraints: c70947a9)
com.diffplug.spotless:spotless-lib:2.45.0 (2 constraints: f224b1e6)
com.diffplug.spotless:spotless-lib-extra:2.45.0 (1 constraints: 4b132841)
com.diffplug.spotless:spotless-plugin-gradle:6.25.0 (1 constraints: 3f055a3b)
com.github.ben-manes.caffeine:caffeine:3.1.8 (2 constraints: f0175a58)
com.github.kevinstern:software-and-algorithms:1.0 (1 constraints: 7e12fcf5)
com.google.auto:auto-common:1.2.2 (3 constraints: a432fc93)
Expand All @@ -26,14 +27,19 @@ com.google.j2objc:j2objc-annotations:3.0.0 (1 constraints: 150aeab4)
com.google.protobuf:protobuf-java:3.19.6 (1 constraints: 301169c9)
com.googlecode.concurrent-trees:concurrent-trees:2.6.1 (1 constraints: 761166da)
com.googlecode.java-diff-utils:diffutils:1.3.0 (1 constraints: 0605f935)
com.googlecode.javaewah:JavaEWAH:1.1.12 (1 constraints: 750eee5e)
com.googlecode.javaewah:JavaEWAH:1.2.3 (1 constraints: 460e7e50)
com.palantir.gradle.failure-reports:gradle-failure-reports-exceptions:1.2.0 (1 constraints: 0505f635)
com.palantir.gradle.utils:lazily-configured-mapping:0.1.0 (1 constraints: 0305ee35)
com.palantir.javaformat:gradle-palantir-java-format:1.1.0 (1 constraints: 0405f335)
com.palantir.javaformat:palantir-java-format-spi:1.1.0 (1 constraints: 711560be)
com.squareup.okhttp3:okhttp:4.12.0 (1 constraints: f6093eb3)
com.squareup.okio:okio:3.6.0 (1 constraints: 530c38fd)
com.squareup.okio:okio-jvm:3.6.0 (1 constraints: 500ad3b9)
com.uber.nullaway:nullaway:0.10.26 (1 constraints: 6b059040)
commons-codec:commons-codec:1.16.0 (1 constraints: 780efe5e)
commons-io:commons-io:2.16.1 (2 constraints: f919e608)
commons-lang:commons-lang:2.6 (1 constraints: ac04232c)
dev.equo.ide:solstice:1.7.5 (1 constraints: 7a1168da)
io.github.eisop:dataflow-errorprone:3.41.0-eisop1 (3 constraints: 3e40ddde)
io.github.java-diff-utils:java-diff-utils:4.12 (1 constraints: b412c908)
javax.annotation:javax.annotation-api:1.2 (1 constraints: e01020af)
Expand All @@ -59,22 +65,27 @@ org.apache.maven.shared:maven-dependency-analyzer:1.13.2 (1 constraints: 3905343
org.apache.maven.shared:maven-shared-utils:3.3.4 (1 constraints: e60b61f3)
org.checkerframework:checker-qual:3.42.0 (4 constraints: 5a37a241)
org.checkerframework:dataflow-nullaway:3.42.0 (2 constraints: 66118ff1)
org.codehaus.groovy:groovy:3.0.13 (3 constraints: e62866d7)
org.codehaus.groovy:groovy-xml:3.0.13 (1 constraints: 791161da)
org.codehaus.plexus:plexus-cipher:2.0 (1 constraints: 641174c7)
org.codehaus.plexus:plexus-classworlds:2.6.0 (3 constraints: 572b5104)
org.codehaus.plexus:plexus-component-annotations:2.1.0 (2 constraints: 241d860a)
org.codehaus.plexus:plexus-interpolation:1.26 (3 constraints: 7b2bf0f5)
org.codehaus.plexus:plexus-sec-dispatcher:2.0 (1 constraints: 5c100b99)
org.codehaus.plexus:plexus-utils:3.5.1 (11 constraints: 3fa89966)
org.eclipse.jgit:org.eclipse.jgit:5.13.0.202109080827-r (2 constraints: 562b9625)
org.eclipse.jgit:org.eclipse.jgit:6.7.0.202309050840-r (2 constraints: f22a55d9)
org.eclipse.platform:org.eclipse.osgi:3.18.300 (1 constraints: 5e0ad9c7)
org.eclipse.sisu:org.eclipse.sisu.inject:0.3.5 (3 constraints: 852caa93)
org.eclipse.sisu:org.eclipse.sisu.plexus:0.3.5 (2 constraints: 141abc34)
org.immutables:value:2.10.1 (2 constraints: fc1456c1)
org.inferred:freebuilder:1.14.6 (1 constraints: 3e053b3b)
org.jetbrains:annotations:24.1.0 (3 constraints: da2fc133)
org.jetbrains.kotlin:kotlin-stdlib:1.9.10 (2 constraints: c2210fe1)
org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10 (2 constraints: 3f1b4b83)
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.10 (1 constraints: e210ffd2)
org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10 (2 constraints: 8118c1c5)
org.ow2.asm:asm:9.7 (3 constraints: f522aaed)
org.pcollections:pcollections:4.0.1 (1 constraints: f21028b8)
org.slf4j:slf4j-api:1.7.36 (10 constraints: 769c0f4c)
org.slf4j:slf4j-api:1.7.36 (11 constraints: 7ba60d0f)
org.tukaani:xz:1.9 (1 constraints: 6b09e995)

[Test dependencies]
cglib:cglib-nodep:3.2.2 (1 constraints: 490ded24)
Expand Down Expand Up @@ -114,12 +125,12 @@ net.lingala.zip4j:zip4j:1.3.2 (1 constraints: 0805fb35)
one.util:streamex:0.8.2 (1 constraints: 0c050536)
org.apiguardian:apiguardian-api:1.1.2 (7 constraints: 9d791b5f)
org.assertj:assertj-core:3.25.3 (3 constraints: ee2a9aa1)
org.codehaus.groovy:groovy:3.0.13 (2 constraints: 241bc56d)
org.eclipse.collections:eclipse-collections:11.1.0 (1 constraints: 1b108aa9)
org.eclipse.collections:eclipse-collections-api:11.1.0 (2 constraints: f8229c26)
org.hamcrest:hamcrest:2.2 (2 constraints: 43187376)
org.hamcrest:hamcrest-core:2.2 (4 constraints: 2b2b359e)
org.hamcrest:hamcrest-library:2.2 (1 constraints: fc138e38)
org.jetbrains:annotations:24.1.0 (2 constraints: fc20c06d)
org.jooq:jooq:3.19.8 (1 constraints: 4705583b)
org.junit.jupiter:junit-jupiter:5.10.2 (1 constraints: 3a05433b)
org.junit.jupiter:junit-jupiter-api:5.10.2 (4 constraints: 39451ef8)
Expand Down
3 changes: 1 addition & 2 deletions versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ org.mockito:* = 5.12.0
# Don't upgrade, we will remove this in a future release.
# Users should depend on this plugin directly such that it will get updated by excavator.
com.palantir.javaformat:gradle-palantir-java-format = 1.1.0
# Newer spotless versions have issues resolving dependencies at configuration time
com.diffplug.spotless:spotless-plugin-gradle = 6.6.0
Comment on lines -48 to -49
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issues that prompted this pin in #2312 is still open:

diffplug/spotless#1380

Do we have reason to believe this issue is fixed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In testing this and coil mentioned in the issue. Coil still has it, this repo seems to currently not have it, and people seem to think its related to indirect dependencies being loaded. Gradle does correct the issue if it comes up, it just causes a perf hit. Without bumping spotless, repos using OpenJFx and some other libs can compile at all. If we do not update this lib, repos with that issue will be forced to disable baseline-spotless entirely.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bug reports say that gradle has a catch for this and the worst case scenario is: if there are indirect dependencies and it has to work through them, hitting this regression, then it is a small perf hit, but doesnt fail builds. Where as without this we cant compile UI apps at all. :/

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a path to get spotless updated here?

com.diffplug.spotless:spotless-plugin-gradle = 6.25.0
# Groovy versions must be compatible with gradle
org.codehaus.groovy:* = 3.0.13
# checkerframework dependencies should be limited to errorpropne and nullaway
Expand Down