-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
108 lines (95 loc) · 2.7 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
import java.text.SimpleDateFormat
plugins {
id 'java'
id 'scala'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.9'
// id 'com.gluonhq.client-gradle-plugin' version '0.1.36'
}
group 'cn.navigational'
version '1.0-SNAPSHOT'
mainClassName = 'cn.navigational.redisfx.Launcher'
//jvm args
applicationDefaultJvmArgs = ['-Dsun.java2d.opengl=true', '-XX:+UseZGC', '-Xms512M', '-Xmx1024M']
if (javafx.platform.classifier == 'linux') applicationDefaultJvmArgs.add("-Djdk.gtk.version=2")
javafx {
version = "15.0.1"
modules = ['javafx.controls', 'javafx.fxml', 'javafx.base', 'javafx.graphics']
}
//gluonClient {
// graalvmHome = '/home/yangkui/application/graalvm'
//}
//解决window乱码问题
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks.withType(ScalaCompile) {
options.encoding = "UTF-8"
}
sourceSets {
main {
scala {
srcDirs = ['src/main/scala', 'src/main/java']
}
java {
srcDirs = []
}
}
test {
scala {
srcDirs = ['src/test/scala', 'src/test/java']
}
java {
srcDirs = []
}
}
}
jar {
from {
configurations.runtimeClasspath.collect {
if (!it.name.startsWith("javafx")) {
zipTree(it)
}
}
}
archiveFileName = "redisfx.jar"
manifest {
attributes 'Multi-Release': true
attributes 'Main-Class': mainClassName
attributes 'App-Name': rootProject.name
attributes "App-Version": project.version
attributes 'App-Author': '752544765@qq.com'
attributes 'App-Website': 'http://navigational.cn'
attributes 'Build-Time': new SimpleDateFormat().format(new Date())
attributes 'Copyright': 'Copyright © 2019-2020 navigational.cn'
}
}
repositories {
maven {
url "https://maven.aliyun.com/repository/google"
}
maven {
url "https://maven.aliyun.com/nexus/content/repositories/central"
}
maven {
url "https://maven.aliyun.com/nexus/content/groups/public/"
}
maven {
url "https://nexus.gluonhq.com/nexus/content/repositories/releases"
}
maven {
url "https://plugins.gradle.org/m2/"
}
jcenter()
mavenCentral()
}
dependencies {
implementation 'dom4j:dom4j:1.6.1'
implementation 'redis.clients:jedis:3.4.1'
implementation 'org.scala-lang:scala-library:2.13.1'
implementation 'org.controlsfx:controlsfx:11.0.3'
implementation 'org.slf4j:slf4j-api:2.0.0-alpha1'
implementation 'com.alibaba:fastjson:1.2.75'
implementation 'ch.qos.logback:logback-core:1.3.0-alpha5'
implementation 'ch.qos.logback:logback-classic:1.3.0-alpha5'
}