forked from Sollace/MAtmos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (70 loc) · 1.46 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
buildscript {
repositories {
jcenter()
mavenCentral()
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
maven {
name 'forge'
url 'http://files.minecraftforge.net/maven/'
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
}
}
configurations {
embed
compile.extendsFrom(embed)
}
dependencies {
embed 'net.sf.practicalxml:practicalxml:1.1.19'
}
apply plugin: 'net.minecraftforge.gradle.liteloader'
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets {
main {
java {
srcDir "lib/MC-Commons/mc-src"
srcDir "main-src"
}
resources {
srcDirs "matmos-packaging"
}
}
}
// Basic project information
version = "r32"
group = "eu.ha3"
archivesBaseName = 'presencefootsteps'
ext.revision = "0"
minecraft {
version = project.mcVersion
mappings = project.mcMappings
runDir = 'jars'
}
processResources{
// this will ensure that this task is redone when the versions change.
def props = [
version: version,
mcversion: minecraft.version,
revision: revision
]
inputs.properties props
// replace stuff in litemod.json, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'litemod.json'
// replace version and mcversion
expand props
}
// copy everything else, thats not the litemod.json
from(sourceSets.main.resources.srcDirs) {
exclude 'litemod.json'
}
}
jar {
from configurations.embed.collect { it.isDirectory() ? it : zipTree(it) }
}