-
Notifications
You must be signed in to change notification settings - Fork 475
update default versions for Eclipse Java and Groovy formatters #2458
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
Conversation
1514bad
to
a1b1b65
Compare
Greclipse update causes issues again. Why does this have to be so hard? I wish they were publishing the core formatter as a regular JAR. :-/ |
There are test failures:
I'm at a loss. |
0226a0b
to
a1b1b65
Compare
Eclipse p2, haha. One way around it was for Spotless itself to create and publish fat jars. That was laborious and error-prone, and fell more than a year out of date. So we switched to the Equo p2 implementation, which lets us download metadata straight from the Eclipse p2 sources. The p2 metadata can say when a jar is published on mavenCentral vs when it is only available via p2, and this lets us use pure-maven for JDT. For the error you inlined above, the Groovy's p2 metadata is now claiming that the jar is published on mavencentral, but it is not. That's the error. If they did publish all their artifacts on mavencentral, that would be amazing! Or if they didn't claim maven coordinates, Equo p2 would download it from their p2 update site, which is what the previous metadata claimed. This p2 stuff sucks. If there were any other Groovy formatter, I would consider killing the p2 support and deprecating the formatters that rely on it... |
This is all so sad.
So that changed for the current release? Bummer, I was happy that they activated the
Maybe we can build something upon https://docs.openrewrite.org/recipes/groovy/format/autoformat. I haven't had a closer look yet though, but I have pretty high hopes in the OpenRewrite project. |
OpenRewrite does publish their artifacts on Maven: https://central.sonatype.com/artifact/org.openrewrite/rewrite-groovy/overview |
1283e07
to
c0117b1
Compare
…2463) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
c0117b1
to
53c8b14
Compare
lib-extra/src/main/java/com/diffplug/spotless/extra/groovy/GrEclipseFormatterStep.java
Show resolved
Hide resolved
So, is something still missing here or can it be merged? |
Just needed a little changelog tweak, merge ahoy! Thanks for sticking with this. Hopefully we can get |
Published in |
Maybe @merks has a comment about this, as he does lots of release stuff at Eclipse. (related to #2458 (comment)) |
Can you boil down the question? 😁 |
I just thought that maybe you have a comment on the availability of Eclipse jars on Maven Central. Specifically spotless uses parts of JDT Formatter to bring Eclipse code formatting to Maven / Gradle CLI. Apparently p2 is causing problems somehow and some jar's are not available on maven central although p2 is telling that.
Hopefully the maintainers here could clarify their question. I am not involved in the this project, just a happy user :) |
Every Eclipse release publishes effectively everything to Maven Central.
Also SNAPSHOTS are built daily: https://repo.eclipse.org/content/repositories/eclipse-snapshots/org/eclipse/ If someone has a specific question, just @ mention me and I'll have a look. |
This is more about the artifacts from the groovy formatter than the core project's ones. |
For what it's worth, the Platform, EMF, and BIRT (in progress) all use the CBI aggregator to map a subset of the IUs in a p2 repository into a Maven-compatible format that can be published to Maven Central, conforming to the requires for the POM content. It's not very well documented but it works very well... Basically what to aggregate, from where to aggregate, and how to map the OSGi metadata to Maven is specified like this: And then the entire publishing process is driven like this: |
The places where maven artifacts are missing are CDT and Groovy/Greclipse, which I think are outside of @merks' domain, but thanks very much for the info on how the mapping gets defined! |
Retry after #2381 failed and groovy/groovy-eclipse#1607 was resolved.