Cannot retrieve dependencies due to closure of Codehaus
Closed this issue · 3 comments
I realise this isn't strictly an issue with the plugin, but affects usage of the plugin, and I'm keen to know of any workaround.
With the codehaus repository now closed, gradle runApp
now fails when trying to download new dependencies:
* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not resolve javax.script:js-engine:1.1.
Required by:
:app-stockquote:unspecified > org.mule.modules:mule-module-scripting:3.6.0
> Could not GET 'http://dist.codehaus.org/mule/dependencies/maven2/javax/script/js-engine/1.1/js-engine-1.1.pom'.
> peer not authenticated
(The plugin seems to work OK if you already have the dependencies downloaded.)
There's some discussion of how to resolve for Maven here, but I haven't been able to get the mirror workaround working with Gradle.
Yes, I have published versions 1.1.2 and 1.2.1 of the plugin without the codehaus repository, however you will need to manually add another one that replaces it, please see:
I have released a special version in the 1.2.x branch that contains all the repositories needed for building, including one required for 3.6.x apps.
https://repository-master.mulesoft.org/releases/org/mulesoft/build/mule-gradle-plugin/1.2.2/
Fantastic, that does the trick. Thanks for the quick response!