Skip to content

Update default Greclipse version#2924

Merged
nedtwigg merged 1 commit into
diffplug:mainfrom
jochenberger:update-greclipse
Jun 1, 2026
Merged

Update default Greclipse version#2924
nedtwigg merged 1 commit into
diffplug:mainfrom
jochenberger:update-greclipse

Conversation

@jochenberger
Copy link
Copy Markdown
Contributor

Bump groovy-eclipse to 6.1.0

@jochenberger jochenberger force-pushed the update-greclipse branch 3 times, most recently from 662e5fe to 18db411 Compare May 12, 2026 11:31
@jochenberger jochenberger marked this pull request as draft May 12, 2026 11:31
@jochenberger
Copy link
Copy Markdown
Contributor Author

jochenberger commented May 12, 2026

Huh? Why do the Gradle builds fail? Any idea @nedtwigg?

@jochenberger
Copy link
Copy Markdown
Contributor Author

I can reproduce the java.lang.NoClassDefFoundError issue on my machine when using greclipse('4.36').

@jochenberger
Copy link
Copy Markdown
Contributor Author

See also #2926

@jochenberger jochenberger force-pushed the update-greclipse branch 4 times, most recently from a54b599 to d52237c Compare May 15, 2026 04:52
@jochenberger jochenberger force-pushed the update-greclipse branch 2 times, most recently from 91f533f to b6251f8 Compare May 29, 2026 10:09
P2ModelWrapper modelWrapper = P2ModelWrapper.wrap(model);
List<File> classpath = p2Provisioner.provisionP2Dependencies(modelWrapper, mavenProvisioner, cacheDirectory);
// work around https://github.com/equodev/equo-ide/pull/193
classpath = classpath.stream().filter(f -> !f.getName().contains("groovy-test")).toList();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I need to find a cleaner way to do this. Any help is appreciated.

@jochenberger jochenberger marked this pull request as ready for review June 1, 2026 08:47
@jochenberger jochenberger changed the title WIP: Update default Greclipse version Update default Greclipse version Jun 1, 2026
Comment on lines +127 to +129
List<File> classpath = p2Provisioner.provisionP2Dependencies(modelWrapper, mavenProvisioner, cacheDirectory).stream()
// work around https://github.com/equodev/equo-ide/pull/193
.filter(f -> !f.getName().contains("groovy-test"))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice fix!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah? It actually felt a bit hackish to me, but if you approve, I'm fine obviously. 🙂

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Test code is one of the things that OSGi makes super complicated. It shouldn't be included in the first place, and by stripping it out you avoid a lot weird cases.

@nedtwigg nedtwigg merged commit bc8f0ec into diffplug:main Jun 1, 2026
20 checks passed
"org.codehaus.groovy.eclipse.core",
"org.eclipse.jdt.groovy.core",
"org.codehaus.groovy"));
model.addFilterAndValidate("no-debug", filter -> filter.exclude("org.eclipse.jdt.debug"));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@jochenberger you could maybe try this approach to remove groovy-test. The advantage is that it should also prevent transitive dependencies of groovy-test from getting sucked in, but if what you have works I see no reason to spend more of your time on it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants