-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathbuild.gradle
More file actions
83 lines (73 loc) · 2.02 KB
/
build.gradle
File metadata and controls
83 lines (73 loc) · 2.02 KB
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
plugins {
id 'java'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.8'
}
sourceCompatibility = 11
targetCompatibility = 11
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
ext.mainPackage = 'com.noticeditorteam.noticeditor'
mainClassName = "${ext.mainPackage}.Main"
version '1.3-SNAPSHOT'
application {
applicationDefaultJvmArgs = [
'--add-opens=javafx.controls/javafx.scene.control=ALL-UNNAMED'
]
}
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDirs = ['src']
}
resources {
srcDirs = ['src']
}
}
test {
java {
srcDirs = ['test']
}
}
}
def platform = System.getProperty('os.name').toLowerCase();
if (platform.contains('windows')) {
platform = 'windows'
} else if (platform.contains('linux')) {
platform = 'linux'
} else {
platform = 'mac'
}
jar {
archiveClassifier = platform
manifest {
attributes 'Main-Class': "${mainPackage}.Launcher"
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy = duplicatesStrategy.INCLUDE
}
javafx {
version = '14.0.1'
modules = [
'javafx.controls', 'javafx.fxml',
'javafx.swing', 'javafx.web'
]
}
ext.flexmarkVersion = '0.62.2'
dependencies{
implementation fileTree(dir: 'libs', include: '*.jar')
implementation 'net.lingala.zip4j:zip4j:2.6.1'
implementation 'org.jsoup:jsoup:1.13.1'
implementation 'org.json:json:20200518'
implementation "com.vladsch.flexmark:flexmark:$flexmarkVersion"
implementation "com.vladsch.flexmark:flexmark-ext-autolink:$flexmarkVersion"
implementation "com.vladsch.flexmark:flexmark-ext-tables:$flexmarkVersion"
implementation "com.vladsch.flexmark:flexmark-ext-gfm-tasklist:$flexmarkVersion"
testImplementation 'junit:junit:4.12'
testImplementation 'org.hamcrest:hamcrest-core:1.3'
testImplementation 'com.carrotsearch:junit-benchmarks:0.7.2'
}