-
Notifications
You must be signed in to change notification settings - Fork 49
/
build.gradle.kts
63 lines (52 loc) · 1.84 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
plugins {
java
id("com.github.johnrengelman.shadow") version("8.1.1")
id("com.github.ben-manes.versions") version "0.48.0"
}
// Change to true when releasing
val release = false
val majorVersion = "1.14.1"
val minorVersion = if (release) "Release" else "DEV-" + System.getenv("BUILD_NUMBER")
group = "com.extendedclip"
version = "$majorVersion-$minorVersion"
repositories {
mavenCentral()
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://repo.glaremasters.me/repository/public/")
maven("https://nexus.phoenixdevt.fr/repository/maven-public/")
maven("https://jitpack.io")
}
dependencies {
compileOnly(libs.spigot)
compileOnly(libs.vault)
compileOnly(libs.authlib)
compileOnly(libs.headdb)
compileOnly(libs.itemsadder)
compileOnly(libs.oraxen)
compileOnly(libs.mythiclib)
compileOnly(libs.mmoitems)
compileOnly(libs.score)
compileOnly(libs.papi)
implementation(libs.nashorn)
implementation(libs.adventure.platform)
implementation(libs.adventure.minimessage)
compileOnly("org.jetbrains:annotations:23.0.0")
}
tasks {
shadowJar {
relocate("org.objectweb.asm", "com.extendedclip.deluxemenus.libs.asm")
relocate("org.openjdk.nashorn", "com.extendedclip.deluxemenus.libs.nashorn")
relocate("net.kyori", "com.extendedclip.deluxemenus.libs.adventure")
archiveFileName.set("DeluxeMenus-${rootProject.version}.jar")
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
processResources {
filesMatching("plugin.yml") {
expand("version" to rootProject.version)
}
}
}