Ok, i am almost there
apply plugin:'groovy'
sourceSets {
main {
groovy {
srcDir 'src/groovy'
}
}
}
task datamining(type: Jar){
baseName = 'myJar'
destinationDir = file('lib')
from sourceSets.main.groovy
}
The "from" method includes all groovy sources under the src/groovy folder. How
can i restrict that to a certain package?
regards,
Sebastian
----- Ursprüngliche Mail -----
Von: "Sebastian Barszczewski" <[email protected]>
An: [email protected]
Gesendet: Freitag, 25. Februar 2011 11:25:30
Betreff: [gradle-user] building jar problem
Hello gradle users,
i am new to gradle and i am trying to assemble a simple jar file with groovy in
a grails project. The jar file should contain only some enums from a certain
package.
My build.gradle looks like this.
apply plugin:'groovy'
jar {
includes ['my/certain/package/**']
}
When i execute "gradle build" at the command line gradle states "BUILD SUCCESS"
but where can i find the assembled jar? How can i determine the destination
folder?
I tried:
apply plugin:'groovy'
jar {
includes ['my/certain/package/**']
destinationDir file('lib')
}
but then the build fails with "Could not find method destinationDir() ...."
Perhaps someone could help me with that.
Kind regards,
Sebastian
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
Sebastian Barszczewski
Juno Internet GmbH | www.kaufDA.de
Softwareentwickler
Tel. + 49 (0) 30 / 609 896 0 - 0
Fax + 49 (0) 30 / 609 896 0 - 99
[email protected]
Sitz des kaufDA Office:
Schönhauser Tor, Tortsraße 49, 10119 Berlin
Sitz der Gesellschaft:
Fronhoferstr. 6, 12165 Berlin
Amtsgericht Charlottenburg - HRB 115393 B
Geschäftsführung: Thomas Frieling, Christian W. Gaiser, Tim M. Marbach
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email