gradledeploymentanypoint-studiomulesoftcloudhub

Unable to deploy to cloudhub mule4 application with Gradle


I am trying to build my mule application and deploy it to cloudhub with Gradle (The Gradle version I'm using is: Gradle 4.10.2) . For this I have added the build.gradle file in my project as shown below:enter image description here

When I give the Gradle build command it is successful as shown below:enter image description here

But when I execute Gradle deploy (gradle deploy --info) command, it fails with following error:enter image description here

Any help to resolve the above issue would be appreciated.


Solution

  • That Gradle has been abandoned for some years and seems to be trying to use a CloudHub REST API endpoint that is no longer valid. If you want to use Gradle you will need a newer Gradle plugin that uses the current CloudHub API. Note that MulesSoft only supports Maven.

    You can try running with --stacktrace as the error message suggests to find out more details about the error.