Hey all,
I'm trying to inch my way towards a OneJar task that works pretty much
in the same way that the Jar task does. My build.gradle is here:
https://github.com/curious-attempt-bunny/gradle-onejar
The problem I'm having is that as soon as I add a second into
directive Gradle hangs. Is the idea that I'm limited to a single into
directive per archive task? Or something more subtle? This is the most
relevant fragment of my build.gradle:
task exampleOneJar(type: Jar, dependsOn: jar) {
mainClass = 'com.curiousattemptbunny.onejar.ExampleMain'
manifest {
attributes 'Created-By':'Gradle OneJar task',
'Main-Class':'com.simontuffs.onejar.Boot',
'One-Jar-Main-Class': mainClass
}
from sourceSets.thirdparty.classes
// Gradle hangs if I have both into directives
into('lib') {
from configurations.runtime
}
/*
into('main') {
from jar.archivePath
rename { 'main.jar' }
}
*/
}
Any ideas?
Cheers,
Merlyn
$ gradle -version
------------------------------------------------------------
Gradle 0.9.2
------------------------------------------------------------
Gradle build time: Sunday, 23 January 2011 01:34:21 PM EST
Groovy: 1.7.6
Ant: Apache Ant version 1.8.1 compiled on April 30 2010
Ivy: 2.2.0
JVM: 1.6.0_22 (Apple Inc. 17.1-b03-307)
OS: Mac OS X 10.5.8 x86_64
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email