1
- buildscript {
2
- dependencies {
3
- classpath group : ' de.dynamicfiles.projects.gradle.plugins' , name : ' javafx-gradle-plugin' , version : ' 8.8.2'
4
- }
5
-
6
- repositories {
7
- mavenLocal()
8
- mavenCentral()
9
- }
1
+ plugins {
2
+ id ' application'
10
3
}
11
4
12
- apply plugin : ' java'
13
-
14
5
repositories {
15
- mavenLocal()
16
6
mavenCentral()
17
7
}
18
8
@@ -24,91 +14,13 @@ dependencies {
24
14
compile group : ' org.json' , name : ' json' , version : ' 20090211'
25
15
}
26
16
27
- apply plugin : ' javafx-gradle-plugin'
28
-
29
- jfx {
30
- verbose = true
31
- mainClass = " com.github.dunklemango.starboundmodmanager.MainFrame"
32
- jfxAppOutputDir = " build/jfx/app"
33
- jfxMainAppJarName = " StarboundModManager.jar"
34
- deployDir = " src/main/deploy"
35
- useEnvironmentRelativeExecutables = true
36
- libFolderName = " lib"
37
-
38
- // gradle jfxJar
39
- css2bin = false
40
- preLoader = null // String
41
- updateExistingJar = false
42
- allPermissions = false
43
- manifestAttributes = null // Map<String, String>
44
- addPackagerJar = true
45
- copyAdditionalAppResourcesToJar = false
46
- skipCopyingDependencies = false
47
- useLibFolderContentForManifestClasspath = false
48
- fixedManifestClasspath = null
49
-
50
- // gradle jfxNative
51
- identifier = null // String - setting this for windows-bundlers makes it possible to generate upgradeable installers (using same GUID)
52
- vendor = " DunkleMango @ github.com"
53
- nativeOutputDir = " build/jfx/native"
54
- bundler = " ALL" // set this to some specific, if your don't want all bundlers running, examples "windows.app", "jnlp", ...
55
- jvmProperties = null // Map<String, String>
56
- jvmArgs = null // List<String>
57
- userJvmArgs = null // Map<String, String>
58
- launcherArguments = null // List<String>
59
- nativeReleaseVersion = " 1.0"
60
- needShortcut = false
61
- needMenu = false
62
- bundleArguments = [
63
- // dont bundle JRE (not recommended, but increases build-size/-speed)
64
- runtime : null
65
- ]
66
- appName = " project" // this is used for files below "src/main/deploy", e.g. "src/main/deploy/package/windows/project.ico"
67
- additionalBundlerResources = null // path to some additional resources for the bundlers when creating application-bundle
68
- additionalAppResources = null // path to some additional resources when creating application-bundle
69
- secondaryLaunchers = [[appName :" somethingDifferent" ], [appName :" somethingDifferent2" ]]
70
- fileAssociations = null // List<Map<String, Object>>
71
- noBlobSigning = false // when using bundler "jnlp", you can choose to NOT use blob signing
72
- customBundlers = null // List<String>
73
- failOnError = false
74
- onlyCustomBundlers = false
75
- skipJNLP = false
76
- skipNativeVersionNumberSanitizing = false // anything than numbers or dots are removed
77
- additionalJarsignerParameters = null // List<String>
78
- skipMainClassScanning = false // set to true might increase build-speed
79
-
80
- skipNativeLauncherWorkaround124 = false
81
- skipNativeLauncherWorkaround167 = false
82
- skipNativeLauncherWorkaround205 = false
83
- skipJNLPRessourcePathWorkaround182 = false
84
- skipSigningJarFilesJNLP185 = false
85
- skipSizeRecalculationForJNLP185 = false
86
- skipMacBundlerWorkaround = false
17
+ mainClassName = ' com.github.dunklemango.starboundmodmanager.MainFrame'
87
18
88
- // gradle jfxRun
89
- runJavaParameter = null // String
90
- runAppParameter = null // String
91
-
92
- // per default the outcome of the gradle "jarTask" will be used, set this to specify otherwise (like proguard-output)
93
- alternativePathToJarFile = null // String
94
-
95
- // to disable patching of ant-javafx.jar, set this to false
96
- usePatchedJFXAntLib = true
97
-
98
- // making it able to support absolute paths, defaults to "false" for maintaining old behaviour
99
- checkForAbsolutePaths = false
100
-
101
- // gradle jfxGenerateKeyStore
102
- keyStore = " src/main/deploy/keystore.jks"
103
- keyStoreAlias = " myalias"
104
- keyStorePassword = " password"
105
- keyPassword = null // will default to keyStorePassword
106
- keyStoreType = " jks"
107
- overwriteKeyStore = false
108
-
109
- certDomain = null // required
110
- certOrgUnit = null // defaults to "none"
111
- certOrg = null // required
112
- certState = null // required
113
- certCountry = null // required
19
+ jar {
20
+ manifest {
21
+ attributes ' Main-Class' : mainClassName
22
+ }
23
+ from {
24
+ configurations. runtimeClasspath. collect { it. isDirectory() ? it : zipTree(it) }
25
+ }
114
26
}
0 commit comments