-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
39 lines (32 loc) · 1.06 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
plugins {
id 'java'
}
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/' }
maven { url "https://repository.alkaidmc.com/releases" }
maven { url "https://repository.alkaidmc.com/snapshots" }
mavenCentral()
google()
}
dependencies {
// testCompile group: 'junit', name: 'junit', version: '4.12'
// implementation 'org.bukkit:bukkit:1.19.1-R0.1-SNAPSHOT'
implementation "org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT"
}
//编译groovy代码时采用 UTF-8
tasks.withType(GroovyCompile) {
groovyOptions.encoding = "UTF-8"
}
//编译JAVA文件时采用UTF-8
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}