-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
90 lines (83 loc) · 2.33 KB
/
build.gradle.kts
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
plugins {
java
id("io.izzel.taboolib") version "1.34"
kotlin("jvm") version "1.6.10"
}
taboolib {
install("common")
install("common-5")
install("platform-bukkit")
install("module-lang")
install("module-nms")
install("module-ui-receptacle")
install("module-chat")
install("module-configuration")
install("module-metrics")
install("module-database")
install("module-kether")
install("expansion-player-database")
classifier = null
version = "6.0.9-40"
description {
contributors {
name("Leosouthey")
}
links {
name("homepage").url("https://faithl.com")
}
dependencies {
name("AttributePlus").optional(true)
name("OriginAttribute").optional(true)
name("SX-Attribute").optional(true)
name("Zaphkiel").optional(true)
name("PlaceholderAPI").optional(true)
}
}
}
repositories {
maven { url = uri("https://repo.tabooproject.org/repository/releases/") }
maven { url = uri("https://maven.aliyun.com/nexus/content/groups/public/") }
maven { url = uri("https://mvnrepository.com/artifact/org.ow2.asm/asm") }
mavenCentral()
}
dependencies {
compileOnly("ink.ptms.core:v11900:11900:mapped")
compileOnly("ink.ptms.core:v11900:11900:universal")
compileOnly("com.alibaba:fastjson:1.2.79")
compileOnly("org.jetbrains.kotlin:kotlin-stdlib:1.6.10")
compileOnly("org.ow2.asm:asm:9.2")
compileOnly("com.faithl:milim:1.0.3")
compileOnly(fileTree("libs"))
}
task("copy") {
//复制前执行构建
dependsOn("clean")
dependsOn("build")
tasks.findByName("build")?.mustRunAfter("clean")
mustRunAfter("build")
//进行任务后进行复制
doLast {
copy{
from("${buildDir.path}\\libs\\")
into("F:/Server/Paper-1.12.2/plugins")
}
}
}
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
}
withType<Javadoc> {
options.encoding = "UTF-8"
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjvm-default=all")
}
}
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}