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 — Add support for eclipse 4.13 by k-brooks · Pull Request #482 · diffplug/spotless

Conversation

@k-brooks

@k-brooks k-brooks commented Oct 31, 2019

Copy link
Copy Markdown

Part 1 of 2: _ext wrapper updates to support 4.13
I broke out (and ordered) the commits by subproject intentionally, although, without project linking / publishing, I have not been able to properly build/test the dependent projects.
I have not attempted to publish, wasn't clear on the process.
Part 2 will come once these libraries have published.

Would you be interested in having the ext projects cleaned up? It would be nice to have project dependencies across these, and potentially the 'root' project.

Sorry, something went wrong.

Uh oh!

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

All reactions
k-brooks added 5 commits October 31, 2019 17:25
@k-brooks
eclipse-base update for 4.13 (#480)
8f167b8
@k-brooks
eclipse-jdt update for 4.13 (#480)
1260246
@k-brooks
eclipse-cdt update for 4.13 (#480)
85e2f33
@k-brooks
eclipse-wtp update for 4.13 (#480)
02e3223
@k-brooks
eclipse-groovy update for 4.13 (#480)
1b8ef41
k-brooks
k-brooks commented Oct 31, 2019
View reviewed changes
Comment thread _ext/eclipse-cdt/gradle.properties
ext_VER_JAVA=1.8

# Compile dependencies
VER_ECLIPSE_CDT=9.7

@k-brooks k-brooks Oct 31, 2019

Copy link
Copy Markdown
Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I'm wondering if this was a bug in the eclipse-cdt release of 9.8, as it referenced 9.7

Sorry, something went wrong.

Uh oh!

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

All reactions

@nedtwigg nedtwigg Oct 31, 2019

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Good catch! I looked at it, and I believe you are correct. I should publish a 9.8.1 bugfix.

Sorry, something went wrong.

Uh oh!

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

All reactions

@fvgh fvgh Nov 1, 2019

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks for the fix. I really missed to commit the vital change.

Sorry, something went wrong.

Uh oh!

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

nedtwigg reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
nedtwigg
nedtwigg reviewed Oct 31, 2019
View reviewed changes

@nedtwigg nedtwigg left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Looks like a great start! From here, you are blocked on me publishing these new _ext jars, I'll let you know when that is complete. I'll push some small changes to this branch as well.

Re: combining build with the main project. The problem is that the builds for these are really slow because of p2, and I don't know of a good way to speed them up. I am open to a build refactor (best to do in a separate PR to prevent blocking this PR), but it needs to not slow down the current build. Everything in _ext is pretty specialized, it's important for regular java devs to not have to deal with this when contributing normal mavenCentral-based formatters.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread _ext/eclipse-base/gradle.properties
# Mayor versions correspond to the supported Eclipse core version.
# Minor version is incremented for features or incompatible changes (including changes to supported dependency versions).
# Patch version is incremented for backward compatible patches of this library.
ext_version=3.2.1

@nedtwigg nedtwigg Oct 31, 2019

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

If we don't change the code in eclipse-base, then we don't need to publish a new eclipse-base. We only change this when something about the OSGi plumbing needs to change, which is generally rare.

Sorry, something went wrong.

Uh oh!

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

fvgh reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@k-brooks k-brooks Nov 1, 2019

Copy link
Copy Markdown
Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I was under the impression that the compile-scoped dependencies were included in the fat jar, but if that is incorrect, then I can back this and the related changes out.
Are you OK with me rewriting these commits to suit, or would you prefer new commits?

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread _ext/eclipse-cdt/gradle.properties
ext_VER_JAVA=1.8

# Compile dependencies
VER_ECLIPSE_CDT=9.7

@nedtwigg nedtwigg Oct 31, 2019

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Good catch! I looked at it, and I believe you are correct. I should publish a 9.8.1 bugfix.

Sorry, something went wrong.

Uh oh!

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

All reactions
nedtwigg added 3 commits October 31, 2019 15:14
@nedtwigg
Revert "eclipse-base update for 4.13 (#480)"
ce6662f
This reverts commit 8f167b8.
@nedtwigg
Revert "eclipse-jdt update for 4.13 (#480)"
d4d01bf
This reverts commit 1260246.
@nedtwigg
Revert "eclipse-cdt update for 4.13 (#480)"
6c452fe
This reverts commit 85e2f33.
@nedtwigg

nedtwigg commented Oct 31, 2019

Copy link
Copy Markdown
Member

@fvgh before I publish this, can you confirm that this is true:

  • we don't need to publish a new ext-eclipse-base
  • we don't need to publish a new ext-eclipse-jdt

This is because we can just update lockfiles for jdt. I do need to publish new jars for groovy, cdt, and wtp. Are we missing anything important?

fvgh 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 added 2 commits October 31, 2019 21:53
@nedtwigg
Publish eclipse-cdt 9.8.1.
0b00d79
@nedtwigg
Publish eclipse-cdt 9.9.0.
d1c8512
@nedtwigg

nedtwigg commented Nov 1, 2019

Copy link
Copy Markdown
Member

Can you give me push permissions on your PR branch?

https://github.com/Vestmark/spotless: git-receive-pack not permitted on 'https://github.com/Vestmark/spotless/'

If not, can you move your issue_480-ext to match the DiffPlug repo? I published the eclipse-cdt 9.8.1 bundled jar, and updated the corresponding lockfile. I also published eclipse-cdt 9.9.0, and I leave it to you to do the lockfile. When we get confirmation from @fvgh that we have done this correctly, then we can move forward with wtp, groovy, and jdt.

All reactions

Sorry, something went wrong.

Uh oh!

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

@fvgh

fvgh commented Nov 1, 2019

Copy link
Copy Markdown
Member

Thanks for all your effort. I am really busy at the moment, hence I did not find time to contribute. So if the _ext tests are passing I am fine with the changes. If you get stuck anywhere, let me know. I'll try to answer within 24 hours.

All reactions

Sorry, something went wrong.

Uh oh!

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

fvgh
fvgh approved these changes Nov 1, 2019
View reviewed changes
@k-brooks

k-brooks commented Nov 1, 2019 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Author

Can you give me push permissions on your PR branch?

https://github.com/Vestmark/spotless: git-receive-pack not permitted on 'https://github.com/Vestmark/spotless/'

If not, can you move your issue_480-ext to match the DiffPlug repo? I published the eclipse-cdt 9.8.1 bundled jar, and updated the corresponding lockfile. I also published eclipse-cdt 9.9.0, and I leave it to you to do the lockfile. When we get confirmation from @fvgh that we have done this correctly, then we can move forward with wtp, groovy, and jdt.

My apologies @nedtwigg , I thought had checked that box, but perhaps you require permissions at the repo level? I granted you maintenance permissions for the Vestmark fork - if that does not work, then I will push this branch to the Diffplug repo, instead.

All reactions

Sorry, something went wrong.

Uh oh!

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

@k-brooks

k-brooks commented Nov 1, 2019

Copy link
Copy Markdown
Author

Looks like a great start! From here, you are blocked on me publishing these new _ext jars, I'll let you know when that is complete. I'll push some small changes to this branch as well.

Re: combining build with the main project. The problem is that the builds for these are really slow because of p2, and I don't know of a good way to speed them up. I am open to a build refactor (best to do in a separate PR to prevent blocking this PR), but it needs to not slow down the current build. Everything in _ext is pretty specialized, it's important for regular java devs to not have to deal with this when contributing normal mavenCentral-based formatters.

#483 opened to capture the build work, will comment with thoughts on that thread.

All reactions

Sorry, something went wrong.

Uh oh!

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

k-brooks
k-brooks commented Nov 1, 2019
View reviewed changes
Comment thread _ext/eclipse-cdt/CHANGES.md

### Version 9.8.1 - October 31st 2019 ([artifact]([jcenter](https://bintray.com/diffplug/opensource/spotless-eclipse-cdt)))

* Really publish Eclipse CDT release 9.8 for Eclipse 4.12 ([#482](https://github.com/diffplug/spotless/pull/482)).

@k-brooks k-brooks Nov 1, 2019

Copy link
Copy Markdown
Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

:-)

Sorry, something went wrong.

Uh oh!

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

All reactions
k-brooks
k-brooks commented Nov 1, 2019
View reviewed changes
Comment thread _ext/eclipse-cdt/gradle.properties Outdated
ext_version=9.9.0
ext_artifactId=spotless-eclipse-cdt
ext_description=Eclipse's CDT C/C++ formatter bundled for Spotless
ext_description=Eclipse''s CDT C/C++ formatter bundled for Spotless

@k-brooks k-brooks Nov 1, 2019

Copy link
Copy Markdown
Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

not a huge deal, but a typo here, I can fix it but didn't want to mess with your work

Sorry, something went wrong.

Uh oh!

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

All reactions

@nedtwigg nedtwigg Nov 1, 2019

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

The syntax highlighter in VSCode seemed to think I needed to escape the single-quote. That surprised me, and I think it turns out to be wrong. A fix would be appreciated!

  • .properties spec does not need double-quote
  • .properties resource bundle does need double-quote

Sorry, something went wrong.

Uh oh!

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

All reactions
@nedtwigg

nedtwigg commented Nov 1, 2019

Copy link
Copy Markdown
Member

I think we have published everything we need so that you can now do the lockfiles for CDT and for JDT. When those are working, I'll publish the jars for WTP and groovy, and then you can do the lockfiles for those too, and then we can merge and publish!

All reactions

Sorry, something went wrong.

Uh oh!

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

k-brooks added 3 commits November 1, 2019 13:56
@k-brooks
revert extra quote (#480)
8c55363
@k-brooks
remove version bump to eclipse base (#480)
1c4cb71
@k-brooks
cdt/jdt eclipse 4.13 support (#480)
4b63e09
@k-brooks

k-brooks commented Nov 1, 2019

Copy link
Copy Markdown
Author

JDT & CDT are up, thanks again!

All reactions

Sorry, something went wrong.

Uh oh!

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

nedtwigg added 2 commits November 1, 2019 12:23
@nedtwigg
Bump the eclips-base dependency from 3.2.0 to 3.2.1 in the 4.13.0 loc…
15b33b6
…kfiles for cdt/jdt.
@nedtwigg
Publish groovy 3.5.0
e4ee903
@nedtwigg

nedtwigg commented Nov 1, 2019

Copy link
Copy Markdown
Member

In the lockfiles, even though eclipse-base can be 3.2.0, we get a bugfix if we ask for 3.2.1.

ext-eclipse-groovy 3.5.0 is up and ready for lockfiles.

ext-eclipse-wtp 3.15.0 is erroring for me, so it is not up:

> gradle -b _ext/eclipse-wtp/build.gradle jar
...
Could not resolve all files for configuration ':compileClasspath'.
> Could not find any version that matches org.eclipse.platform:org.eclipse.core.filebuffers:[3.8.0,4.0.0[.
  Versions that do not match:
      3.6.700
      3.6.600
      3.6.500
      3.6.400
      3.6.300
      + 3 more
  Searched in the following locations:
      https://repo.maven.apache.org/maven2/org/eclipse/platform/org.eclipse.core.filebuffers/maven-metadata.xml
      https://jcenter.bintray.com/org/eclipse/platform/org.eclipse.core.filebuffers/maven-metadata.xml
      file:/Users/ntwigg/.m2/repository/org/eclipse/platform/org.eclipse.core.filebuffers/maven-metadata.xml
      file:/Users/ntwigg/.m2/repository/org/eclipse/platform/org.eclipse.core.filebuffers/
      file:/Users/ntwigg/Documents/dev/spotless/_ext/eclipse-wtp/build/p2asmaven/maven/org/eclipse/platform/org.eclipse.core.filebuffers/maven-metadata.xml
      file:/Users/ntwigg/Documents/dev/spotless/_ext/eclipse-wtp/build/p2asmaven/maven/org/eclipse/platform/org.eclipse.core.filebuff
All reactions

Sorry, something went wrong.

Uh oh!

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

@nedtwigg nedtwigg changed the title Issue 480 ext Add support for eclipse 4.13 Nov 1, 2019
@k-brooks
eclipse platform versioning split (#480)
1ad30a8
@k-brooks

k-brooks commented Nov 1, 2019

Copy link
Copy Markdown
Author

@nedtwigg - sorry for the compile error - looks like the two artifacts (osgi services and filebuffers) diverged in their versioning, updated accordingly
Lock file(s) to follow shortly

All reactions

Sorry, something went wrong.

Uh oh!

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

@k-brooks
eclipse 4.13 groovy formatter (#480)
0309d60
@k-brooks

k-brooks commented Nov 4, 2019

Copy link
Copy Markdown
Author

@nedtwigg - I have the wtp formatter lock file staged, ready when you are :-)

All reactions

Sorry, something went wrong.

Uh oh!

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

fvgh
fvgh suggested changes Nov 4, 2019
View reviewed changes

@fvgh fvgh left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

The rest looks good to me. Thanks again for your work.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread ...tra/src/main/resources/com/diffplug/spotless/extra/groovy_eclipse_formatter/v4.13.0.lockfile Resolved

Uh oh!

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

nedtwigg added 2 commits November 6, 2019 09:46
@nedtwigg
Publish eclipse-wtp 3.15.0
008ac4f
@nedtwigg
Remove SWT from the groovy lockfile, per @fvgh's advice
7b249b9
@nedtwigg

nedtwigg commented Nov 6, 2019

Copy link
Copy Markdown
Member

eclipse-wtp 3.15.0 is published (sorry for delay)

All reactions

Sorry, something went wrong.

Uh oh!

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

@k-brooks

k-brooks commented Nov 6, 2019

Copy link
Copy Markdown
Author

Looks like wtp 3.15.0 has not propagated?
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact com.diffplug.spotless:spotless-eclipse-wtp:jar:3.15.0 in google-maven-central

All reactions

Sorry, something went wrong.

Uh oh!

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

k-brooks added 2 commits November 6, 2019 18:13
@k-brooks
Eclipse 4.13 support for wtp (#480)
3c86339
@k-brooks
Remove swt dependency from cdt lockfile (#480)
52a1d95
@nedtwigg

nedtwigg commented Nov 6, 2019

Copy link
Copy Markdown
Member

It claims to be published here: https://bintray.com/diffplug/opensource/spotless-eclipse-wtp#

And the mavenCentral sync also claims to be successful. I restart the CI build later today.

All reactions

Sorry, something went wrong.

Uh oh!

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

@k-brooks

k-brooks commented Nov 6, 2019

Copy link
Copy Markdown
Author

Odd - I was able to run tests locally (assuming travis is running gradlew check, or some derivative thereof), I did not see that failure.

All reactions

Sorry, something went wrong.

Uh oh!

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

@nedtwigg

nedtwigg commented Nov 7, 2019

Copy link
Copy Markdown
Member

I reran the build, looks like we're passing CI now! This looks ready to merge to me, except it needs changelog entries for plugin-maven and plugin-gradle.

All reactions

Sorry, something went wrong.

Uh oh!

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

@k-brooks
Update changelogs (#480)
75f32f9
@k-brooks

k-brooks commented Nov 7, 2019

Copy link
Copy Markdown
Author

changelogs updated, thanks again for all your help @nedtwigg !

All reactions

Sorry, something went wrong.

Uh oh!

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

@nedtwigg
nedtwigg merged commit 04d5c7d into diffplug:master Nov 7, 2019
@k-brooks
k-brooks deleted the issue_480-ext branch November 7, 2019 20:50
@nedtwigg

nedtwigg commented Nov 12, 2019

Copy link
Copy Markdown
Member

Released in x.26.0

All reactions

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

@nedtwigg nedtwigg nedtwigg left review comments
+1 more reviewer
@fvgh fvgh fvgh requested changes
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.

Uh oh!

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

3 participants

@k-brooks @nedtwigg @fvgh
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 01402503 — 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.