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

clouduhbApiEndpoint no longer valid #51

Closed willis7 closed 9 years ago

willis7 commented 9 years ago

Hi, I've had Sameer Pattni on-site recently. We noticed that the URL in the plugin now gives an error. The correct url should be:

https://anypoint.mulesoft.com/cloudhub/api

rather than:

https://cloudhub.io/api

I will run some tests and submit a pull request.

juancavallotti commented 9 years ago

@willis7 thanks for catching this up. This should be configurable through its plugin convention, so there is no actually a hard need to change the API url in the code

https://github.com/mulesoft-labs/mule-gradle-plugin/blob/master/src/main/groovy/com/mulesoft/build/cloudhub/CloudhubPluginConvention.groovy

You should be able to add to your build script something like:

project.cloudhubConvention.clouduhbApiEndpoint = 'https://anypoint.mulesoft.com/cloudhub/api'

And don't have the need for changing the code.