Execution failed for task ':cargoRunLocal'. #152
Closed
Labels
Comments
Same issue as #149. You need to upgrade the Cargo version in your build configuration. |
Thanks, at which position in the |
I updated my last comment. Please see the |
Closing the issue. If you have additional question, please reopen. |
Sorry for reopening. I changed my println GradleVersion.current()
group 'myGroupId'
version '1.0-SNAPSHOT'
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'war'
//this adds intellij specific gradle tasks
apply plugin: 'idea'
//this part imports the cargo plugin for gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-cargo-plugin:2.2.3'
}
}
apply plugin: 'com.bmuschko.cargo'
//this part configures the cargo plugin to
//work with our previously installed WildFly Server
cargo {
containerId = 'wildfly10x'
port = 8080
deployable{
file = file('build/libs/MyJavaEETestProject-1.0-SNAPSHOT.war')
context = 'myjavaeetestproject'
}
local{
homeDir = file('C:/wildfly10')
}
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.3.11'
compile group: 'org.hibernate.javax.persistence', name: 'hibernate-jpa-2.0-api', version: '1.0.1.Final'
testCompile group: 'org.hibernate.javax.persistence', name: 'hibernate-jpa-2.0-api', version: '1.0.1.Final'
compile group: 'org.hibernate', name: 'hibernate-validator', version: '5.2.4.Final'
testCompile group: 'org.hibernate', name: 'hibernate-validator', version: '5.2.4.Final'
compile 'postgresql:postgresql:9.1-901-1.jdbc4'
testCompile 'postgresql:postgresql:9.1-901-1.jdbc4'
compile group: 'javax.inject', name: 'javax.inject', version: '1'
testCompile group: 'javax.inject', name: 'javax.inject', version: '1'
testCompile group: 'junit', name: 'junit', version: '4.11'
def cargoVersion = '1.4.5'
cargo "org.codehaus.cargo:cargo-core-uberjar:$cargoVersion",
"org.codehaus.cargo:cargo-ant:$cargoVersion"
} and i still get the same error. What can i do? |
You need to use a newer version of Cargo. The version you are using (1.4.5) is from 10/17/2013 and doesn't support Wildfly 10 yet. |
Which Version do i have to use?
EDIT: It worked with |
The link I gave you in my last comment pointed to 1.5.0. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get this Error:
This is my current
build.gradle
:What is wrong here ?
The text was updated successfully, but these errors were encountered: