-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
35 lines (30 loc) · 989 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
plugins {
id 'java'
}
def mcVersion = paperApiVersion.substring(0, paperApiVersion.indexOf("-"))
def mcVersionParts = mcVersion.split("\\.")
def protocolLibVersion = (
mcVersionParts.length > 2 &&
mcVersionParts[1] == "21" &&
Integer.parseInt(mcVersionParts[2]) >= 3
) ? '5.4.0': '5.3.0';
group 'in.thekreml'
version "${pluginVersion}-${mcVersion}"
repositories {
mavenCentral()
maven { url 'https://repo.papermc.io/repository/maven-public/' }
maven { url 'https://jitpack.io' }
maven { url "https://repo.dmulloy2.net/repository/public/" }
}
dependencies {
compileOnly "io.papermc.paper:paper-api:${paperApiVersion}"
compileOnly "com.github.MilkBowl:VaultAPI:${vaultApiVersion}"
compileOnly "com.comphenix.protocol:ProtocolLib:${protocolLibVersion}"
}
processResources {
filter {
String line -> line
.replaceAll("\\{pluginVersion}", pluginVersion)
.replaceAll("\\{apiVersion}", mcVersion)
}
}