Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plugins {
- id 'application'
- id 'org.openjfx.javafxplugin' version '0.0.7'
- }
- group 'wyalves'
- version '1.0.0'
- mainClassName = 'wyalves.HelloFX'
- sourceCompatibility = 1.11
- repositories {
- mavenCentral()
- }
- javafx {
- version = '11'
- modules = ['javafx.controls']
- }
- task fatJar(type: Jar) {
- group = 'application'
- description = 'Assembles a jar archive containing the main classes and all dependencies'
- baseName = project.name + '-all'
- manifest {
- attributes 'Implementation-Title': 'Simple JavaFX Runnable jar',
- 'Implementation-Version': version,
- 'Built-By': 'Wesley Alves',
- 'Built-Date': new Date(),
- 'Built-JDK': System.getProperty('java.version'),
- 'Main-Class': mainClassName
- }
- from {
- configurations.compile.collect {
- it.isDirectory() ? it : zipTree(it)
- }
- } with jar
- exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement