Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
GOUVILLE Tom
template-JavaFX
Commits
770c24a6
Verified
Commit
770c24a6
authored
Sep 27, 2021
by
GOUVILLE Tom
🤞
Browse files
[ADD] buildJar command
parent
b153407c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
build.gradle
build.gradle
+19
-2
No files found.
build.gradle
View file @
770c24a6
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment