-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle
More file actions
103 lines (92 loc) · 2.95 KB
/
build.gradle
File metadata and controls
103 lines (92 loc) · 2.95 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
93
94
95
96
97
98
99
100
101
102
103
plugins {
id 'java'
id 'idea'
id 'maven-publish'
id("com.gradleup.shadow") version "9.0.0-beta13"
}
repositories {
mavenCentral()
maven {
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
}
maven {
url = uri('https://repo.papermc.io/repository/maven-public/')
}
maven {
url = uri('https://oss.sonatype.org/content/groups/public/')
}
maven {
url = uri('https://repo.codemc.org/repository/maven-public/')
}
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
maven {
url = uri('https://redempt.dev')
}
maven {
url = uri('https://jitpack.io')
}
maven {
url = uri('https://repo.extendedclip.com/content/repositories/placeholderapi/')
}
maven {
url = uri('https://hub.jeff-media.com/nexus/repository/jeff-media-public/')
}
}
dependencies {
implementation 'de.tr7zw:item-nbt-api:2.15.5'
implementation 'com.github.Redempt:Crunch:2.0.3'
implementation 'com.github.cryptomorin:XSeries:13.6.0'
implementation 'com.github.Revxrsal.Lamp:common:3.3.6'
implementation 'com.github.Revxrsal.Lamp:bukkit:3.3.6'
implementation 'org.bstats:bstats-bukkit:3.2.1'
implementation 'com.jeff-media:MorePersistentDataTypes:2.4.0'
compileOnly files('libs/folia-api-1.20.4-R0.1-SNAPSHOT.jar') // Modified API jar with Java 8 support
compileOnly 'net.kyori:adventure-api:4.26.1'
compileOnly 'net.kyori:adventure-platform-bukkit:4.4.1'
compileOnly 'org.spigotmc:spigot-api:1.14.4-R0.1-SNAPSHOT'
compileOnly 'org.jetbrains:annotations:26.1.0'
compileOnly 'me.clip:placeholderapi:2.11.6'
}
group = 'me.byteful.plugin'
version = '2.1.1'
description = 'LevelTools'
java.sourceCompatibility = JavaVersion.VERSION_17
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
shadowJar {
minimize()
archiveBaseName.set("LevelTools")
archiveClassifier.set("")
relocate "de.tr7zw.changeme.nbtapi", "me.byteful.plugin.leveltools.libs.nbtapi"
relocate "com.cryptomorin.xseries", "me.byteful.plugin.leveltools.libs.xseries"
relocate "redempt.crunch", "me.byteful.plugin.leveltools.libs.crunch"
relocate 'revxrsal.commands', 'me.byteful.plugin.leveltools.libs.lamp'
relocate 'org.bstats', 'me.byteful.plugin.leveltools.libs.bstats'
relocate 'com.jeff-media.morepersistentdatatypes', 'me.byteful.plugin.leveltools.libs.morepersistentdatatypes'
}
def targetJavaVersion = 8
java {
sourceCompatibility = 17
targetCompatibility = 8
}
tasks.withType(JavaCompile).configureEach {
options.release.set(targetJavaVersion)
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
compileJava { // Preserve parameter names in the bytecode
options.compilerArgs += ["-parameters"]
}