-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
98 lines (81 loc) · 3.36 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
apply plugin: "java"
apply plugin: "maven"
apply plugin: "com.github.johnrengelman.shadow"
compileJava.options.encoding = "UTF-8"
// Currently we target Java 1.8
sourceCompatibility = 1.8
targetCompatibility = 1.8
allprojects {
version = "1.5.0-SNAPSHOT"
group = "net.redstoneore"
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:1.2.4"
}
}
repositories {
mavenCentral()
maven { url "http://nexus.hc.to/content/repositories/pub_releases" }
maven { url "http://repo.ess3.net/content/groups/essentials" }
maven { url "https://hub.spigotmc.org/nexus/content/groups/public/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://maven.sk89q.com/repo/" }
maven { url "http://repo.mikeprimm.com/" }
maven { url "http://repo.mvdw-software.be/content/groups/public" }
maven { url "http://repo.extendedclip.com/content/repositories/placeholderapi/" }
}
dependencies {
compile group: "com.google.code.gson", name: "gson", version: "2.8.1";
compile group: "com.fasterxml.jackson.core", name: "jackson-databind", version: "2.9.1";
compile group: "org.msgpack", name: "jackson-dataformat-msgpack", version: "0.7.1";
compile group: "com.zaxxer", name: "HikariCP", version: "2.7.0";
compile group: "org.slf4j", name: "slf4j-api", version: "1.7.13";
compile group: "org.slf4j", name: "slf4j-simple", version: "1.7.13";
compile group: "info.picocli", name: "picocli", version: "0.9.8"
compileOnly group: "com.github.ben-manes.caffeine", name: "caffeine", version: "2.5.5"
compile group: "org.jasypt", name: "jasypt", version: "1.9.2"
compileOnly group: "org.spigotmc", name: "spigot-api", version: "1.12.1-R0.1-SNAPSHOT";
compileOnly group: "net.milkbowl.vault", name: "VaultAPI", version: "1.6";
compileOnly group: "com.sk89q", name: "worldguard", version: "6.1.1-SNAPSHOT";
compileOnly group: "com.sk89q.worldedit", name: "worldedit-bukkit", version: "6.1.1-SNAPSHOT";
compileOnly group: "net.ess3", name: "Essentials", version: "2.13-SNAPSHOT";
compileOnly group: "net.ess3", name: "EssentialsChat", version: "2.13-SNAPSHOT";
compileOnly group: "be.maximvdw", name: "MVdWPlaceholderAPI", version: "1.0.2-SNAPSHOT";
compileOnly group: "me.clip", name: "placeholderapi", version: "2.8.2";
compileOnly group: "org.dynmap", name: "dynmap", version: "2.0";
compileOnly files("lib/PlayerVaults.jar")
compileOnly files("lib/VentureChat.jar")
compileOnly files("lib/HolographicDisplays.jar")
compileOnly files("lib/ChatEx.jar")
compileOnly files("lib/HeroChat.jar")
compileOnly files("lib/LegendChat.jar")
compileOnly files("lib/Skript.jar")
compileOnly files("lib/Conquer/AddonCore.jar")
compileOnly files("lib/Conquer/Conquer-API.jar")
}
jar {
manifest {
attributes(
"Class-Path": configurations.compile.collect { it.getName() }.join(" "),
"Main-Class": "net.redstoneore.legacyfactions.cli.FactionsCLI"
)
}
}
processResources {
// This will ensure that this task is redone when the versions change.
inputs.property "version", project.version
// Replace stuff in plugin.yml, nothing else
from (sourceSets.main.resources.srcDirs) {
include "plugin.yml"
// Replace version
expand "version": project.version
}
// Copy everything else that is not the plugin.yml
from (sourceSets.main.resources.srcDirs) {
exclude "plugin.yml"
}
}