-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
110 lines (93 loc) · 2.71 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
102
103
104
105
106
107
108
109
110
buildscript {
repositories {
jcenter()
maven { url "http://files.minecraftforge.net/maven" }
maven { url "http://repo.spongepowered.org/maven" }
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.4"
classpath "net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT"
classpath "org.spongepowered:mixingradle:0.6-SNAPSHOT"
}
}
apply plugin: "java"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "net.minecraftforge.gradle.forge"
apply plugin: "org.spongepowered.mixin"
repositories {
maven { url "http://repo.spongepowered.org/maven" }
maven { url "http://www.dimdev.org/maven" }
}
dependencies {
implementation("org.dimdev:mixin:0.7.11-SNAPSHOT") {
exclude module: "asm-commons"
exclude module: "asm-tree"
exclude module: "launchwrapper"
exclude module: "guava"
exclude module: "log4j-core"
exclude module: "gson"
exclude module: "commons-io"
}
}
def travisBuildNumber = System.getenv("TRAVIS_BUILD_NUMBER")
def versionSuffix = travisBuildNumber != null ? travisBuildNumber : "SNAPSHOT"
version "1.0.0-$versionSuffix"
group "org.dimdev.aesthetics"
archivesBaseName = "Aesthetics"
sourceCompatibility = 1.8
targetCompatibility = 1.8
minecraft {
version "1.12.2-14.23.4.2703"
runDir "run"
mappings "stable_39"
makeObfSourceJar false
def args = [
"-Dfml.coreMods.load=org.dimdev.aesthetics.AestheticsLoadingPlugin",
"-Dmixin.hotSwap=true",
"-Dmixin.checks.interfaces=true",
"-Dmixin.debug.export=true"
]
clientJvmArgs.addAll(args)
serverJvmArgs.addAll(args)
}
mixin {
add sourceSets.main, "mixins.aesthetics.refmap.json"
}
reobf {
shadowJar {
mappingType = "SEARGE"
}
}
processResources {
filesMatching("mcmod.info") {
expand "version": project.version, "mcversion": project.minecraft.version
}
// Re-run this task when these change
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
}
jar {
classifier "nolibs"
manifest.attributes(
"FMLCorePluginContainsFMLMod": "true",
"TweakClass": "org.spongepowered.asm.launch.MixinTweaker",
"FMLCorePlugin": "org.dimdev.aesthetics.AestheticsLoadingPlugin",
"ForceLoadAsMod": "true"
)
}
shadowJar {
classifier ""
exclude "LICENSE.txt", "dummyThing"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier "sources"
from sourceSets.main.allSource
}
artifacts {
archives jar
archives shadowJar
archives sourcesJar
}
// These are broken
runClient.group "other"
runServer.group "other"