This repository has been archived by the owner on May 4, 2024. It is now read-only.
forked from Core2002/ZxbSkyWorldPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
54 lines (47 loc) · 1.77 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
/**
* Copyright (c) 2020 Core2002
* ZxbSkyWorldPlugin is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '2.0.4'
}
group 'fun.fifu.nekokecore'
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 {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
implementation 'org.yaml:snakeyaml:1.30'
implementation 'com.google.code.gson:gson:2.9.0'
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
//编译groovy代码时采用 UTF-8
tasks.withType(GroovyCompile) {
groovyOptions.encoding = "UTF-8"
}
//编译JAVA文件时采用UTF-8
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}