-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
76 lines (63 loc) · 1.92 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
70
71
72
73
74
75
76
plugins {
id "java"
id "com.github.johnrengelman.shadow" version "7.1.2"
}
group "io.github.rothes.actionbarmessager"
version "1.4.4"
repositories {
mavenCentral()
maven {
url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
}
maven {
url = "https://oss.sonatype.org/content/repositories/snapshots"
}
maven {
url = "https://repo.extendedclip.com/content/repositories/placeholderapi/"
}
maven {
url = "https://repo.dmulloy2.net/repository/public/"
}
maven {
url = "https://jitpack.io"
}
}
dependencies {
compileOnly(project(":FoliaWrapper")) // Works only when targetCompatibility is set to Java17
compileOnly(files(projectDir.path + '/libs/folia-wrapper.jar')) // Created when Folia-Wrapper is built
compileOnly("org.jetbrains:annotations:23.0.0")
compileOnly("org.spigotmc:spigot-api:1.21.3-R0.1-SNAPSHOT")
compileOnly("me.clip:placeholderapi:2.11.6")
compileOnly("com.comphenix.protocol:ProtocolLib:5.3.0")
implementation("org.bstats:bstats-bukkit:3.0.0")
implementation("org.apache.commons:commons-lang3:3.12.0")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
compileJava {
options.encoding = "UTF-8"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
processResources {
HashMap map = new HashMap()
map.put("projectVersionString", project.version)
expand(map)
}
shadowJar {
relocate("org.bstats", "io.github.rothes.actionbarmessager.libs.org.bstats")
String fileName = "ActionBarMessager-" + project.version + ".jar"
archiveFileName.set(fileName)
minimize()
}
test {
useJUnitPlatform()
}
gradle.buildFinished {
new File(project.buildDir, "resources/").deleteDir()
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}