This repository has been archived by the owner on Sep 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
72 lines (56 loc) · 2.15 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
apply plugin: 'java'
apply plugin: 'maven'
group = 'net.techguard'
description = "This plugin allow you to setup custom zones for example shops, pvp areas or spawn."
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
buildscript {
repositories {
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:1.2.4"
}
}
repositories {
maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
maven { url "http://nexus.hc.to/content/repositories/pub_releases/" }
maven { url "https://jitpack.io" }
maven { url "http://repo.maven.apache.org/maven2" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
compile group: 'com.github.InventivetalentDev', name: 'ReflectionHelper', version:'395cfea950'
compile group: 'com.github.InventivetalentDev', name: 'ParticleAPI', version:'65b701708a'
compile group: 'com.github.TryHardDood', name: 'BossBarAPI', version:'dafa36593c'
compile group: 'org.spigotmc', name: 'spigot-api', version:'1.11.2-R0.1-SNAPSHOT'
compile group: 'net.milkbowl.vault', name: 'VaultAPI', version:'1.6'
compile group: 'net.milkbowl.vault', name: 'Vault', version:'1.6.6'
}
apply plugin: "com.github.johnrengelman.shadow"
shadowJar {
archiveName = "${baseName}.${extension}"
dependencies {
include(dependency('com.github.InventivetalentDev:ReflectionHelper'))
include(dependency('com.github.InventivetalentDev:ParticleAPI'))
include(dependency('com.github.TryHardDood:BossBarAPI'))
}
relocate 'org.inventivetalent.bossbar', 'net.techguard.izone.Utils.BossBarAPI'
relocate 'org.inventivetalent.particle', 'net.techguard.izone.Utils.ParticleAPI'
relocate 'org.inventivetalent.reflection', 'net.techguard.izone.Utils.ReflectionHelper'
}
task copyFile(type: Copy) {
from('build/libs')
into('target')
include('iZone.jar')
}
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
assemble.dependsOn(shadowJar)
assemble.finalizedBy(copyFile)