Verified Commit 770c24a6 authored by GOUVILLE Tom's avatar GOUVILLE Tom 🤞
Browse files

[ADD] buildJar command

parent b153407c
......@@ -14,6 +14,14 @@ repositories {
mavenCentral()
}
apply plugin: 'java'
mainClassName = 'Main'
jar {
manifest {
attributes 'Main-Class': "$mainClassName"
}
}
sourceSets {
main {
......@@ -22,11 +30,20 @@ sourceSets {
}
resources {
srcDirs = ['resources']
}
}
}
}
mainClassName = 'Main'
javafx {
modules = ['javafx.controls', 'javafx.base', 'javafx.graphics', 'javafx.web', 'javafx.swing', 'javafx.media']
}
task buildJar(type: Jar) {
manifest.from jar.manifest
classifier = 'all'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment