forked from Seggan/prospecting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
96 lines (79 loc) · 2.48 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
87
88
89
90
91
92
93
94
95
96
plugins {
idea
kotlin("jvm") version "2.0.0"
kotlin("plugin.serialization") version "2.0.0"
id("com.gradleup.shadow") version "8.3.2"
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
id("xyz.jpenilla.run-paper") version "2.3.0"
}
group = "io.github.seggan"
version = "MODIFIED"
repositories {
mavenCentral()
maven("https://jitpack.io/")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.aikar.co/content/groups/aikar/")
}
dependencies {
library(kotlin("stdlib"))
library("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
library(kotlin("reflect"))
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
compileOnly("io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT")
compileOnly("com.github.Slimefun:Slimefun4:e02a0f61d1")
implementation("io.github.seggan:sf4k:0.8.0")
implementation("org.bstats:bstats-bukkit:3.0.2")
implementation("co.aikar:acf-paper:0.5.1-SNAPSHOT")
}
idea {
module {
isDownloadJavadoc = true
isDownloadSources = true
}
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
compilerOptions {
javaParameters = true
freeCompilerArgs = listOf("-Xjvm-default=all")
}
}
tasks.shadowJar {
mergeServiceFiles()
fun doRelocate(lib: String) {
relocate(lib, "io.github.seggan.prospecting.shadowlibs.$lib")
}
doRelocate("org.bstats")
doRelocate("co.aikar")
doRelocate("io.github.seggan.sf4k")
dependencies {
exclude(dependency("org.jetbrains.kotlin:kotlin-stdlib"))
exclude(dependency("org.jetbrains.kotlin:kotlin-stdlib-jdk8"))
exclude(dependency("org.jetbrains.kotlin:kotlin-stdlib-jdk7"))
exclude(dependency("org.jetbrains.kotlin:kotlin-stdlib-common"))
exclude(dependency("org.jetbrains.kotlin:kotlin-reflect"))
exclude(dependency("org.jetbrains.kotlinx:kotlinx-coroutines-core"))
}
archiveBaseName = rootProject.name
}
bukkit {
name = rootProject.name
main = "io.github.seggan.prospecting.Prospecting"
version = project.version.toString()
author = "Seggan"
apiVersion = "1.20"
depend = listOf("Slimefun")
loadBefore = listOf("Multiverse-Core")
}
tasks.runServer {
downloadPlugins {
url("https://blob.build/dl/Slimefun4/Dev/1156")
url("https://blob.build/dl/SlimeHUD/Dev/3")
hangar("Multiverse-Core", "4.3.13")
}
maxHeapSize = "4G"
minecraftVersion("1.20.6")
}