Skip to content

Commit

Permalink
Gradle improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 committed Dec 1, 2023
1 parent 59074ec commit 8723875
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
26 changes: 14 additions & 12 deletions vtm-playground/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,21 @@ sourceSets {
main.resources.srcDirs = ['resources']
}

mainClassName = "org.oscim.test.MapsforgeTest"
run {
if (project.hasProperty("args")) {
args project.getProperty("args").split(",")
application {
mainClass = "org.oscim.test.MapsforgeTest"
run {
if (project.hasProperty("args")) {
args project.getProperty("args").split(",")
}
}
}

task fatJar(type: Jar, dependsOn: configurations.runtimeClasspath) {
archiveClassifier = 'jar-with-dependencies'
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/services/io.jeo.data.Driver'
manifest {
attributes 'Main-Class': "${mainClassName}"
task fatJar(type: Jar, dependsOn: configurations.runtimeClasspath) {
archiveClassifier = 'jar-with-dependencies'
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/services/io.jeo.data.Driver'
manifest {
attributes 'Main-Class': "${mainClass}"
}
with jar
}
with jar
}
18 changes: 10 additions & 8 deletions vtm-theme-comparator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ sourceSets {
main.resources.srcDirs = ['resources']
}

mainClassName = "org.oscim.theme.comparator.Main"
application {
mainClass = "org.oscim.theme.comparator.Main"

task fatJar(type: Jar, dependsOn: configurations.runtimeClasspath) {
archiveClassifier = '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}"
task fatJar(type: Jar, dependsOn: configurations.runtimeClasspath) {
archiveClassifier = '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': "${mainClass}"
}
with jar
}
with jar
}

0 comments on commit 8723875

Please sign in to comment.