generated from TabooLib/taboolib-multi-module-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
65 lines (57 loc) · 1.45 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
@file:Suppress("PropertyName", "SpellCheckingInspection")
import io.izzel.taboolib.gradle.BUKKIT_ALL
import io.izzel.taboolib.gradle.UNIVERSAL
import io.izzel.taboolib.gradle.VELOCITY
import io.izzel.taboolib.gradle.BUNGEE
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
id("io.izzel.taboolib") version "2.0.11"
id("org.jetbrains.kotlin.jvm") version "1.9.22"
}
kotlin {
sourceSets.all {
languageSettings {
languageVersion = "2.0"
}
}
}
subprojects {
apply<JavaPlugin>()
apply(plugin = "io.izzel.taboolib")
apply(plugin = "org.jetbrains.kotlin.jvm")
// TabooLib 配置
taboolib {
env {
install(UNIVERSAL, BUKKIT_ALL, VELOCITY, BUNGEE)
}
version { taboolib = "6.1.1-beta17" }
}
// 全局仓库
repositories {
mavenLocal()
mavenCentral()
}
// 全局依赖
dependencies {
compileOnly(kotlin("stdlib"))
}
// 编译配置
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjvm-default=all", "-Xextended-compiler-checks")
}
}
}
gradle.buildFinished {
buildDir.deleteRecursively()
}