Bug 574922 - logback-classic Groovy causes problems when Eclipse Groovy is installed
Summary: logback-classic Groovy causes problems when Eclipse Groovy is installed
Status: NEW
Alias: None
Product: Orbit
Classification: Tools
Component: bundles (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Orbit Bundles CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-20 02:39 EDT by Richard Eckart de Castilho CLA
Modified: 2021-07-23 03:20 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Eckart de Castilho CLA 2021-07-20 02:39:23 EDT
It is currently not possible to install Eclipse Groovy and Eclipse the "m2e slf4j-over-logback" at the same time, apparently due to a problem in the interaction between these bundles and the logback-classic bundle.

There are several related issues in different trackers:

- https://github.com/groovy/groovy-eclipse/issues/1275
- https://github.com/groovy/groovy-eclipse/issues/1237
- https://github.com/eclipse-m2e/m2e-core/issues/269
- https://github.com/pmd/pmd-eclipse-plugin/issues/134

One person who analyzed the problem believes to have tracked it down at least partially to an import on "groovy.lang" in the "logback-classic" bundle that is missing a version range:

- https://github.com/eclipse-m2e/m2e-core/issues/269#issuecomment-882647035
Comment 1 Gunnar Wagenknecht CLA 2021-07-20 10:59:41 EDT
Looking at the latest code it seems that Groovy has been disabled.

https://github.com/qos-ch/logback/blob/61ffd3aba042bbb22f588599ff5574d3b9667d22/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java#L73

It might be worth to consider disabling Groovy in our Logback Classic bundle permanently.
Comment 2 Missing name CLA 2021-07-22 12:38:08 EDT
I have created a groovless branch of logback version 1.2.4. It is available at 

 https://github.com/qos-ch/logback/tree/branch_1.2.x_groovyless

Please let me know if this solves the issue and hopefully without creating others.

If satisfactory, I can cut a release.
Comment 3 Richard Eckart de Castilho CLA 2021-07-23 00:45:34 EDT
Thank you for the branch. Considering this is a cross-project issue, it may take a moment to figure out who can contribute what in order to test this.
Comment 4 Missing name CLA 2021-07-23 03:20:28 EDT
Please find logback version 1.2.4-groovyless available in Maven Central [1].  This should make testing easier. 

[1] https://repo.maven.apache.org/maven2/ch/qos/logback/logback-core/1.2.4-groovyless/