-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathbuild.gradle
More file actions
82 lines (64 loc) · 2.22 KB
/
Copy pathbuild.gradle
File metadata and controls
82 lines (64 loc) · 2.22 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
plugins {
id 'java'
id 'com.gradleup.shadow' version '9.4.1'
}
group = 'tf.tuff'
version = '1.0.1-beta'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}
repositories {
mavenCentral()
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
maven { url = 'https://repo.viaversion.com/everything/' }
maven { url = 'https://repo.codemc.io/repository/maven-releases/' }
maven { url = 'https://repo.codemc.io/repository/maven-snapshots/' }
maven { url = 'https://jitpack.io' }
maven { url = 'https://repo.dmulloy2.net/repository/public/' }
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT'
implementation 'com.github.retrooper:packetevents-spigot:2.12.1'
compileOnly 'com.viaversion:viabackwards:5.3.2'
compileOnly 'com.viaversion:viaversion:5.9.1'
compileOnly 'it.unimi.dsi:fastutil:8.5.16'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
compileOnly 'io.netty:netty-all:4.1.97.Final'
implementation 'org.java-websocket:Java-WebSocket:1.6.0'
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
}
processResources {
filesMatching('plugin.yml') {
expand(
'version': project.version,
'name': project.name
)
}
}
shadowJar {
archiveClassifier.set('')
archiveFileName.set("${project.name}-${project.version}.jar")
relocate 'com.github.retrooper.packetevents', 'tf.tuff.packetevents'
relocate 'io.github.retrooper.packetevents', 'tf.tuff.packetevents'
relocate 'com.fasterxml.jackson', 'tf.tuff.jackson'
relocate 'org.java_websocket', 'tf.tuff.websocket'
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/versions/**'
exclude 'module-info.class'
}
tasks.named('jar') {
enabled = false
}
tasks.named('build') {
dependsOn shadowJar
}