I have something like that in my build.gradle:
task fatJar(dependsOn: jar, type: Jar) {
classifier = 'FAT'
from sourceSets.main.classes
from configurations.compile.collect { it.isDirectory() ? it :
zipTree(it) }
manifest {
def jars = configurations.runtime.resolve().name.join(' ')
attributes 'Implementation-Title': 'Stock Watch',
'Implementation-Version': version,
'Main-Class' : 'stockwatch.Server',
'Class-Path': jars
}
}
When I type gradle -i build I've got:
Tasks to be executed: [task ':compileJava', task ':processResources', task
':classes', task ':jar', task ':*fatJar*'
but I don't want it to be executed.
Why it is ? What should I do to skip my task when launch build task ?
Regards,
Konrad
--
View this message in context:
http://gradle.1045684.n5.nabble.com/problem-with-task-dependency-tp4762118p4762118.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email