generated from SatellyteMC/paper-kotlin-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
81 lines (65 loc) · 1.71 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
plugins {
kotlin("jvm") version "1.6.10"
`maven-publish`
id("io.papermc.paperweight.userdev") version "1.3.5"
id("xyz.jpenilla.run-paper") version "1.0.6"
id("net.minecrell.plugin-yml.bukkit") version "0.5.1"
}
group = "com.existencesmp"
version = "1.0.1"
description = "Mini tablist plugin for Existence SMP"
repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://repo.codemc.org/repository/maven-public")
maven("https://jitpack.io")
maven("https://repo.dmulloy2.net/repository/public/")
}
dependencies {
implementation(kotlin("stdlib"))
paperDevBundle("1.19-R0.1-SNAPSHOT")
}
val shade = configurations.create("shade")
shade.extendsFrom(configurations.implementation.get())
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
tasks {
assemble {
dependsOn(reobfJar)
}
javadoc {
options.encoding = "UTF-8"
}
compileJava {
options.encoding = "UTF-8"
}
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
processResources {
filesMatching("*.yml") {
expand(project.properties)
}
}
create<Jar>("sourceJar") {
archiveClassifier.set("source")
from(sourceSets["main"].allSource)
}
jar {
from (shade.map { if (it.isDirectory) it else zipTree(it) })
}
}
bukkit {
name = "Tablist"
description = description
main = "com.existencesmp.tablist.Tablist"
version = version
apiVersion = "1.19"
}
publishing {
publications {
create<MavenPublication>("maven") {
artifactId = "existence-smp-tablist"
from(components["java"])
}
}
}