-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
60 lines (49 loc) · 1.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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import xyz.jpenilla.runpaper.task.RunServer
plugins {
`java-library`
id("com.github.johnrengelman.shadow") version "8.1.1"
// Extra plugins for testing the implementation
id("xyz.jpenilla.run-paper") version "2.1.0"
}
group = "io.github.derechtepilz"
version = "0.0.1-SNAPSHOT"
description = "An API made to create story games for Minecraft servers!"
java.sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
url = uri("https://oss.sonatype.org/content/groups/public/")
}
mavenLocal()
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
compileOnly("io.github.derechtepilz:infinity-api:${project.version}")
implementation("dev.jorel:commandapi-bukkit-shade:9.3.0")
}
tasks.withType<ProcessResources> {
val properties = mapOf(
"version" to project.version
)
inputs.properties(properties)
filteringCharset = "UTF-8"
filesMatching("plugin.yml") {
expand(properties)
}
}
tasks.withType<ShadowJar> {
dependencies {
include(dependency("dev.jorel:commandapi-bukkit-shade:9.3.0"))
}
relocate("dev.jorel.commandapi", "io.github.derechtepilz.commandapi")
minimize()
archiveClassifier = ""
}
tasks.withType<RunServer> {
dependsOn(tasks["shadowJar"])
minecraftVersion("1.20.4")
}