spolnik / trading-office

Trading Office
http://spolnik.github.io/trading-office
9 stars 8 forks source link

add version information to jar #57

Closed spolnik closed 8 years ago

spolnik commented 8 years ago

jar { manifest { attributes( 'Implementation-Title': "${project.name}", 'Implementation-Version': version.toString(), 'Created-By': System.getProperty('java.version') + ' (' + System.getProperty('java.vendor') + ')', 'Built-With': "gradle-${project.getGradle().getGradleVersion()}, groovy-${GroovySystem.getVersion()}", 'Build-Time': "${new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")}", 'Built-By': System.getProperty('user.name'), 'Built-On': "${InetAddress.localHost.hostName}/${InetAddress.localHost.hostAddress}" ) } }