hi gradle-users,
with help from the mailinglist and some try & error
i managed to create the manifest-file i want.
my script looks like this:
manifestCp = new StringBuffer()
configurations.runtime.allDependencies.each { dep ->
manifestCp.append(' ')
manifestCp.append("lib/${dep.getName()}-${dep.getVersion()}.jar")
}
manifestCp.delete(0,1)
manifest.mainAttributes(
'Provider': 'com.mycompany',
'Main-Class': 'insert_mainclass_here',
'Implementation-Version': version,
'Built-With': 'gradle', // todo: get gradle-version
'Class-Path': manifestCp.toString())
but damn ... this could be more elegant ...
right ? ;-)
have a nice time
--
View this message in context:
http://www.nabble.com/creating-a-manifest-file-tp23974975p23974975.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