-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
76 lines (63 loc) · 2.13 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
group 'com.jean'
version '1.0'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'application'
apply plugin: 'javafx-gradle-plugin'
sourceCompatibility = JavaVersion.VERSION_1_8
buildscript {
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public" }
mavenLocal()
}
dependencies {
classpath 'de.dynamicfiles.projects.gradle.plugins:javafx-gradle-plugin:8.8.2'
}
}
[compileJava, compileTestJava]*.options*.encoding = "UTF-8"
mainClassName = 'com.jean.redis.client.MainApplication'
repositories {
maven {
url "http://maven.aliyun.com/nexus/content/groups/public"
}
mavenLocal()
}
dependencies {
compile 'io.lettuce:lettuce-core:5.1.2.RELEASE'
compile "org.apache.commons:commons-pool2:2.6.0"
compile 'org.slf4j:slf4j-api:1.7.30'
compile 'ch.qos.logback:logback-classic:1.2.3'
}
/*jar {
manifest {
attributes(['Implementation-Version' : version,
'JavaFX-Application-Class': 'com.jean.redis.client.MainApplication',
'Main-Class' : 'com/javafx/main/Main'])
}
// from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}*/
jfx {
// gradle common
jfxMainAppJarName = "redis-client.jar"
jfxAppOutputDir = "build/jfx/app"
mainClass = 'com.jean.redis.client.MainApplication'
// gradle native
appName = "redis-client"
vendor = "黄老邪"
jvmArgs = ["-Xmx512M", //堆最大
"-Xms256M", //堆初始
"-Xmn200M", //新生代
"-Xss1M", //线程栈
"-XX:MaxMetaspaceSize=128M",
"-XX:MetaspaceSize=128M",
"-XX:+UseParallelGC",
"-XX:+UseAdaptiveSizePolicy",
"-XX:MaxGCPauseMillis=100",
"-XX:+PrintGCDetails",
"-XX:+PrintGCDateStamps",
"-XX:+PrintCommandLineFlags",
"-verbose:class"]
jvmProperties = [:]
userJvmArgs = [:]
launcherArguments = ["redis-client", "1.0.0-Release"]
}