-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
executable file
·63 lines (56 loc) · 1.81 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = 'sponge'
url = 'http://repo.spongepowered.org/maven'
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:' + project.forgeGradleVersion
classpath 'org.spongepowered:mixingradle:0.5-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.liteloader'
apply plugin: 'org.spongepowered.mixin'
group = "narcolepticfrog.rsmm" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "redstonemultimeter"
minecraft {
// these values are defined in the gradle.properties file, so that this file does not need to be altered
version = project.mcVersion
mappings = project.mcMappings
runDir = "run"
}
sourceSets {
main {
// Refmap declaration must match the refmap name specified in the json config
ext.refMap = "mixins.rsmm.refmap.json"
}
}
mixin {
// liteloader does not do runtime deobfuscation, so in production we use "notch names", mixin needs to know this
defaultObfuscationEnv notch
}
litemod {
json {
author = "NarcolepticFrog"
name = "redstonemultimeter"
mcversion = project.targetVersion
description = "A tool for debugging redstone builds."
mixinConfigs += "mixins.rsmm.meterable.json"
mixinConfigs += "mixins.rsmm.events.json"
}
}
jar {
// The litemod task above generates the litemod.json dynamically, you can replace it with a resource if you want more control
from litemod.outputs
}