This repository has been archived by the owner on Nov 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
103 lines (90 loc) · 3.37 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
buildscript {
repositories {
jcenter()
mavenCentral()
maven { url = 'https://plugins.gradle.org/m2/' }
maven { url = 'https://files.minecraftforge.net/maven' }
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
}
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'
apply plugin: 'eclipse'
archivesBaseName = 'garuff'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
minecraft {
mappings channel: 'stable', version: '39-1.12'
runs {
client {
workingDirectory project.file('run')
property 'fml.coreMods.load', 'com.garume.Garuff.mixin.MixinLoader'
property 'mixin.env.disableRefMap', 'true'
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
}
}
}
repositories {
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
maven { url = 'https://impactdevelopment.github.io/maven/' }
maven { url = "https://jitpack.io" }
maven { url = "http://maven-eclipse.github.io/maven" }
maven { url = "https://lukflug.github.io/maven" }
}
dependencies {
implementation('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
exclude module: 'gson'
exclude module: 'guava'
exclude module: 'commons-io'
exclude module: 'launchwrapper'
exclude module: 'log4j-core'
}
implementation('org.reflections:reflections:0.9.12') {
exclude module: 'gson'
exclude module: 'guava'
}
annotationProcessor('org.spongepowered:mixin:0.8.2:processor') {
exclude module: 'gson'
}
compile "com.github.ZeroMemes:Alpine:1.5"
compile group: 'net.jodah', name: 'typetools', version: '0.5.0'
compile group: "com.googlecode.json-simple", name: "json-simple", version: "1.1.1"
compile group: 'club.minnced', name: 'java-discord-rpc', version: '2.0.1'
compile("com.lukflug:panelstudio:0.1.8")
compile("com.lukflug:panelstudio-mc12:0.1.8")
implementation 'cabaletta:baritone-api:1.2'
implementation 'com.github.cabaletta:baritone:1.2.14'
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2854'
}
mixin {
defaultObfuscationEnv 'searge'
add sourceSets.main, 'mixins.garuff.refmap.json'
}
jar.finalizedBy('reobfJar')
jar {
manifest.attributes(
'Manifest-Version': 1.0,
'MixinConfigs': 'mixins.garuff.json',
'TweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
'TweakOrder': 0,
'FMLCorePluginContainsFMLMod': 'true',
'FMLCorePlugin': 'com.garume.Garuff.mixin.MixinLoader',
'ForceLoadAsMod': 'true'
)
}
tasks.build.dependsOn tasks.shadowJar
shadowJar {
dependencies {
include(dependency('org.spongepowered:mixin'))
include(dependency('org.reflections:reflections'))
include(dependency('cabaletta:baritone-api:1.2'))
}
exclude 'LICENSE.txt'
}
sourceSets { main { output.resourcesDir = output.classesDir } }