-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (56 loc) · 1.93 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
// id 'org.jetbrains.kotlin.jvm' version '1.9.23'
}
group 'fun.fifu'
version '1.0-SNAPSHOT'
def kotlin_version = "1.9.23"
def bukkit_api_version = "1.20.2"
def junit_version = "5.9.0"
repositories {
mavenLocal()
mavenCentral()
google()
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'https://mirrors.huaweicloud.com/repository/maven' }
maven { url 'https://papermc.io/repo/repository/maven-public/' }
maven { url "https://repository.alkaidmc.com/releases" }
maven { url "https://repository.alkaidmc.com/snapshots" }
}
dependencies {
compileOnly "io.papermc.paper:paper-api:${bukkit_api_version}-R0.1-SNAPSHOT"
// compileOnly fileTree(dir: 'libs', includes: ['*.jar'])
implementation 'com.alkaidmc.alkaid:alkaid-bukkit:8dbf9e4-SNAPSHOT'
// implementation 'cn.hutool:hutool-all:5.8.27'
// implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
// implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
// implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0-RC2"
// testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
// testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
// implementation 'org.mongodb:mongo-java-driver:3.12.14'
// testImplementation 'org.mongodb:mongo-java-driver:3.12.14'
// implementation 'com.google.code.gson:gson:2.10.1'
}
test {
useJUnitPlatform()
}
shadowJar {
manifest {
attributes(
'Main-Class': 'fun.fifu.bukkittemplate.Main',
"Multi-Release": true
)
}
}
tasks.build {
dependsOn(shadowJar)
}
//编译groovy代码时采用 UTF-8
tasks.withType(GroovyCompile) {
groovyOptions.encoding = "UTF-8"
}
//编译JAVA文件时采用UTF-8
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}