-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
70 lines (56 loc) · 1.76 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
67
68
69
plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'java'
id 'base'
}
group = 'de.stamme'
version = '0.5'
base {
archivesName = "BasicQuests"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral()
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://oss.sonatype.org/content/groups/public/' }
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url = 'https://repo.minebench.de/' }
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.20.4-R0.1-SNAPSHOT'
compileOnly 'com.github.MilkBowl:VaultAPI:1.7'
compileOnly 'me.clip:placeholderapi:2.11.5'
compileOnly 'org.jetbrains:annotations:24.0.1'
implementation 'de.themoep:minedown:1.7.0-SNAPSHOT'
implementation 'org.bstats:bstats-bukkit:3.0.0'
implementation 'fr.mrmicky:fastboard:2.0.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testImplementation 'org.mockito:mockito-core:4.6.1'
testImplementation 'org.powermock:powermock-mockito-release-full:1.6.4'
}
shadowJar {
archiveClassifier.set(null)
destinationDirectory = file(devServerPathPaper20_4)
relocate 'org.bstats', 'de.stamme.basicquests.lib.bstats'
relocate 'fr.mrmicky.fastboard', 'de.stamme.basicquests.lib.fastboard'
relocate 'de.themoep.minedown', 'de.stamme.basicquests.lib.minedown'
}
configurations {
testImplementation.extendsFrom compileOnly
}
test {
// useJUnitPlatform()
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
build.dependsOn shadowJar