-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
67 lines (57 loc) · 1.65 KB
/
build.gradle
File metadata and controls
67 lines (57 loc) · 1.65 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
plugins {
id 'java'
id 'idea'
id 'com.github.johnrengelman.shadow' version '5.2.0'
}
group 'at.helpch'
version '1.1.2'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url = 'https://repo.piggypiglet.me/repository/maven-releases/'
content {
includeGroup 'me.piggypiglet'
}
}
maven {
url = 'https://repo.codemc.org/repository/maven-public'
}
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
url = 'https://oss.sonatype.org/content/repositories/snapshots'
}
}
dependencies {
compile 'me.piggypiglet:framework-bukkit:1.8.21'
compile 'org.bstats:bstats-bukkit:1.5'
compileOnly 'fr.xephi:authme:5.6.0-SNAPSHOT'
compileOnly 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT'
}
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
shadowJar {
doLast {
['1.12', '1.13', '1.14', '1.15', '1.16'].each{dest ->
copy {
from "build/libs/bukkit-forced-hosts-${project.version}-all.jar"
into "spigot/${dest}/plugins"
}
}
}
relocate 'org.bstats', 'at.helpch.bukkitforcedhosts.bstats'
relocate 'me.piggypiglet.framework', 'at.helpch.bukkitforcedhosts.framework'
}
clean {
delete fileTree('spigot/') {
include '**/bukkit-forced-hosts*.jar'
include '**/plugins/BukkitForcedHosts/*'
}
}
compileJava.options.encoding = 'UTF-8'