Skip to content

Instantly share code, notes, and snippets.

@childnode
Created August 16, 2016 05:13
Show Gist options
  • Save childnode/81ae646845e1d6e2d9c78d94688de4e6 to your computer and use it in GitHub Desktop.
Save childnode/81ae646845e1d6e2d9c78d94688de4e6 to your computer and use it in GitHub Desktop.
gradle jar MANIFEST.mf
// see https://github.com/bmuschko/gradle-docker-plugin/blob/master/build.gradle
jar {
manifest {
attributes 'Implementation-Title': 'Gradle Docker plugin',
'Implementation-Version': version,
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'),
'Built-Gradle': gradle.gradleVersion
}
}
// see https://github.com/Zoltu/Gradle.Plugin.Versioning
/// TODO
// de.ploing.scmversion https://github.com/Skyr/scmversion-gradle-plugin
scmversion {
propertyFilename = 'scmversion.properties'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment