Hello,
I am unable to add task war or jetty in build filr. The error is: ca not add task ‘: clean’ as task with that name already exists. here is my build file:
buildscript {
repositories {
mavenCentral()
mavenRepo urls: “http://repository.jboss.org/maven2/”
mavenRepo name: “grails”, url: ‘http://repo.grails.org/grails/repo’
}
dependencies {
classpath “org.grails:grails-gradle-plugin:1.1.1-SNAPSHOT”,
“org.grails:grails-bootstrap:2.2.0”
} } version = “1.0” grailsVersion=“2.2.0” apply plugin: “grails” apply plugin: “war” apply plugin: “jetty”
repositories {
mavenCentral()
mavenRepo urls: “http://repository.jboss.org/maven2/”
mavenRepo name: “grails”, url: ‘http://repo.grails.org/grails/repo’ }
dependencies {
[‘dependencies’, ‘resources’, ‘core’, ‘hibernate’, ‘plugin-datasource’, ‘plugin-domain-class’, ‘plugin-tomcat’, ‘plugin-services’].each { plugin ->
compile “org.grails:grails-$plugin:2.2.0”
}
compile “mysql:mysql-connector-java:5.1.22”,
“org.slf4j:slf4j-api:1.7.2” //
“org.grails:grails-crud:2.2.0”, //
“org.grails:grails-gorm:1.3.7”
bootstrap “org.codehaus.groovy:groovy-all:1.8.6”
}
Gradle is built with groovy 1.8.6 /Ant 1.8.4 Ivy 2.2.0 Java 1.6