apply plugin: 'java'
archivesBaseName = 'foo-client'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
//version = '1.0'
dependencies{
compile 'foo:bar:1.0-SNAPSHOT',
'foo:bar-common:1.0-SNAPSHOT',
'foo:bar-communication-api:1.0-SNAPSHOT'
}
repositories{
flatDir{
dirs '/lib'
}
}
When executing the inherited jar task, this will create foo-client.jar in the build/lib directory of the project. What I need to do is include several jars to be put in that same directory, otherwise the project will not run correctly.
How can I do this?
Using Gradle 1.1 the following did the trick,