Gregory Boissinot wrote:
Hi,
Is there a more other way to add the ‘Class-Path’ entry in the MANIFEST.MF
file of a Java project?
dependencies.resolve('compile').each{ dep->
classpath.append(' ')
classpath.append('lib/'+dep.getName())
}
classpath.delete(0,1)
Not really. A slightly more groovy way to build the classpath:
classpath = dependencies.compile.files.join(' ')
manifest.mainAttributes(
'Provider': 'com.thalesgroup.epm',
'Main-Class':
'com.thalesgroup.orchestra.migration.doors.DoorsIdMigrationMain',
'Implementation-Version': version,
'Class-Path':classpath.toString())
And, I want to add an entry for the gradle version in my MANIFEST.MF ( the
gradle version that has been used for packaging the Java archive).
How to retrieve the gradle version?
You can use:
new GradleVersion().version
Adam
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email