-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
58 lines (47 loc) · 1.39 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id "java"
id "com.github.johnrengelman.shadow" version "7.0.0"
}
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
group = "meteordevelopment"
version = "0.1.3"
repositories {
mavenCentral()
maven {
name = "papermc"
url = "https://papermc.io/repo/repository/maven-public/"
}
maven {
name = "enginehub"
url = "https://maven.enginehub.org/repo/"
}
maven {
name = "jitpack"
url = "https://jitpack.io/"
}
}
dependencies {
compileOnly "io.papermc.paper:paper-api:1.17.1-R0.1-SNAPSHOT"
compileOnly "com.sk89q.worldguard:worldguard-bukkit:7.0.5"
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core:2.3.0") { transitive = false }
compileOnly "net.luckperms:api:5.4"
implementation "org.reflections:reflections:0.10.2"
implementation "com.github.Querz:NBT:5.5"
implementation "io.prometheus:simpleclient:0.16.0"
implementation "io.prometheus:simpleclient_httpserver:0.16.0"
}
processResources {
duplicatesStrategy = DuplicatesStrategy.WARN
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
task copyJar(type: Copy) {
from "build/libs/meteor-pvp-" + version + ".jar"
into "run/plugins"
}
shadowJar {
classifier = ""
}
build.dependsOn shadowJar