jiakuan / gwt-gradle-plugin

Gradle plugin to support GWT related tasks.
https://gwt-gradle.docstr.org
Other
63 stars 34 forks source link

Project dependency missing from Gradle classpath #43

Closed eallais closed 3 years ago

eallais commented 3 years ago

My project has a transitive dependency to common-logging:1.2 and for some reasons when I apply the GWT plugin into one of my Gradle subproject, this dependency disappears from the Gradle classpath container (i.e. org.eclipse.buildship.core.gradleclasspathcontainer or Project or External Dependencies). Because of that I have a NoClassDefFoundError.

Do you have any ideas why do I have this strange behavior ?

NB: I tested another GWT Gradle plugin and my dependency was not removed, so it seems that this is indeed related to the GWT plugin.

jiakuan commented 3 years ago

Perhaps the best way is to use the Gradle dependencies analysing tool to check why common-logging:1.2 is gone. https://docs.gradle.org/current/userguide/viewing_debugging_dependencies.html

eallais commented 3 years ago

My issue is that I see this transitive dependency in the dependency graph when I execute the Gradle command. I have no clue why it disappear only in Eclipse classpath.

Does your plugin manipulate somehow the eclipse classpath (e.g. something like eclipse.classpath.whenMerged) ?

jiakuan commented 3 years ago

I don’t use eclipse since many years ago. Sorry cannot help you.

On Tue, 23 Mar 2021 at 10:39 am, Erik Allais @.***> wrote:

My issue is that I see this transitive dependency in the dependency graph when I execute the Gradle command. I have no clue why it disappear only in Eclipse classpath.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/jiakuan/gwt-gradle-plugin/issues/43#issuecomment-804539136, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAECF5ELBPJHZNLTBORK3JLTE75PVANCNFSM4ZTIVPTA .

eallais commented 3 years ago

Here is a repository which proves that there is an issue with Eclipse, just in case if you have the possibility to debug https://github.com/eallais/gwt-gradle-plugin-example

jiakuan commented 3 years ago

The old eclipse related code has been removed from the plugin (#44) and a new version gwt-gradle-plugin:1.1.12 has been released.

I did a quick test with your example project using the latest 1.1.12. I can see common-logging:1.2 now is on the classpath.

Screen Shot 2021-05-07 at 9 10 34 am