This repository has been archived by the owner on Aug 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
105 lines (82 loc) · 2.95 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
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net/' }
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
jcenter()
mavenCentral()
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:3.+'
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.4'
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'com.github.johnrengelman.shadow'
group = 'me.ninethousand'
version = '1.0.1'
archivesBaseName = 'ninehack'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
minecraft {
mappings channel: 'stable', version: '39-1.12'
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
runs {
client {
args '--username', 'Faggot'
workingDirectory project.file('run')
property 'fml.coreMods.load', 'me.ninethousand.ninehack.mixin.MixinLoader'
// Recommended logging data for a userdev environment
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
}
}
}
sourceSets.main.resources { srcDir 'src/generated/resources' }
repositories {
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
maven { url = 'https://jitpack.io/' }
}
dependencies {
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2854'
compile('org.spongepowered:mixin:0.7.4-SNAPSHOT') {
exclude module: 'launchwrapper'
exclude module: 'guava'
exclude module: 'gson'
exclude module: 'commons-io'
}
annotationProcessor('org.spongepowered:mixin:0.8.2:processor') {
exclude module: 'gson'
}
compile 'com.github.CafeDevelopment:Venture:2.0-SNAPSHOT'
compile group: 'club.minnced', name: 'java-discord-rpc', version: 'v2.0.2'
}
jar.manifest.attributes(
'MixinConfigs': 'mixins.ninehack.json',
'tweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
'TweakOrder': 0,
'FMLCorePluginContainsFMLMod': 'true',
'FMLCorePlugin': 'me.ninethousand.ninehack.mixin.MixinLoader',
'ForceLoadAsMod': 'true'
)
mixin {
defaultObfuscationEnv 'searge'
add sourceSets.main, 'refmap.ninehack.json'
}
shadowJar {
dependencies {
include(dependency('org.spongepowered:mixin'))
include(dependency('com.github.CafeDevelopment:Venture'))
include(dependency('club.minnced:java-discord-rpc:v2.0.2'))
}
exclude 'dummyThing'
exclude 'LICENSE.txt'
classifier = 'release'
}
reobf {
shadowJar {
classpath = sourceSets.main.compileClasspath
}
}
build.dependsOn(shadowJar)