mulesoft-labs / mule-gradle-plugin

Plugin for building mule apps with the gradle build system.
Apache License 2.0
24 stars 14 forks source link

Cannot retrieve dependencies due to closure of Codehaus #64

Closed nigelcharman closed 9 years ago

nigelcharman commented 9 years ago

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.

juancavallotti commented 9 years ago

Hi @nigelcharman

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:

https://github.com/mulesoft-labs/mule-gradle-plugin/issues/59#issuecomment-103188673

juancavallotti commented 9 years ago

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/

nigelcharman commented 9 years ago

Fantastic, that does the trick. Thanks for the quick response!