-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathabc.gradle
49 lines (41 loc) · 1.17 KB
/
abc.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
defaultTasks 'setupDevWorkspace', 'build'
buildscript
{
repositories
{
jcenter()
maven
{
name = 'forge'
url = 'http://files.minecraftforge.net/maven'
}
}
dependencies
{
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
group = 'airbreather.mods.airbreathercore'
// define the properties file
ext.configFile = file 'abc.properties'
configFile.withReader
{
// read config. it shall from now on be referenced as simply config or as project.config
def prop = new Properties()
prop.load(it)
project.ext.config = new ConfigSlurper().parse prop
}
archivesBaseName = 'airbreathercore'
version = config.mod_version
minecraft.version = config.minecraft_version + '-' + config.forge_version
minecraft.runDir = 'eclipse'
minecraft.mappings = 'snapshot_20161111'
minecraft.makeObfSourceJar = false
// Exclude YAFM-specific stuff so the same JAR can be used for other mods.
jar.exclude 'airbreather/mods/yafm'
jar.exclude 'assets'
jar.exclude 'LICENSE'
jar.exclude 'LICENSE-Icons'
jar.exclude 'mcmod.info'
jar.exclude 'version.properties'