more on version code

This commit is contained in:
afischerdev 2021-07-07 12:21:52 +02:00
parent e8970c8626
commit 03574f834c
7 changed files with 40 additions and 13 deletions

View file

@ -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 {