GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — update palantirJavaFormat for Java 21 by slachiewicz · Pull Request #1822 · diffplug/spotless

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Sep 21, 2023

Copy link
Copy Markdown
Contributor

Based on @basil user report and fix #1774

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

slawekjaranowski, ath0mas, StefanLobbenmeierObjego, and steven-sheehy reacted with thumbs up emoji
All reactions
  • 👍 4 reactions
@gortiz gortiz mentioned this pull request Sep 22, 2023
Prepare for Java 21 apache/pinot#11656
Closed
7 tasks done
@slawekjaranowski slawekjaranowski mentioned this pull request Sep 23, 2023
[MPOM-429] Support develop with JDK 21 (palantirJavaFormat update) apache/maven-parent#135
Merged
@gortiz gortiz mentioned this pull request Sep 25, 2023
Do not execute spotless in Java 21 apache/pinot#11670
Merged
HTHou
HTHou reviewed Sep 26, 2023
View reviewed changes
Comment thread CHANGES.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

slawekjaranowski
slawekjaranowski reviewed Sep 28, 2023
View reviewed changes
Comment thread CHANGES.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@nedtwigg nedtwigg changed the title Fix to run with Java 21 update palantirJavaFormat for Java 21 Sep 28, 2023
@nedtwigg nedtwigg mentioned this pull request Sep 28, 2023
fix(deps): update dependency com.palantir.javaformat:palantir-java-format to v2 #1836
Closed
1 task
@nedtwigg

nedtwigg commented Sep 28, 2023

Copy link
Copy Markdown
Member

Looks like issues around gradle variants.

 project : > com.palantir.javaformat:palantir-java-format:2.38.0 > com.palantir.javaformat:palantir-java-format-spi:2.38.0

  Caused by: org.gradle.internal.component.AmbiguousConfigurationSelectionException: The consumer was configured to find attribute 'org.gradle.category' with value 'library', attribute 'org.gradle.dependency.bundling' with value 'external'. However we cannot choose between the following variants of com.google.guava:guava:32.1.2-jre:
    - androidRuntimeElements
    - jreRuntimeElements
  All of them match the consumer attributes:
    - Variant 'androidRuntimeElements' capabilities com.google.collections:google-collections:32.1.2-jre and com.google.guava:guava:32.1.2-jre declares attribute 'org.gradle.category' with value 'library', attribute 'org.gradle.dependency.bundling' with value 'external':
        - Unmatched attributes:
            - Provides org.gradle.jvm.environment 'android' but the consumer didn't ask for it
            - Provides org.gradle.jvm.version '8' but the consumer didn't ask for it
            - Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
            - Provides org.gradle.status 'release' but the consumer didn't ask for it
            - Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
    - Variant 'jreRuntimeElements' capabilities com.google.collections:google-collections:32.1.2-jre and com.google.guava:guava:32.1.2-jre declares attribute 'org.gradle.category' with value 'library', attribute 'org.gradle.dependency.bundling' with value 'external':
        - Unmatched attributes:
            - Provides org.gradle.jvm.environment 'standard-jvm' but the consumer didn't ask for it
            - Provides org.gradle.jvm.version '8' but the consumer didn't ask for it
            - Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
            - Provides org.gradle.status 'release' but the consumer didn't ask for it
            - Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
      at app//com.diffplug.spotless.java.PalantirJavaFormatStepTest.jvm13Features(PalantirJavaFormatStepTest.java:35)

We had similar issues in #1808

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nedtwigg

nedtwigg commented Sep 29, 2023

Copy link
Copy Markdown
Member

FYI, main is now on Gradle 8.4, so if you want to bring Java 21 back into the test matrix, that would be welcome. I don't think it will help with the variant issue above though...

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@slachiewicz
slachiewicz marked this pull request as draft September 29, 2023 18:47
@slachiewicz

slachiewicz commented Sep 29, 2023

Copy link
Copy Markdown
Contributor Author

Unfortunately, it's still the same error with the new Gradle - no idea how to fix this dependency issue.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nedtwigg
nedtwigg marked this pull request as ready for review November 2, 2023 00:24
@nedtwigg

nedtwigg commented Nov 2, 2023

Copy link
Copy Markdown
Member

Anyone know why this PR isn't running CI? It's doing spotlessCheck assemble testClasses but none of the actual testrunner runs...

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

slachiewicz added 2 commits November 12, 2023 23:54
@slachiewicz
Bump palantir-java-format to 2.38.0
4c8fd50
@slachiewicz
Add Java 21 to CI
276ab92
@nedtwigg

nedtwigg commented Nov 16, 2023

Copy link
Copy Markdown
Member
  org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for [com.palantir.javaformat:palantir-java-format:2.38.0].
      at com.diffplug.spotless.java.PalantirJavaFormatStepTest.jvm13Features(PalantirJavaFormatStepTest.java:35)
  Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':detachedConfiguration1'.
      at app//com.diffplug.spotless.java.PalantirJavaFormatStepTest.jvm13Features(PalantirJavaFormatStepTest.java:35)
  Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.google.guava:guava:32.1.2-jre.
  Required by:
      project : > com.palantir.javaformat:palantir-java-format:2.38.0
      project : > com.palantir.javaformat:palantir-java-format:2.38.0 > com.palantir.javaformat:palantir-java-format-spi:2.38.0

  Caused by: org.gradle.internal.component.AmbiguousConfigurationSelectionException: The consumer was configured to find attribute 'org.gradle.category' with value 'library', attribute 'org.gradle.dependency.bundling' with value 'external'. However we cannot choose between the following variants of com.google.guava:guava:32.1.2-jre:
    - androidRuntimeElements
    - jreRuntimeElements
  All of them match the consumer attributes:
    - Variant 'androidRuntimeElements' capabilities com.google.collections:google-collections:32.1.2-jre and com.google.guava:guava:32.1.2-jre declares attribute 'org.gradle.category' with value 'library', attribute 'org.gradle.dependency.bundling' with value 'external':
        - Unmatched attributes:
            - Provides org.gradle.jvm.environment 'android' but the consumer didn't ask for it
            - Provides org.gradle.jvm.version '8' but the consumer didn't ask for it
            - Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
            - Provides org.gradle.status 'release' but the consumer didn't ask for it
            - Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
    - Variant 'jreRuntimeElements' capabilities com.google.collections:google-collections:32.1.2-jre and com.google.guava:guava:32.1.2-jre declares attribute 'org.gradle.category' with value 'library', attribute 'org.gradle.dependency.bundling' with value 'external':
        - Unmatched attributes:
            - Provides org.gradle.jvm.environment 'standard-jvm' but the consumer didn't ask for it
            - Provides org.gradle.jvm.version '8' but the consumer didn't ask for it
            - Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
            - Provides org.gradle.status 'release' but the consumer didn't ask for it
            - Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
      at app//com.diffplug.spotless.java.PalantirJavaFormatStepTest.jvm13Features(PalantirJavaFormatStepTest.java:35)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Goooler Goooler mentioned this pull request Nov 27, 2023
Test integration with the latest Java version on CI #1907
Closed
@Goooler

Goooler commented Nov 28, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

@slachiewicz Seems I've fixed the dependency resolving issue, you can ref https://github.com/Goooler/spotless/pull/12. And if you wanna run CI on Java 21, still need to fix GJF tests. You may just add .add(21, "2.38.0") but 073a762.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@StefanLobbenmeierObjego

StefanLobbenmeierObjego commented Nov 30, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

FYI with gradle 8.5 being released today this became more urgent as it blocks users from running gradle on java 21

I could confirm that manually setting the version works for me though (as also shown in this comment: palantir/palantir-java-format#943 (comment))

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Goooler

Goooler commented Nov 30, 2023

Copy link
Copy Markdown
Member

I was planning to fix Java 21 compatibility issues for Gradle, we can probably fix Maven first.

StefanLobbenmeierObjego and steven-sheehy reacted with heart emoji
All reactions
  • ❤️ 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@steven-sheehy

steven-sheehy commented Nov 30, 2023

Copy link
Copy Markdown
Contributor

@Goooler Is it possible to submit your changes as a separate PR if it's passing CI since this one doesn't seem to see any updates?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@steven-sheehy steven-sheehy mentioned this pull request Nov 30, 2023
Upgrade to Java 21 hiero-ledger/hiero-mirror-node#7294
Merged
2 tasks done
@Goooler Goooler mentioned this pull request Dec 1, 2023
Fix Java 21 compatibilities #1920
Merged
@Goooler

Goooler commented Dec 1, 2023

Copy link
Copy Markdown
Member

It's in #1920.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nedtwigg

nedtwigg commented Dec 3, 2023

Copy link
Copy Markdown
Member
  • Going to be merged soon via Fix Java 21 compatibilities #1920
slachiewicz reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nedtwigg nedtwigg closed this Dec 3, 2023
@nedtwigg

nedtwigg commented Dec 4, 2023

Copy link
Copy Markdown
Member

Published in plugin-gradle 6.23.3 and plugin-maven 2.41.1.

StefanLobbenmeierObjego reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

2 more reviewers
@slawekjaranowski slawekjaranowski slawekjaranowski left review comments
@HTHou HTHou HTHou left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Update default versions for palantir-java-format

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@slachiewicz @nedtwigg @Goooler @StefanLobbenmeierObjego @steven-sheehy @slawekjaranowski @HTHou
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.