forked from Navoei/CustomDiscs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
72 lines (57 loc) · 2.33 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
plugins {
id 'java'
id "com.gradleup.shadow" version "8.3.5"
}
sourceCompatibility = JavaLanguageVersion.of(java_version as int)
targetCompatibility = JavaLanguageVersion.of(java_version as int)
archivesBaseName = archives_base_name
version = plugin_version
group = maven_group
processResources {
filesMatching("plugin.yml") {
expand "plugin_version": plugin_version,
"bukkit_api_version": bukkit_api_version
}
}
dependencies {
implementation("com.googlecode.soundlibs:mp3spi:${mp3spi_version}") {
exclude group: 'junit', module: 'junit'
}
shadow("com.googlecode.soundlibs:mp3spi:${mp3spi_version}") {
exclude group: 'junit', module: 'junit'
}
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'org.jflac:jflac-codec:1.5.2'
shadow 'org.jflac:jflac-codec:1.5.2'
// To use this dependency, you need to compile bukkit by yourself
// See https://www.spigotmc.org/wiki/buildtools/
// implementation "org.bukkit:craftbukkit:${bukkit_version}"
// Use this dependency if you don't want to compile bukkit
implementation "io.papermc.paper:paper-api:${bukkit_version}"
implementation "de.maxhenkel.voicechat:voicechat-api:${voicechat_api_version}"
shadow "dev.jorel:commandapi-bukkit-shade:${command_api_version}"
compileOnly group: "com.comphenix.protocol", name: "ProtocolLib", version: "5.1.0";
}
repositories {
mavenCentral()
maven { url "https://repo.dmulloy2.net/repository/public/" }
maven {
name = "henkelmax.public"
url = 'https://maven.maxhenkel.de/repository/public'
}
// You need this maven repository if you want to use the paper dependency
maven {
url = uri("https://papermc.io/repo/repository/maven-public/")
}
maven { url "https://repo.dmulloy2.net/repository/public/" }
maven { url = "https://repo.codemc.org/repository/maven-public/" }
mavenLocal()
}
shadowJar {
configurations = [project.configurations.shadow]
archiveClassifier.set("dev")
//relocate 'javazoom', "me.navoei.${mod_id}.javazoom"
//relocate 'org.tritonus', "me.navoei.${mod_id}.tritonus"
// By documentation, it was recommented to relocate to not cause issues with other plugins that shade CommandAPI
relocate("dev.jorel.commandapi", "me.navoei.${mod_id}.commandapi")
}