forked from Xiao-MoMi/Custom-Crops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (68 loc) · 3.51 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
group = 'net.momirealms'
version = '3.2.5.0'
repositories {
mavenCentral()
maven {name = "enginehub repo"; url = "https://maven.enginehub.org/repo/"}
maven {name = "aliyun repo"; url = "https://maven.aliyun.com/repository/public/"}
maven {name = 'papermc repo'; url = 'https://papermc.io/repo/repository/maven-public/'}
maven {name = 'sonatype'; url = 'https://oss.sonatype.org/content/groups/public/'}
maven {name = "dmulloy2 repo"; url = "https://repo.dmulloy2.net/repository/public/"}
maven {name = "clip repo"; url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'}
maven {name = "codemc repo"; url = "https://repo.codemc.org/repository/maven-public/"}
maven {name = "Lumine repo"; url = "https://mvn.lumine.io/repository/maven-public"}
maven {name = "jitpack repo"; url = "https://jitpack.io"}
maven {name = 'bg-software repo'; url = 'https://repo.bg-software.com/repository/api/'}
maven {name = 'aswm repo'; url = 'https://repo.infernalsuite.com/repository/maven-snapshots/' }
maven {name = 'aswm repo'; url = 'https://repo.rapture.pw/repository/maven-releases/' }
maven {name = 'mmo-repo'; url = 'https://nexus.phoenixdevt.fr/repository/maven-public/'}
}
dependencies {
compileOnly ('dev.dejvokep:boosted-yaml:1.3.1')
compileOnly ('commons-io:commons-io:2.11.0')
compileOnly ('io.papermc.paper:paper-api:1.20-R0.1-SNAPSHOT')
compileOnly ('me.clip:placeholderapi:2.11.3')
compileOnly ('com.github.LoneDev6:api-itemsadder:3.4.1e')
compileOnly('com.github.oraxen:oraxen:1.157.2')
compileOnly ('io.lumine:Mythic-Dist:5.0.3-SNAPSHOT')
compileOnly ('com.willfp:eco:6.60.0')
compileOnly ('com.willfp:EcoJobs:3.13.0')
compileOnly ('net.objecthunter:exp4j:0.4.8')
compileOnly ('io.lumine:Mythic-Dist:5.2.1')
compileOnly ('com.infernalsuite.aswm:api:1.19.4-R0.1-SNAPSHOT')
compileOnly ('net.Indyuce:MMOItems-API:6.9.2-SNAPSHOT')
compileOnly ('com.google.code.gson:gson:2.10.1')
compileOnly fileTree (dir:'libs',includes:['*.jar'])
implementation ('net.kyori:adventure-api:4.14.0')
implementation ('net.kyori:adventure-platform-bukkit:4.3.0')
implementation ('net.kyori:adventure-text-minimessage:4.14.0')
implementation ("de.tr7zw:item-nbt-api:2.11.3")
implementation ('org.bstats:bstats-bukkit:3.0.1')
implementation fileTree (dir:'libs',includes:['BiomeAPI.jar','ProtectionLib.jar'])
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching(['paper-plugin.yml', 'plugin.yml']) {
expand props
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}
shadowJar {
relocate ('de.tr7zw', 'net.momirealms.customcrops.libraries.tr7zw')
relocate ('net.kyori', 'net.momirealms.customcrops.libraries.kyori')
relocate ('org.bstats', 'net.momirealms.customcrops.libraries.bstats')
relocate ('org.apache.commons.pool2', 'net.momirealms.customcrops.libraries.commons.pool2')
relocate ('net.momirealms.biomeapi', 'net.momirealms.customcrops.libraries.biomeapi')
relocate ('net.momirealms.protectionlib', 'net.momirealms.customcrops.libraries.protectionlib')
}
tasks.register("delete", Delete).get().delete("build/libs/"+project.name+"-"+project.version+".jar")
tasks.named("build").get().dependsOn("shadowJar").finalizedBy("delete").doLast {
println("Deleting: "+ "build/libs/"+project.name+"-"+project.version+".jar")
}