forked from inrhor/imiPet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (56 loc) · 1.87 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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
id 'com.github.johnrengelman.shadow' version '4.0.4'
}
group 'cn.inrhor.imipet'
version '4.2.0'
sourceCompatibility = 1.8
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://repo.ptms.ink/repository/codemc-nms/' }
maven { url 'http://repo.ptms.ink/repository/maven-releases/' }
maven { url 'https://jitpack.io' }
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
maven { url 'https://repo.codemc.org/repository/maven-public' }
maven { url 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url 'https://rayzr.dev/repo/' }
maven { url "http://repo.dakanilabs.com/repository/public/" }
}
dependencies {
compile 'ink.ptms.core:v11600:11600:all'
compile 'org.jetbrains.kotlin:kotlin-stdlib'
compile 'org.bstats:bstats-bukkit:1.7'
compile 'io.izzel.taboolib:TabooLib:5.54:all'
compile 'io.izzel.taboolib:TabooLibLoader:2.11:all'
compile 'me.clip:placeholderapi:2.10.7'
shadow fileTree(dir: 'libs', includes: ['*.jar'])
shadow fileTree(dir: 'libs/otherVer', includes: ['*.jar'])
}
shadowJar {
dependencies {
include dependency('io.izzel.taboolib:TabooLibLoader.*')
}
relocate 'io.izzel.taboolib.loader', project.group + '.boot'
}
processResources {
from(sourceSets.main.resources.srcDirs) {
include 'plugin.yml'
expand(
'name': rootProject.name,
'main': project.group + '.boot.PluginBoot',
'version': project.version,
'authors': ["inrhor", "Karlatemp"]
)
}
}
//编译JAVA文件时采用UTF-8
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}