Excluding Gradle plugin dependencies in submodules

I have two different gradle plugins, one in the root project, and another in a submodule. The thing is, I'm getting a reflection related stacktrace when loading the Gradle project which originates from a dependency (I think it was something like Jackson faster xml or something). Removing said plugin in the root project fixes this issue. My conclusion from that is that the plugin in the root project has a different version of that dependency than the one used by the plugin in the submodule. How do I exclude plugin dependencies in submodules? (Sorry for minimal information on that stacktrace, I'm traveling at the moment)
3 Replies
JavaBot
JavaBot5d ago
This post has been reserved for your question.
Hey @Thorinwasher! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Thorinwasher
ThorinwasherOP5d ago
I have found this https://stackoverflow.com/questions/56412868/exclude-transitive-dependency-of-gradle-plugin, but it feels more like that is for a different application. I'm quite unsure how the Gradle project java runtime works though (I think it's at least a java runtime)
Stack Overflow
Exclude transitive dependency of Gradle plugin
Excluding a transitive dependency in Gradle is pretty straightforward: compile('com.example.m:m:1.0') { exclude group: 'org.unwanted', module: 'x' } How would we go around he situation in ...
JavaBot
JavaBot5d ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?