-
Notifications
You must be signed in to change notification settings - Fork 0
/
jar.gradle
21 lines (20 loc) · 726 Bytes
/
jar.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
sourceSets {
main {
java {
exclude 'Main.java'
}
}
}
jar {
archiveName = "${artifactId}-${version}.jar"
manifest {
attributes 'Package': "${groupId}",
'Implementation-Title': "${artifactId}",
'Implementation-Version': "${version}",
'Implementation-Vendor': 'Alexander Zagniotov',
'Built-By': 'Alexander Zagniotov',
'Built-Date': new Date().toString(),
'Built-With': "gradle-${project.getGradle().getGradleVersion()}, groovy-${GroovySystem.getVersion()}",
'Created-By': System.getProperty('java.version') + ' (' + System.getProperty('java.vendor') + ')'
}
}