-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
86 lines (67 loc) · 2.24 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
@file:Suppress("SpellCheckingInspection")
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.0"
kotlin("plugin.serialization") version "1.6.0"
id("net.minecrell.plugin-yml.bukkit")
id("com.github.johnrengelman.shadow")
}
group = "me.weiwen.tsundoku"
version = "1.0.0"
repositories {
jcenter()
maven { url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") }
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }
// bStats
maven { url = uri("https://repo.codemc.org/repository/maven-public") }
// MineDown
maven { url = uri("https://repo.minebench.de/") }
mavenLocal()
}
dependencies {
implementation(kotlin("stdlib-jdk8", "1.6.0"))
// Deserialization
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.1")
implementation("com.charleskorn.kaml:kaml:0.33.0")
// Paper
compileOnly("com.destroystokyo.paper", "paper-api", "1.16.5-R0.1-SNAPSHOT")
// bStats
implementation("org.bstats", "bstats-bukkit", "1.8")
// MineDown
implementation("de.themoep", "minedown-adventure", "1.7.0-SNAPSHOT")
}
bukkit {
main = "me.weiwen.tsundoku.Tsundoku"
name = "Tsundoku"
version = "1.0.0"
description = "Easily build custom books for your Minecraft server"
apiVersion = "1.16"
author = "Goh Wei Wen <[email protected]>"
website = "weiwen.me"
depend = listOf()
softDepend = listOf()
commands {
register("tsundoku") {
description = "Manages the Tsundoku plugin"
usage = "/<command> reload"
permission = "tsundoku.admin"
}
register("book") {
description = "Read a book"
usage = "/<command> <book path>"
permission = "tsundoku.book"
}
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
kotlinOptions.languageVersion = "1.6"
kotlinOptions.freeCompilerArgs = listOf(
"-Xopt-in=kotlin.RequiresOptIn",
"-Xuse-experimental=org.jetbrains.kotlinx.serialization.ExperimentalSerializationApi"
)
}
tasks.withType<ShadowJar> {
classifier = null
}