forked from Vovari2/InteractiveSigns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
81 lines (70 loc) · 3.09 KB
/
build.gradle
File metadata and controls
81 lines (70 loc) · 3.09 KB
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
77
78
79
80
81
plugins {
id 'java'
id 'com.gradleup.shadow' version '8.3.7'
}
group = 'me.vovari2'
version = '1.5.1'
repositories {
mavenCentral()
maven { url = "https://repo.papermc.io/repository/maven-public/"} // Paper
maven { url = "https://maven.enginehub.org/repo/" } // WorldEdit, WorldGuard
maven { url = "https://jitpack.io" } // GriefPrevention, Lands, ChestProtect
maven { url = "https://repo.william278.net/releases/" } // HuskClaims
maven { url = "https://repo.bg-software.com/repository/api/" } // SuperiorSkyblock
maven { url = "https://maven.playpro.com/"} // CoreProtect
// maven { url = "https://maven.addstar.com.au/artifactory/all-releases/"} // Prism
maven { url = "https://repo.glaremasters.me/repository/bloodshot/"} // GriefDefender
maven { url = "https://repo.extendedclip.com/releases/"} // PlaceholderAPI
maven { url = "https://repo.pcgamingfreaks.at/repository/maven-everything/"} // Minepacks
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT")
compileOnly("me.clip:placeholderapi:2.11.7")
compileOnly("net.coreprotect:coreprotect:22.0")
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core")
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit")
implementation("org.bstats:bstats-bukkit:3.1.0")
implementation("com.github.technicallycoded:FoliaLib:0.4.4")
implementation(platform("com.intellectualsites.bom:bom-newest:1.55"))
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.10")
compileOnly("com.github.GriefPrevention:GriefPrevention:16.18.2")
compileOnly("net.william278.huskclaims:huskclaims-bukkit:1.5")
compileOnly("com.bgsoftware:SuperiorSkyblockAPI:2024.4")
// compileOnly("network.darkhelmet:Prism-Api:4.0.0-SNAPSHOT")
compileOnly("com.github.angeschossen:LandsAPI:7.23.1")
compileOnly("com.github.angeschossen:ChestProtectAPI:5.19.16")
compileOnly files("./libs/Residence5.1.6.5.jar")
compileOnly("com.griefdefender:api:2.1.0-SNAPSHOT")
compileOnly("at.pcgamingfreaks:Minepacks-API:2.4.32.4")
compileOnly("cn.lunadeer:DominionAPI:4.7.3")
}
shadowJar {
relocate("com.tcoded.folialib", "me.vovari2.libs.folialib") // FoliaLib
relocate("org.bstats", "me.vovari2.libs.bstats") // bStats
// General
getDestinationDirectory().set(new File("D:\\Minecraft\\Servers\\Paper 1.21.8\\plugins\\"))
archiveFileName = "${project.name}-${project.version}.jar"
}
def targetJavaVersion = 21
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release.set(targetJavaVersion)
}
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}