-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
78 lines (64 loc) · 2.41 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
plugins {
`java-library`
`maven-publish`
id("com.gradleup.shadow") version "8.3.5"
kotlin("jvm")
}
group = "dev.oribuin"
version = "1.0"
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
disableAutoTargetJvm()
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
repositories {
mavenCentral()
mavenLocal()
maven("https://repo.rosewooddev.io/repository/public/")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://repo.codemc.org/repository/maven-public")
maven("https://nexus.neetgames.com/repository/maven-snapshots/")
maven("https://jitpack.io")
}
dependencies {
api(kotlin("stdlib-jdk8"))
api("dev.rosewood:rosegarden:1.4.6")
api("net.objecthunter:exp4j:0.4.8")
api("com.jeff-media:MorePersistentDataTypes:2.4.0")
compileOnly("io.papermc.paper:paper-api:1.21.3-R0.1-SNAPSHOT")
compileOnly("org.jetbrains:annotations:23.0.0")
// External Plugins
compileOnly("me.clip:placeholderapi:2.11.6")
compileOnly("com.github.MilkBowl:VaultAPI:1.7")
compileOnly("com.arcaniax:HeadDatabase-API:1.3.2")
}
tasks {
this.compileJava {
this.options.compilerArgs.add("-parameters")
this.options.isFork = true
this.options.encoding = "UTF-8"
}
this.shadowJar {
this.archiveClassifier.set("")
this.relocate("dev.rosewood.rosegarden", "${project.group}.eternalclaims.libs.rosegarden")
this.relocate("net.objecthunter.exp4j", "${project.group}.eternalclaims.libs.exp4j")
this.relocate("com.jeff_media", "${project.group}.eternalclaims.libs.morepersistentdatatypes")
this.relocate("org.jetbrains", "${project.group}.eternalclaims.libs.jetbrains")
this.relocate("org.intellij", "${project.group}.eternalclaims.libs.intellij")
this.relocate("kotlin", "${project.group}.eternalclaims.libs.kotlin")
// rosegarden should be relocating this
this.relocate("com.zaxxer", "dev.rosewood.rosegarden.libs.hikari")
this.relocate("org.slf4j", "dev.rosewood.rosegarden.libs.slf4j")
}
this.processResources {
this.expand("version" to project.version)
}
this.build {
this.dependsOn(shadowJar)
}
}