-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
37 lines (31 loc) · 1005 Bytes
/
build.gradle
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
plugins {
id 'java-library'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
String paperApi = "1.21.1-R0.1-SNAPSHOT"
String buildNumber = System.getenv("BUILD_NUMBER") == null ? "0" : System.getenv("BUILD_NUMBER")
String version = "2.0.$buildNumber"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
repositories {
mavenCentral()
maven { url = uri("https://papermc.io/repo/repository/maven-public/") }
maven { url = uri("https://repo.essentialsx.net/snapshots/") }
maven { url = uri("https://ci.nyaacat.com/maven/") }
maven { url = uri("https://repo.aikar.co/content/groups/aikar/") }
}
dependencies {
compileOnly("io.papermc.paper:paper-api:$paperApi")
compileOnly("cat.nyaa:nyaacore:9.4")
compileOnly("com.squareup.okhttp3:okhttp:4.12.0")
implementation("co.aikar:taskchain-bukkit:3.7.2")
}
build {
shadowJar
}
shadowJar {
archiveBaseName = "ROTA"
archiveVersion = "$version"
archiveClassifier = "shadowed"
}