-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
92 lines (82 loc) · 2.38 KB
/
build.gradle.kts
File metadata and controls
92 lines (82 loc) · 2.38 KB
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
plugins {
id("java")
id("maven-publish")
id("com.gradleup.shadow") version "9.1.0"
}
group = "net.plexverse"
version = "1.2.0"
repositories {
mavenLocal()
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
url = uri("https://repo.opencollab.dev/main/")
}
maven {
url = uri("https://s01.oss.sonatype.org/content/groups/public/")
}
maven {
url = uri("https://repo.codemc.io/repository/maven-public/")
}
maven {
url = uri("https://repo.dmulloy2.net/repository/public/")
}
maven {
url = uri("https://repo.md-5.net/content/groups/public/")
}
maven {
url = uri("https://mvn.lumine.io/repository/maven-public/")
}
maven {
url = uri("https://jitpack.io")
}
maven {
url = uri("https://repo.xenondevs.xyz/releases")
}
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
implementation("xyz.xenondevs.invui:invui:2.0.0-alpha.15")
implementation("com.google.code.gson:gson:2.10.1")
compileOnly("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.30")
implementation("com.oop:memory-store:4.0")
implementation("com.fasterxml.jackson.core:jackson-core:2.15.2")
implementation("com.fasterxml.jackson.core:jackson-databind:2.15.2")
implementation("commons-io:commons-io:2.15.1")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
sourceSets {
main {
resources {
srcDir("src/main/resources")
}
}
}
tasks.named<Copy>("processResources") {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
filesMatching("plugin.yml") {
filter { line ->
line.replace("@version@", project.version.toString())
}
}
}
tasks.named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
archiveBaseName.set("map-parser")
archiveVersion.set("${project.version}")
archiveClassifier.set("")
mergeServiceFiles()
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
// Include all dependencies - Paper's reflection rewriter will handle NMS access
configurations = listOf(project.configurations.getByName("runtimeClasspath"))
}
// Make shadowJar the default jar
tasks.named<Jar>("jar") {
enabled = false
}
tasks.build {
dependsOn("shadowJar")
}