Skip to content

Commit 374b5af

Browse files
committed
Added gradle - part 3
1 parent 94315f5 commit 374b5af

22 files changed

+454
-52
lines changed
17 Bytes
Binary file not shown.
1.95 KB
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
828 KB
Binary file not shown.
19.8 KB
Binary file not shown.
17 Bytes
Binary file not shown.
20.4 KB
Binary file not shown.
43.3 KB
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
342 Bytes
Binary file not shown.

build.gradle

+113-27
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,119 @@
1-
/*
2-
* This file was generated by the Gradle 'init' task.
3-
*
4-
* This generated file contains a sample Java project to get you started.
5-
* For more details take a look at the Java Quickstart chapter in the Gradle
6-
* user guide available at https://docs.gradle.org/4.10.2/userguide/tutorial_java_projects.html
7-
*/
8-
9-
plugins {
10-
// Apply the java plugin to add support for Java
11-
id 'java'
12-
13-
// Apply the application plugin to add support for building an application
14-
id 'application'
15-
}
1+
buildscript {
2+
dependencies {
3+
classpath group: 'de.dynamicfiles.projects.gradle.plugins', name: 'javafx-gradle-plugin', version: '8.8.2'
4+
}
165

17-
// Define the main class for the application
18-
mainClassName = 'App'
6+
repositories {
7+
mavenLocal()
8+
mavenCentral()
9+
}
10+
}
1911

20-
dependencies {
21-
// This dependency is found on compile classpath of this component and consumers.
22-
compile 'com.google.guava:guava:23.0'
12+
apply plugin: 'java'
2313

24-
// Use JUnit test framework
25-
testCompile 'junit:junit:4.12'
14+
repositories {
15+
mavenLocal()
16+
mavenCentral()
2617
}
2718

28-
// In this section you declare where to find the dependencies of your project
29-
repositories {
30-
// Use jcenter for resolving your dependencies.
31-
// You can declare any Maven/Ivy/file repository here.
32-
jcenter()
19+
dependencies{
20+
// this dependency is only required when using UserJvmOptionsService
21+
// when using Oracle JDK
22+
// compile files("${System.properties['java.home']}/../lib/packager.jar")
23+
// when using OpenJFX (Ubuntu), please adjust accordingly
24+
// compile files("/usr/share/java/openjfx/lib/packager.jar")
3325
}
26+
27+
apply plugin: 'javafx-gradle-plugin'
28+
29+
// these values are the examples and defaults
30+
// you won't need them all
31+
32+
// configure javafx-gradle-plugin
33+
// for all available settings please look at the class "JavaFXGradlePluginExtension"
34+
jfx {
35+
verbose = true
36+
mainClass = "gui.MainFrame"
37+
jfxAppOutputDir = "build/jfx/app"
38+
jfxMainAppJarName = "project-jfx.jar"
39+
deployDir = "src/main/deploy"
40+
useEnvironmentRelativeExecutables = true
41+
libFolderName = "lib"
42+
43+
// gradle jfxJar
44+
css2bin = false
45+
preLoader = null // String
46+
updateExistingJar = false
47+
allPermissions = false
48+
manifestAttributes = null // Map<String, String>
49+
addPackagerJar = true
50+
copyAdditionalAppResourcesToJar = false
51+
skipCopyingDependencies = false
52+
useLibFolderContentForManifestClasspath = false
53+
fixedManifestClasspath = null
54+
55+
// gradle jfxNative
56+
identifier = null // String - setting this for windows-bundlers makes it possible to generate upgradeable installers (using same GUID)
57+
vendor = "some serious business corp."
58+
nativeOutputDir = "build/jfx/native"
59+
bundler = "ALL" // set this to some specific, if your don't want all bundlers running, examples "windows.app", "jnlp", ...
60+
jvmProperties = null // Map<String, String>
61+
jvmArgs = null // List<String>
62+
userJvmArgs = null // Map<String, String>
63+
launcherArguments = null // List<String>
64+
nativeReleaseVersion = "1.0"
65+
needShortcut = false
66+
needMenu = false
67+
bundleArguments = [
68+
// dont bundle JRE (not recommended, but increases build-size/-speed)
69+
runtime: null
70+
]
71+
appName = "project" // this is used for files below "src/main/deploy", e.g. "src/main/deploy/package/windows/project.ico"
72+
additionalBundlerResources = null // path to some additional resources for the bundlers when creating application-bundle
73+
additionalAppResources = null // path to some additional resources when creating application-bundle
74+
secondaryLaunchers = [[appName:"somethingDifferent"], [appName:"somethingDifferent2"]]
75+
fileAssociations = null // List<Map<String, Object>>
76+
noBlobSigning = false // when using bundler "jnlp", you can choose to NOT use blob signing
77+
customBundlers = null // List<String>
78+
failOnError = false
79+
onlyCustomBundlers = false
80+
skipJNLP = false
81+
skipNativeVersionNumberSanitizing = false // anything than numbers or dots are removed
82+
additionalJarsignerParameters = null // List<String>
83+
skipMainClassScanning = false // set to true might increase build-speed
84+
85+
skipNativeLauncherWorkaround124 = false
86+
skipNativeLauncherWorkaround167 = false
87+
skipNativeLauncherWorkaround205 = false
88+
skipJNLPRessourcePathWorkaround182 = false
89+
skipSigningJarFilesJNLP185 = false
90+
skipSizeRecalculationForJNLP185 = false
91+
skipMacBundlerWorkaround = false
92+
93+
// gradle jfxRun
94+
runJavaParameter = null // String
95+
runAppParameter = null // String
96+
97+
// per default the outcome of the gradle "jarTask" will be used, set this to specify otherwise (like proguard-output)
98+
alternativePathToJarFile = null // String
99+
100+
// to disable patching of ant-javafx.jar, set this to false
101+
usePatchedJFXAntLib = true
102+
103+
// making it able to support absolute paths, defaults to "false" for maintaining old behaviour
104+
checkForAbsolutePaths = false
105+
106+
// gradle jfxGenerateKeyStore
107+
keyStore = "src/main/deploy/keystore.jks"
108+
keyStoreAlias = "myalias"
109+
keyStorePassword = "password"
110+
keyPassword = null // will default to keyStorePassword
111+
keyStoreType = "jks"
112+
overwriteKeyStore = false
113+
114+
certDomain = null // required
115+
certOrgUnit = null // defaults to "none"
116+
certOrg = null // required
117+
certState = null // required
118+
certCountry = null // required
119+
}
2.62 MB
Binary file not shown.

build/resources/main/icon.png

34.2 KB
Loading

build/resources/main/icon.svg

+81
Loading

0 commit comments

Comments
 (0)