-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
67 lines (55 loc) · 1.83 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 com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import xyz.jpenilla.runpaper.task.RunServer
plugins {
id("java-library")
id("com.gradleup.shadow") version "9.0.0-beta4"
id("de.eldoria.plugin-yml.bukkit") version "0.6.0"
id("xyz.jpenilla.run-paper") version "2.3.1"
}
group = "dev.portero.atlas"
version = "0.0.1-DEV"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
repositories {
maven {
name = "PaperMC"
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
name = "Panda-Lang"
url = uri("https://repo.panda-lang.org/releases")
}
mavenCentral()
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
implementation("org.jetbrains:annotations:24.0.0")
implementation("dev.rollczi:litecommands-bukkit:3.9.6")
implementation("dev.rollczi:litecommands-adventure:3.9.6")
implementation("dev.triumphteam:triumph-gui:3.1.11")
compileOnly("org.projectlombok:lombok:1.18.36")
annotationProcessor("org.projectlombok:lombok:1.18.36")
}
bukkit {
main = "dev.portero.atlas.AtlasPlugin"
version = project.version.toString()
apiVersion = "1.21.4"
description = "A simple plugin to test the new Paper API."
website = "https://joshua.portero.dev/"
authors = listOf("Portero")
}
tasks.withType<JavaCompile> {
options.compilerArgs.addAll(listOf("-Xlint:unchecked", "-Xlint:deprecation", "-parameters"))
options.encoding = "UTF-8"
}
tasks.withType<ShadowJar> {
archiveBaseName.set("Atlas-${project.version}")
archiveVersion.set("")
archiveClassifier.set("")
relocate("dev.rollczi.litecommands", "dev.portero.atlas.commands")
relocate("dev.triumphteam.gui", "dev.portero.atlas.gui")
}
tasks.withType<RunServer> {
minecraftVersion("1.21.4")
}