-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
102 lines (84 loc) · 2.35 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
buildscript {
ext.kotlin_version = '1.0.2'
repositories {
mavenCentral()
jcenter()
maven {
name = 'forge'
url = 'http://files.minecraftforge.net/maven'
}
maven {
name = 'minecrell'
url = 'http://repo.minecrell.net/releases'
}
maven {
name = 'sponge'
url = 'https://repo.spongepowered.org/maven'
}
}
dependencies {
classpath 'net.minecrell:VanillaGradle:2.0.3_1'
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'org.spongepowered:mixingradle:0.3-SNAPSHOT'
}
}
plugins {
id 'java'
id 'idea'
id 'eclipse'
}
apply plugin: 'java'
apply plugin: 'kotlin'
// Plugins for IDE project generation
apply plugin: 'eclipse'
apply plugin: 'idea'
// Apply 'VanillaGradle'
// Compared to the regular tweaker-server plugin, FountainCommon 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'
apply plugin: 'org.spongepowered.mixin'
defaultTasks 'clean'
// Java 8
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'org.fountainmc'
archivesBaseName = 'fountain-common'
version = '1.10.2-alpha1-SNAPSHOT'
ext.url = 'https://fountainmc.org/'
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://repo.spongepowered.org/maven'
}
maven {
url 'https://repo.techcable.net/content/groups/public'
}
}
dependencies {
compile project(':FountainAPI')
compile 'org.reflections:reflections:0.9.10'
provided 'org.projectlombok:lombok:1.16.8'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile('org.spongepowered:mixin:0.5.7-SNAPSHOT') {
exclude module: 'guava'
}
}
project(':FountainAPI') {
apply from: rootProject.file('api.gradle')
}
// Use the fancy-schmancy mixins
sourceSets {
main {
refMap = 'mixins.fountain.refmap.json'
}
}
minecraft {
version = '1.10.2'
mappings = 'snapshot_nodoc_20160908'
atSource sourceSets.main
makeObfSourceJar = false // We don't use the obfuscated dev jar
}
// Reobfuscate to SRG mappings
reobf.jar.mappingType = 'SEARGE'