Closed aquaplanet closed 9 years ago
@aquaplanet the commons-lang3 is coming as a transitive dependency of one of the ee modules, I'm not being able to determine from which but you can always add it as a provided compile dependency.
Please note that by default the plugin specifies a "fair" set of modules configured as initial dependencies but this can be tuned to include or remove the modules you need. The issue you're experiencing is because the module that includes commons-lang3 as a transitive dependency isn't declared by default.
Please see the following wiki pages:
https://github.com/mulesoft-labs/mule-gradle-plugin/wiki/Mule-dependencies-enabled-by-default
Thanks very much for your quick and good response.
I guess you are right, but it does not seems to be easy to find which module provides which dependencies (I am looking in Nexus under org.mule.modules and there is a ton of them). So I assume that the IDE just "imports" them all. I will solve my issue by adding the dependencies explicitly under dependencies.
However the page you are refering to has a dot in the end of the URL and therefor your link leads to an empty page. My suggestion is to remove the dot in the wiki-page as it may confuse mailreaders and humans with a random dot in the end.
I am trying to build a Mule flow in Enterprise Mule 3.5.2 with gradle using "gradlew clean build". However, I get a lot of compilation errors. It is for instance missing Commons Lang 3, and looking at the debug output, it does not use Commons Lang 3 during the build process.
When importing the same project in Anypoint (gradlew clean studio), Commons Lang 3 is in the "Mule Server 3.5.2 EE" classpath container. The flow works just fine and I am able to export it to file and to MMC.
It seems that the libraries Mule provides are different in IDE and gradle.
Unfortunately the debug output from gradlew build is too large to supply in full (right now...I migt do a gist from it) but I think this is the important text: