I'm new with gradle and I didn't understand how the plugin works.
I'm trying to use cargo plugin without use maven repository but downloading the jar file from http://mvnrepository.com/artifact/cargo/cargo/0.6 and put it into my lib folder.
my build file is:
apply plugin: 'war'
apply plugin: 'cargo'
configurations {
weblogic
}
def Properties tomcatDeployProps = new Properties()
tomcatDeployProps.load( new FileInputStream(project.file("src/conf/tomcat-deploy.properties")))
buildscript {
repositories {
flatDir dirs: "${rootProject.projectDir}/libs"
}
dependencies {
classpath 'org.gradle.api.plugins:cargo:0.6'
}
}
dependencies {
cargo 'cargo:cargo:0.6'
}
This is a multiproject configuration and this build.gradle is in a subproject.
When I run
$ gradle tasks
* Config properties
> environment : tst
> dbPropsFile : C:\developer\projects\FINEOS\fineos8.1\branches\dev\ServiceMonitor\conf\tst-db.properties
> deployPropsFile : C:\developer\projects\FINEOS\fineos8.1\branches\dev\ServiceMonitor\conf\tst-deploy.properties
> casetypePropsFile : C:\developer\projects\FINEOS\fineos8.1\branches\dev\ServiceMonitor\conf\etc\bo-mappings\tst-casetype.properties
> tasktypePropsFile : C:\developer\projects\FINEOS\fineos8.1\branches\dev\ServiceMonitor\conf\etc\bo-mappings\tst-tasktype.properties
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\developer\projects\FINEOS\fineos8.1\branches\dev\ServiceMonitor\ecrm-webapp\build.gradle' line: 3
* What went wrong:
A problem occurred evaluating project ':ecrm-webapp'.
> Failed to apply plugin [id 'cargo']
> Plugin with id 'cargo' 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
Total time: 2.091 secs
Can Someone help me to configure in the right way this plugin? Thanks