-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
41 lines (30 loc) · 960 Bytes
/
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
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "7.1.2"
id("net.kyori.blossom") version "1.3.1"
}
group = "pl.szczurowsky.velocityloadbalancer"
version = "1.0"
repositories {
mavenLocal()
maven {
name = "papermc"
url = uri("https://repo.papermc.io/repository/maven-public/")
}
}
dependencies {
compileOnly("com.velocitypowered:velocity-api:3.1.1")
annotationProcessor("com.velocitypowered:velocity-api:3.1.1")
}
blossom {
replaceTokenIn("src/main/java/net/mineworld/sectors/proxy/VelocityBootstrapPlugin.java")
replaceToken("@version@", project.version)
}
tasks.withType <com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
archiveFileName.set("VelocityLoadBalancer v${project.version}.jar")
exclude("org/intellij/lang/annotations/**")
exclude("org/jetbrains/annotations/**")
exclude("META-INF/**")
exclude("javax/**")
mergeServiceFiles()
}