-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
110 lines (100 loc) · 3.13 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
import io.papermc.paperweight.userdev.ReobfArtifactConfiguration
plugins {
id("io.github.goooler.shadow") version "8.1.8"
id 'java-library'
id 'idea'
id("io.papermc.paperweight.userdev") version "1.7.1"
}
group = pluginGroup
version = pluginVersion
compileJava {
options.release.set(21)
}
repositories {
mavenCentral()
maven {
name = 'papermc'
url = 'https://repo.papermc.io/repository/maven-public/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven {
// Vault
url = 'https://jitpack.io'
}
maven {
// PlayerPoints
url = 'https://repo.rosewooddev.io/repository/public/'
}
maven { url = "https://repo.aikar.co/content/groups/aikar/" }
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven {
name = 'minecraft-repo'
url = 'https://libraries.minecraft.net/'
}
maven { url = "https://repo.codemc.io/repository/maven-public/" }
mavenLocal()
}
compileJava {
options.compilerArgs += ["-parameters"]
}
paperweight.reobfArtifactConfiguration = ReobfArtifactConfiguration.getMOJANG_PRODUCTION()
dependencies {
// Paper API
// compileOnly 'io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT'
paperweight.paperDevBundle("1.21-R0.1-SNAPSHOT")
// Mojang AuthLib
compileOnly('com.mojang:authlib:1.5.21') {
transitive = false
}
// LuckPerms
compileOnly 'net.luckperms:api:5.4'
// SmartInventory API
api(group: 'fr.minuskube.inv', name: 'smart-invs', version: '1.2.7') {
transitive = false
}
// Economy
compileOnly("com.github.MilkBowl:VaultAPI:1.7") {
transitive = false
}
// Commands
api 'co.aikar:acf-paper:0.5.1-SNAPSHOT'
// PlayerPoints
compileOnly('org.black_ixx:playerpoints:3.1.0') {
transitive = false
}
// Placeholders
compileOnly 'me.clip:placeholderapi:2.10.3'
// QuickShop
compileOnly('com.ghostchu:quickshop-api:6.2.0.0')
compileOnly('com.ghostchu:quickshop-bukkit:6.2.0.0')
compileOnly('com.ghostchu:simplereloadlib:1.+')
// PaperLib
implementation "io.papermc:paperlib:1.0.7"
// Annotations
compileOnly 'org.jetbrains:annotations:22.0.0'
// bStats
// implementation "org.bstats:bstats-bukkit:3.0.0"
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
tasks.shadowJar {
relocate 'fr.minuskube.inv', 'com.jacky8399.worstshop.inv'
relocate 'co.aikar.commands', 'com.jacky8399.worstshop.acf'
relocate 'co.aikar.locales', 'com.jacky8399.worstshop.acf.locales'
//relocate 'co.aikar.minecraft-timings', 'com.jacky8399.worstshop.acf.minecraft-timings'
relocate 'co.aikar.util', 'com.jacky8399.worstshop.acf.util'
relocate 'net.jodah.expiringmap', 'com.jacky8399.worstshop.acf.expiringmap'
relocate "io.papermc.lib", "com.jacky8399.worstshop.paperlib"
// relocate "org.bstats", "com.jacky8399.worstshop.bstats"
minimize()
}
build.dependsOn shadowJar