This repository has been archived by the owner on Jul 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
68 lines (57 loc) · 1.9 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
plugins {
id 'java'
}
group 'github.kasuminova'
version '1.4.0-BETA'
repositories {
maven {
url 'https://maven.aliyun.com/nexus/content/groups/public/'
}
maven {
url 'https://maven.aliyun.com/repository/central'
}
mavenCentral()
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archivesBaseName = 'BalloonServer-GUI'//基本的文件名
archiveVersion = version //版本
manifest { //配置 Jar 文件的 Manifest
attributes (
"Manifest-Version": 1.0,
'Main-Class': 'github.kasuminova.balloonserver.BalloonServer', //指定 Main 方法所在的文件
'SplashScreen-Image': 'image/splash.png'
)
}
//打包依赖包
from {
(configurations.runtimeClasspath).collect {
it.isDirectory() ? it : zipTree(it)
}
}
}
dependencies {
testImplementation 'org.projectlombok:lombok:1.18.24'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
implementation 'com.alibaba.fastjson2:fastjson2:2.0.19'
implementation 'io.netty:netty-buffer:4.1.85.Final'
implementation 'io.netty:netty-codec:4.1.85.Final'
implementation 'io.netty:netty-codec-http:4.1.85.Final'
implementation 'io.netty:netty-handler:4.1.85.Final'
implementation 'io.netty:netty-transport:4.1.85.Final'
implementation 'com.formdev:flatlaf:2.6'
implementation 'com.formdev:flatlaf-extras:2.6'
implementation 'com.formdev:flatlaf-intellij-themes:2.6'
implementation 'cn.hutool:hutool-core:5.8.9'
implementation 'cn.hutool:hutool-system:5.8.9'
implementation 'cn.hutool:hutool-log:5.8.9'
implementation 'cn.hutool:hutool-http:5.8.9'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
// options.compilerArgs += "--enable-preview"
}
test {
useJUnitPlatform()
}