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

Building sample project: Plugin with id 'mulestudio' not found. #76

Closed bcrisp closed 8 years ago

bcrisp commented 8 years ago

After building and publishing the Gradle plugin to my local Maven repo (gradle clean publishToMavenLocal) I'm receiving the following error when attempting to run the sample project:

bcrisp$ gradle runApp

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/bcrisp/git/mule-gradle-plugin/sample-project/build.gradle' line: 11

* What went wrong:
A problem occurred evaluating root project 'sample-project'.
> Plugin with id 'mulestudio' not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED```
juancavallotti commented 8 years ago

@bcrisp Can you please attach your build scrit?

Thanks!

bcrisp commented 8 years ago

@juancavallotti This is actually using the sample project build script (https://github.com/mulesoft-labs/mule-gradle-plugin/blob/master/sample-project/build.gradle) with no modifications.

Thanks! Brandon

juancavallotti commented 8 years ago

@bcrisp Yes, I can see in the last update we removed the old-style plugin definition, please replace the name with com.mulesoft.studio and let me know if it works. I will update that in the source

bcrisp commented 8 years ago

@juancavallotti That resolves the mulestudio reference but breaks cloudhub and mmc references. The following script snippet fixes it for me:

plugins {
  id "com.mulesoft.mulestudio" version "1.2.0"
}

Brandon

juancavallotti commented 8 years ago

Sorry, what I meant is keep, everything as is, but change

apply plugin: 'mulestudio'

apply plugin: 'cloudhub'

apply plugin: 'mmc'

This with this

apply plugin: 'com.mulesoft.studio'

apply plugin: 'com.mulesoft.cloudhub'

apply plugin: 'com.mulesoft.mmc'
bcrisp commented 8 years ago

This works! Thanks.