forked from GGXBoo/editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
140 lines (127 loc) · 5.6 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
group 'com.ggx.editor'
version '1.0-SNAPSHOT'
tasks.withType(JavaCompile.class) {
options.encoding = "UTF-8"
}
buildscript {
dependencies {
classpath files("libs/javafx-gradle-plugin-8.9.0-SNAPSHOT.jar")
classpath 'org.ow2.asm:asm:6.2.1'
}
repositories {
mavenLocal()
mavenCentral()
}
}
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
//packagingOptions {
// exclude 'META-INF/LICENSE-LGPL-2.1.txt'
// exclude 'META-INF/LICENSE-LGPL-3.txt'
// exclude 'META-INF/LICENSE-W3C-TEST'
//}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
// compile project(':richtextfx')
compile group: 'org.fxmisc.richtext', name: 'richtextfx', version: '0.9.2'
compile 'com.jfoenix:jfoenix:8.0.4'
def flexmarkVersion = '0.35.0'
compile 'com.vladsch.flexmark:flexmark-all:' + flexmarkVersion
// compile 'com.vladsch.flexmark:flexmark-util:' + flexmarkVersion
// compile 'com.vladsch.flexmark:flexmark-ext-tables:' + flexmarkVersion
// compile 'com.vladsch.flexmark:flexmark-ext-abbreviation:' + flexmarkVersion
// compile 'com.vladsch.flexmark:flexmark-ext-anchorlink:' + flexmarkVersion
// compile 'com.vladsch.flexmark:flexmark-ext-aside:' + flexmarkVersion
// compile 'com.vladsch.flexmark:flexmark-ext-autolink:' + flexmarkVersion
// compile 'com.vladsch.flexmark:flexmark-ext-definition:' + flexmarkVersion
// compile 'com.vladsch.flexmark:flexmark-ext-footnotes:' + flexmarkVersion
// compile 'com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:' + flexmarkVersion
// compile 'com.vladsch.flexmark:flexmark-ext-gfm-tables:' + flexmarkVersion
// compile 'com.vladsch.flexmark:flexmark-ext-gfm-tasklist:' + flexmarkVersion
// compile 'com.vladsch.flexmark:flexmark-ext-toc:' + flexmarkVersion
// compile 'com.vladsch.flexmark:flexmark-ext-wikilink:' + flexmarkVersion
// compile 'com.vladsch.flexmark:flexmark-ext-yaml-front-matter:' + flexmarkVersion
}
apply plugin: 'javafx-gradle-plugin'
// Configures plugin
jfx {
verbose = true
mainClass = "com.ggx.editor.Main"
jfxAppOutputDir = "build/jfx/app"
jfxMainAppJarName = "mark-book.jar"
deployDir = "src/main/deploy"
useEnvironmentRelativeExecutables = true
libFolderName = "lib"
// gradle jfxJar
css2bin = false
preLoader = null // String
updateExistingJar = false
allPermissions = false
manifestAttributes = null // Map<String, String>
addPackagerJar = true
copyAdditionalAppResourcesToJar = false
skipCopyingDependencies = false
useLibFolderContentForManifestClasspath = false
fixedManifestClasspath = null
// gradle jfxNative
identifier = null // String - setting this for windows-bundlers makes it possible to generate upgradeable installers (using same GUID)
vendor = "ggx.org"
nativeOutputDir = "build/jfx/native"
bundler = "all" // set this to some specific, if your don't want all bundlers running, examples "windows.app", "jnlp", ...
jvmProperties = null // Map<String, String>
jvmArgs = null // List<String>
userJvmArgs = null // Map<String, String>
launcherArguments = null // List<String>
nativeReleaseVersion = "1.0"
needShortcut = false
needMenu = false
bundleArguments = [
// dont bundle JRE (not recommended, but increases build-size/-speed)
// runtime: "D:\\Program Files\\Java\\jre1.8.0_131"
runtime: "/usr/lib/jvm/java-8-oracle/jre"
]
appName = "MarkBook" // this is used for files below "src/main/deploy", e.g. "src/main/deploy/package/windows/project.ico"
additionalBundlerResources = null // path to some additional resources for the bundlers when creating application-bundle
additionalAppResources = null // path to some additional resources when creating application-bundle
//secondaryLaunchers = [[appName:"somethingDifferent"], [appName:"somethingDifferent2"]]
fileAssociations = null // List<Map<String, Object>>
noBlobSigning = false // when using bundler "jnlp", you can choose to NOT use blob signing
customBundlers = null // List<String>
failOnError = false
onlyCustomBundlers = false
skipJNLP = false
skipNativeVersionNumberSanitizing = false // anything than numbers or dots are removed
additionalJarsignerParameters = null // List<String>
skipMainClassScanning = false // set to true might increase build-speed
skipNativeLauncherWorkaround124 = false
skipNativeLauncherWorkaround167 = false
skipNativeLauncherWorkaround205 = false
skipJNLPRessourcePathWorkaround182 = false
skipSigningJarFilesJNLP185 = false
skipSizeRecalculationForJNLP185 = false
skipMacBundlerWorkaround = false
// gradle jfxRun
runJavaParameter = null // String
runAppParameter = null // String
// per default the outcome of the gradle "jarTask" will be used, set this to specify otherwise (like proguard-output)
alternativePathToJarFile = null // String
// to disable patching of ant-javafx.jar, set this to false
usePatchedJFXAntLib = true
// making it able to support absolute paths, defaults to "false" for maintaining old behaviour
checkForAbsolutePaths = false
// gradle jfxGenerateKeyStore
keyStore = "src/main/deploy/ggx.keystore"
keyStoreAlias = "editor"
keyStorePassword = "guanguoxiang"
keyPassword = null // will default to keyStorePassword
keyStoreType = "keystore"
overwriteKeyStore = false
certDomain = null // required
certOrgUnit = null // defaults to "none"
certOrg = null // required
certState = null // required
certCountry = null // required
}