This repository has been archived by the owner on May 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
/
build.gradle
114 lines (104 loc) · 2.61 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
111
112
113
114
import org.apache.tools.ant.filters.*
buildscript
{
repositories
{
jcenter()
maven
{
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven
{
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies
{
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
}
}
repositories
{
// Spigot
maven
{
url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
}
maven
{
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
// ProtocolLib
maven
{
url "http://repo.dmulloy2.net/content/groups/public/"
}
// Vault
maven
{
url "http://nexus.hc.to/content/repositories/pub_releases"
}
// jOhm
maven
{
url "https://raw.githubusercontent.com/Dasfaust/johm/mvn-repo/"
}
}
apply plugin: 'java'
apply plugin: 'forge'
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext.env = System.getenv()
ext.build = env.BUILD_NUMBER
if (ext.build == null)
{
build = "dev"
}
version = "2.0.1." + build
group = "me.dasfaust.gm"
minecraft
{
version = "1.7.10-10.13.2.1236"
//runDir = "run"
//mappings = "snapshot_20161111"
srgExtra "PK: redis/clients/jedis lib/jedis/jedis"
srgExtra "PK: redis/clients/util lib/jedis/util"
}
configurations
{
shade
compile.extendsFrom shade
}
dependencies
{
compile group: 'org.bukkit', name: 'bukkit', version: '1.11-R0.1-SNAPSHOT'
compile group: 'org.spigotmc', name: 'spigot-api', version: '1.11-R0.1-SNAPSHOT'
compile group: 'net.milkbowl.vault', name: 'Vault', version: '1.5.6'
compile group: 'com.comphenix.protocol', name: 'ProtocolLib', version: '4.1.0'
shade group: 'org.apache.commons', name: 'commons-io', version: '1.3.2'
shade group: 'redis.clients', name: 'jedis', version: '2.7.2'
shade group: 'redis', name: 'johm', version: '0.6.3'
shade group: 'org.apache.commons', name: 'commons-pool2', version: '2.4.1'
shade group: 'commons-codec', name: 'commons-codec', version: '1.10'
// Packaging this because CraftBukkit's package changed from 1.7 -> 1.8
shade group: 'com.google.code.gson', name: 'gson', version: '2.3.1'
//compile group: 'org.hsqldb', name: 'hsqldb', version: '2.3.2'
}
jar
{
configurations.shade.each { dep ->
from(project.zipTree(dep))
{
exclude 'META-INF', 'META-INF/**', 'junit/**', '**.txt', 'org/junit/**', 'org/hamcrest/**'
}
}
}
processResources
{
filter ReplaceTokens, tokens: [
"version": project.version
]
}