Use Application plugin
This commit is contained in:
parent
b168f09906
commit
4262560d93
12
build.gradle
12
build.gradle
@ -1,11 +1,9 @@
|
|||||||
//// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
||||||
import com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.github.johnrengelman.shadow' version '7.1.2'
|
id 'com.github.johnrengelman.shadow' version '7.1.2'
|
||||||
id 'java'
|
id 'java'
|
||||||
id 'checkstyle'
|
id 'checkstyle'
|
||||||
id 'org.javamodularity.moduleplugin' version '1.8.14'
|
id 'org.javamodularity.moduleplugin' version '1.8.14'
|
||||||
|
id 'application'
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
@ -13,9 +11,10 @@ java {
|
|||||||
modularity.inferModulePath = false
|
modularity.inferModulePath = false
|
||||||
}
|
}
|
||||||
|
|
||||||
/*moduleOptions {
|
application {
|
||||||
addModules = ['java.scripting']
|
mainModule = 'info.openrocket.swing'
|
||||||
}*/
|
mainClass = 'info.openrocket.swing.startup.OpenRocket'
|
||||||
|
}
|
||||||
|
|
||||||
// Fetch the build version from the build.properties file
|
// Fetch the build version from the build.properties file
|
||||||
Properties props = new Properties()
|
Properties props = new Properties()
|
||||||
@ -81,7 +80,6 @@ jar {
|
|||||||
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes (
|
attributes (
|
||||||
'Main-Class': 'info.openrocket.swing.startup.OpenRocket',
|
|
||||||
'Description': 'Model-rocketry aerodynamics and trajectory simulation software',
|
'Description': 'Model-rocketry aerodynamics and trajectory simulation software',
|
||||||
'SplashScreen-Image': 'pix/splashscreen.png',
|
'SplashScreen-Image': 'pix/splashscreen.png',
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user