more on version code
This commit is contained in:
parent
e8970c8626
commit
03574f834c
7 changed files with 40 additions and 13 deletions
|
|
@ -10,10 +10,23 @@ application {
|
|||
|
||||
jar {
|
||||
manifest {
|
||||
attributes "Main-Class": getMainClass()
|
||||
attributes "Main-Class": getMainClass(), "Implementation-Version": project.version
|
||||
}
|
||||
}
|
||||
|
||||
task fatJar(type: Jar) {
|
||||
manifest.from jar.manifest
|
||||
classifier = 'all'
|
||||
from {
|
||||
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
||||
} {
|
||||
exclude "META-INF/*.SF"
|
||||
exclude "META-INF/*.DSA"
|
||||
exclude "META-INF/*.RSA"
|
||||
}
|
||||
with jar
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue