generated from devproje/kotlin-bukkit-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
executable file
·67 lines (52 loc) · 1.63 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.8.21"
id("com.github.johnrengelman.shadow") version "7.1.2"
}
group = property("group")!!
version = property("version")!!
java.toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://hub.spigotmc.org/nexus/content/groups/public/")
maven("https://repo.glaremasters.me/repository/bloodshot/")
maven("https://maven.playpro.com")
}
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
implementation("io.github.monun:kommand-core:3.1.7")
compileOnly("com.griefdefender:api:2.1.0-SNAPSHOT")
compileOnly("net.coreprotect:coreprotect:21.3")
compileOnly("io.papermc.paper:paper-api:1.20.0-R0.1-SNAPSHOT")
}
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = JavaVersion.VERSION_17.toString()
kotlinOptions.javaParameters = true
}
withType<JavaCompile>() {
options.encoding = "UTF-8"
}
withType<Javadoc>() {
options.encoding = "UTF-8"
}
processResources {
filesMatching("plugin.yml") {
expand(project.properties)
}
}
shadowJar {
archiveBaseName.set(rootProject.name)
archiveClassifier.set("")
archiveVersion.set("")
dependencies {
include(dependency("dev.jorel:commandapi-bukkit-shade:9.0.3"))
}
relocate("dev.jorel.commandapi", "dev.groovin.canibuildhere.commandapi")
from(sourceSets["main"].output)
}
}