forked from SpongePowered/Sponge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (60 loc) · 2.12 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
// Gradle plugins
buildscript {
repositories {
jcenter()
maven {
name = 'forge'
url = 'http://files.minecraftforge.net/maven'
}
maven {
name = 'minecrell'
url = 'http://repo.minecrell.net/releases'
}
maven {
name = 'sponge'
url = 'http://repo.spongepowered.org/maven'
}
}
dependencies {
// VanillaGradle contains a custom ForgeGradle extension for SpongeCommon (see below)
classpath 'net.minecrell:VanillaGradle:2.0.3_1'
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-20160116.192356-17'
classpath('nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0') {
exclude module: 'guava' // Older version of Guava conflicts with ForgeGradle
}
classpath 'org.spongepowered:spongegradle:0.5.1'
classpath 'org.spongepowered:mixingradle:0.3-SNAPSHOT'
}
}
// Apply our custom ForgeGradle extension for SpongeCommon
// Compared to the regular tweaker-server plugin, SpongeCommon has all run tasks disabled
// and the Minecraft workspace defined as "provided" so they won't conflict with the implementation
apply plugin: 'net.minecrell.vanilla.server.library'
// Create task to resolve SpongeAPI revision
apply from: 'api-revision.gradle'
// Apply shared ForgeGradle configuration
ext.common = project
apply from: 'gradle/minecraft.gradle'
// Inherit SpongeCommon version from SpongeAPI
version = api.version
ext.apiVersion = version
minecraft {
version = '1.8.9'
}
dependencies {
compile api
compile('org.spongepowered:mixin:0.5.5-SNAPSHOT') {
exclude module: 'launchwrapper'
exclude module: 'guava'
}
compile 'net.sf.trove4j:trove4j:3.0.3'
// log4j2 slf4j implementation
runtime 'org.apache.logging.log4j:log4j-slf4j-impl:2.0-beta9'
// Database connectors
compile 'com.zaxxer:HikariCP:2.4.6'
runtime 'org.mariadb.jdbc:mariadb-java-client:1.4.3'
runtime 'com.h2database:h2:1.4.191'
runtime 'org.xerial:sqlite-jdbc:3.8.11.2'
}
// Include API dependencies in our POM
ext.shadedDevProject = api