Gradle build improvements
This commit is contained in:
parent
41d5d21bc6
commit
01958b7d34
@ -29,3 +29,13 @@ run {
|
||||
args project.getProperty("args").split(",")
|
||||
}
|
||||
}
|
||||
|
||||
task fatJar(type: Jar, dependsOn: classes) {
|
||||
classifier = 'jar-with-dependencies'
|
||||
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||
exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF'
|
||||
manifest {
|
||||
attributes 'Main-Class': "${mainClassName}"
|
||||
}
|
||||
with jar
|
||||
}
|
||||
|
@ -32,14 +32,14 @@ sourceSets {
|
||||
}
|
||||
}
|
||||
|
||||
mainClassName = "org.oscim.theme.comparator.Main"
|
||||
|
||||
task fatJar(type: Jar, dependsOn: classes) {
|
||||
classifier = 'jar-with-dependencies'
|
||||
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||
exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF'
|
||||
manifest {
|
||||
attributes('Main-Class': 'org.oscim.theme.comparator.Main')
|
||||
attributes 'Main-Class': "${mainClassName}"
|
||||
}
|
||||
with jar
|
||||
}
|
||||
|
||||
mainClassName = "org.oscim.theme.comparator.Main"
|
||||
|
Loading…
x
Reference in New Issue
Block a user