-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
71 lines (59 loc) · 1.44 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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
`java-library`
`maven-publish`
id("io.github.goooler.shadow") version "8.1.5" // Use fork until shadow has updated to Java 21
}
repositories {
mavenLocal()
maven {
url = uri("https://papermc.io/repo/repository/maven-public/")
}
maven {
url = uri("https://oss.sonatype.org/content/groups/public/")
}
maven {
url = uri("https://erethon.de/repo/")
}
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT")
implementation("de.erethon:bedrock:1.4.0") {
exclude(group = "org.inventivetalent.spiget-update", "bukkit")
}
}
group = "de.fyreum"
version = "1.3-SNAPSHOT"
description = "ItemizerXS"
java.sourceCompatibility = JavaVersion.VERSION_21
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
tasks {
jar {
manifest {
attributes(
"paperweight-mappings-namespace" to "mojang"
)
}
}
shadowJar {
dependencies {
include(dependency("de.erethon:bedrock:1.4.0"))
}
relocate("de.erethon.bedrock", "de.erethon.questsxl.bedrock")
}
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc>() {
options.encoding = "UTF-8"
}