Permalink
Browse files

Gradle build improvements

  • Loading branch information...
devemux86 committed Dec 9, 2018
1 parent 1cd3926 commit bdb330b8b5e77ab88149dcf12d050b81c9366bf0
Showing with 8 additions and 8 deletions.
  1. +8 −8 mapsforge-samples-awt/build.gradle
@@ -5,19 +5,19 @@ dependencies {
implementation project(":mapsforge-themes")
}

mainClassName = "org.mapsforge.samples.awt.Samples"
run {
if (project.hasProperty("args")) {
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': 'org.mapsforge.samples.awt.Samples'
attributes 'Main-Class': "${mainClassName}"
}
with jar
}

mainClassName = "org.mapsforge.samples.awt.Samples"
run {
if (project.hasProperty("args")) {
args project.getProperty("args").split(",")
}
}

0 comments on commit bdb330b

Please sign in to comment.