-
Notifications
You must be signed in to change notification settings - Fork 106
/
Copy pathbuild.gradle.kts
60 lines (56 loc) · 1.86 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
import io.izzel.taboolib.gradle.*
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
id("io.izzel.taboolib") version "2.0.19" apply false
id("org.jetbrains.kotlin.jvm") version "1.8.22" apply false
}
subprojects {
apply<JavaPlugin>()
apply(plugin = "io.izzel.taboolib")
apply(plugin = "org.jetbrains.kotlin.jvm")
configure<TabooLibExtension> {
env {
install(Basic, Database, Kether, Metrics, XSeries, CommandHelper)
install(Bukkit, BukkitUI, BukkitNavigation, BukkitUtil, BukkitHook)
install(BukkitNMSUtil)
install(MinecraftEffect, MinecraftChat)
// repoTabooLib = project.repositories.mavenLocal().url.toString()
}
version { taboolib = "6.2.2" }
}
repositories {
mavenLocal()
maven { url = uri("https://repo.spongepowered.org/maven") }
mavenCentral()
}
dependencies {
compileOnly(kotlin("stdlib"))
// server
compileOnly("ink.ptms.core:v11604:11604")
compileOnly("ink.ptms:nms-all:1.0.0")
compileOnly("com.google.code.gson:gson:2.8.5")
compileOnly("com.google.guava:guava:21.0")
// include
compileOnly("com.eatthepath:fast-uuid:0.2.0")
compileOnly("org.spongepowered:math:2.0.1")
// download
compileOnly("com.github.ben-manes.caffeine:caffeine:2.9.3")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjvm-default=all", "-Xextended-compiler-checks")
}
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
gradle.buildFinished {
buildDir.deleteRecursively()
}