-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
66 lines (54 loc) · 1.56 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
59
60
61
62
63
64
65
66
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id "maven-publish"
id "com.github.johnrengelman.shadow" version "6.1.0"
}
group = "dev.joshuagordon"
version = "1.5"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
ext {
base = "dev.joshuagordon.myvanish.libs"
}
repositories {
maven {
url = 'https://papermc.io/repo/repository/maven-public/'
}
maven {
name = 'sonatype-oss'
url = 'https://oss.sonatype.org/content/repositories/snapshots/'
}
maven {
url = "https://repo.maven.apache.org/maven2/"
}
maven {
url = "https://mvnrepository.com/artifact/net.md-5/bungeecord-api"
}
mavenCentral()
mavenLocal()
}
shadowJar {
relocate("net.kyori", "${base}.kyori")
archiveFileName = "MyVanish-${project.version}.jar"
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
implementation 'net.kyori:adventure-text-minimessage:4.0.0-SNAPSHOT'
implementation 'net.kyori:adventure-platform-bukkit:4.0.0-SNAPSHOT'
compileOnly 'com.destroystokyo.paper:paper-api:1.16.4-R0.1-SNAPSHOT'
compileOnly 'net.md-5:bungeecord-api:1.16-R0.3'
}
test {
useJUnitPlatform()
}
sourceSets {
test.compileClasspath += configurations.compileOnly
test.runtimeClasspath += configurations.compileOnly
}
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}