-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
71 lines (63 loc) · 2.69 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
plugins {
java
id("net.kyori.blossom") version "1.3.0"
id("com.github.johnrengelman.shadow") version "7.0.0"
}
val buildNum = System.getenv("CI_PIPELINE_IID") ?: "dirty"
group = "space.rymiel.secret"
version = "0.2.0-$buildNum"
java {
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
}
repositories {
mavenCentral()
mavenLocal()
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://hub.spigotmc.org/nexus/content/groups/public/")
maven("https://repo.essentialsx.net/releases/")
maven("https://repo.essentialsx.net/snapshots/")
maven("https://nexus.velocitypowered.com/repository/maven-public/")
maven("https://repo.codemc.org/repository/maven-public")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://jitpack.io")
maven("https://mvn.exceptionflug.de/repository/exceptionflug-public/")
}
dependencies {
implementation("cloud.commandframework", "cloud-velocity", "1.6.1")
implementation("cloud.commandframework", "cloud-annotations", "1.6.1")
compileOnly("com.velocitypowered", "velocity-api", "3.0.1")
compileOnly("com.velocitypowered", "velocity-proxy", "3.0.1")
annotationProcessor("com.velocitypowered", "velocity-api", "3.0.1")
implementation("net.kyori", "adventure-text-minimessage", "4.2.0-SNAPSHOT") {
isTransitive = false
}
implementation("org.spongepowered", "configurate-hocon", "4.1.2")
}
blossom {
replaceTokenIn("src/main/java/space/rymiel/secret/velocity/SecretVelocity.java")
replaceToken("@version@", rootProject.version)
}
tasks {
shadowJar {
dependencies {
exclude(dependency("com.google.guava:"))
exclude(dependency("com.google.errorprone:"))
exclude(dependency("org.checkerframework:"))
exclude(dependency("org.jetbrains:"))
exclude(dependency("org.intellij:"))
}
relocate("cloud.commandframework", "${rootProject.group}.shade.cloud")
relocate("io.leangen.geantyref", "${rootProject.group}.shade.typetoken")
relocate("net.kyori.adventure.text.minimessage", "${rootProject.group}.shade.minimessage")
relocate("org.spongepowered.configurate", "${rootProject.group}.shade.configurate")
relocate("com.typesafe.config", "${rootProject.group}.shade.hocon")
archiveClassifier.set(null as String?)
destinationDirectory.set(rootProject.tasks.shadowJar.get().destinationDirectory.get())
}
build {
dependsOn(shadowJar)
}
}