forked from SpongePowered/Sponge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
73 lines (62 loc) · 2.01 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
// Gradle plugins
buildscript {
repositories {
maven {
name = 'gradle-plugins'
url = 'https://plugins.gradle.org/m2'
}
maven {
name = 'sponge'
url = 'https://repo.spongepowered.org/maven'
}
maven {
name = 'forge'
url = 'http://files.minecraftforge.net/maven'
}
}
dependencies {
// VanillaGradle contains a custom ForgeGradle extension for SpongeCommon (see below)
classpath 'gradle.plugin.net.minecrell:vanillagradle:2.2-5'
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
classpath 'gradle.plugin.net.minecrell:licenser:0.3'
classpath 'gradle.plugin.org.spongepowered:spongegradle:0.8.1'
classpath 'org.spongepowered:mixingradle:0.4-SNAPSHOT'
}
}
// 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
dependencies {
compile(api) {
exclude module: 'asm'
}
compile(testPlugins) {
exclude module: 'spongeapi'
}
compile 'org.ow2.asm:asm-debug-all:5.2'
compile('org.spongepowered:mixin:0.6.15-SNAPSHOT') {
exclude module: 'launchwrapper'
}
// log4j2 slf4j implementation
runtime 'org.apache.logging.log4j:log4j-slf4j-impl:2.8.1'
// Database connectors
compile 'com.zaxxer:HikariCP:2.6.2'
runtime 'org.mariadb.jdbc:mariadb-java-client:2.0.2'
compile 'com.h2database:h2:1.4.196'
runtime 'org.xerial:sqlite-jdbc:3.18.0'
forgeGradleMcDeps('net.minecraft:launchwrapper:1.11') {
transitive = false
}
testCompile 'org.spongepowered:lwts:1.0.0'
}
// Include API dependencies in our POM
ext.shadedDevProject = api
test {
systemProperty 'lwts.tweaker', 'org.spongepowered.common.launch.TestTweaker'
workingDir = {test.temporaryDir}
}