This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
58 lines (48 loc) · 1.57 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '2.0.4'
id 'org.jetbrains.kotlin.jvm' version '1.7.10'
}
group 'fun.fifu'
version '1.0-SNAPSHOT'
repositories {
mavenLocal()
//国内镜像源
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'https://mirrors.huaweicloud.com/repository/maven' }
//Minecraft
maven { url 'https://crystal.lss233.com.aslf.top/repositories/minecraft' }
maven { url 'https://lss233.com/artifactory/minecraft' }
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
google()
mavenCentral()
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.7.10'
// implementation 'org.jetbrains.kotlin:kotlin-reflect:1.7.10'
// implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
implementation 'com.alkaidmc.alkaid:alkaid-bukkit:1.0.0-SNAPSHOT'
// implementation 'org.mongodb:mongo-java-driver:3.12.11'
// testImplementation 'org.mongodb:mongo-java-driver:3.12.11'
// implementation 'com.google.code.gson:gson:2.9.0'
}
test {
useJUnitPlatform()
}
shadowJar {
manifest {
attributes(
'Main-Class': 'fun.fifu.simplebloodvolumedisplay.Main',
"Multi-Release": true
)
}
}
//编译groovy代码时采用 UTF-8
tasks.withType(GroovyCompile) {
groovyOptions.encoding = "UTF-8"
}
//编译JAVA文件时采用UTF-8
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}