forked from getplusm/TheDungeons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
136 lines (110 loc) · 4.01 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
plugins {
id 'java'
id "com.github.johnrengelman.shadow" version "7.1.2"
}
group = 'plazmer'
version = '3.0.1'
repositories {
mavenLocal()
mavenCentral()
maven {
name = "papermc-repo"
url = "https://repo.papermc.io/repository/maven-public/"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/groups/public/"
}
// Spigot API * start
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
// As of Gradle 5.1, you can limit this to only those
// dependencies you expect from it
content {
includeGroup 'org.bukkit'
includeGroup 'org.spigotmc'
}
}
maven { url "https://repo.dmulloy2.net/repository/public/" }
// Spigot API * end
// Holographic Displays
maven { url = 'https://repo.codemc.io/repository/maven-public/' }
//WorldGuard API
maven { url = 'https://maven.enginehub.org/repo/' }
// PAPI
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url = 'https://jitpack.io' }
maven { url = 'https://libraries.minecraft.net/' }
maven { url = 'https://nexus.phoenixdevt.fr/repository/maven-public/' }
// griefdefender
maven { url = 'https://repo.glaremasters.me/repository/bloodshot' }
// PaF
maven { url = 'https://simonsator.de/repo/' }
// towny
maven { url = 'https://repo.glaremasters.me/repository/towny/' }
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.20.1-R0.1-SNAPSHOT'
implementation "io.papermc:paperlib:1.0.7"
// worldedit
compileOnly 'com.sk89q.worldedit:worldedit-bukkit:7.2.15-SNAPSHOT'
compileOnly 'com.sk89q.worldedit:worldedit-core:7.2.15-SNAPSHOT'
// party
compileOnly 'de.simonsator:spigot-party-api-for-party-and-friends:1.0.7-RELEASE'
compileOnly 'de.simonsator:Party-and-Friends-MySQL-Edition-Spigot-API:1.5.4-RELEASE'
// regions
compileOnly 'com.palmergames.bukkit.towny:towny:0.100.0.0'
compileOnly group: 'com.griefdefender', name: 'api', version: '2.1.0-SNAPSHOT'
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.2-SNAPSHOT'
compileOnly 'com.github.cryptomorin:kingdoms:1.16.8.1.1'
compileOnly 'com.github.getplusm:ProtectionBlocks:1.0.7'
compileOnly 'com.github.TechFortress:GriefPrevention:16.18'
compileOnly 'com.github.angeschossen:LandsAPI:6.33.10'
// holo
compileOnly 'me.filoghost.holographicdisplays:holographicdisplays-api:3.0.0'
compileOnly 'com.github.decentsoftware-eu:decentholograms:2.8.3'
compileOnly 'com.github.LoneDev6:API-ItemsAdder:3.5.0b'
compileOnly 'net.Indyuce:MMOItems-API:6.9.2-SNAPSHOT'
compileOnly 'io.lumine:MythicLib-dist:1.5.2-SNAPSHOT'
// PAPI
compileOnly 'me.clip:placeholderapi:2.11.3'
compileOnly 'com.mojang:authlib:1.5.21'
// LP
compileOnly 'net.luckperms:api:5.4'
// Vault
compileOnly 'com.github.MilkBowl:VaultAPI:1.7'
// Engine
compileOnly 'com.github.getplusm:PLAZMER-ENGINE:2.4.6'
// Libs
compileOnly 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'org.projectlombok:lombok:1.18.22'
}
def targetJavaVersion = 17
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}
tasks.withType(JavaCompile).configureEach {
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release = targetJavaVersion
}
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
shadowJar {
relocate "io.papermc.lib", "t.me.p1azmer.libs.paperlib"
archivesBaseName = "TheDungeons"
archiveClassifier.set ""
destinationDirectory.set(rootProject.buildDir)
}
assemble.dependsOn(shadowJar)