-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
116 lines (96 loc) · 2.82 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
111
112
113
114
115
116
buildscript {
repositories {
mavenCentral()
maven { url 'https://files.minecraftforge.net/maven' }
maven { url 'https://repo.spongepowered.org/maven' }
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.github.asbyth:ForgeGradle:6f53277'
classpath 'com.github.xcfrg:MixinGradle:0.6-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.tweaker-client'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'java'
String tweakerClass = 'net.luxclient.launch.LuxTweaker'
String tweaker = 'mixins.luxclient'
version "1.0"
group "net.luxclient"
compileJava {
sourceCompatibility = targetCompatibility = 8
}
minecraft {
version = '1.8.9'
tweakClass = "${tweakerClass}"
mappings = 'stable_22'
runDir = 'run'
clientJvmArgs = ['-Dmixin.debug=true', '-XX:-DisableExplicitGC', '-Xmx1G', '-DFORGE_FORCE_FRAME_RECALC=true']
makeObfSourceJar = false
}
mixin {
defaultObfuscationEnv notch
add sourceSets.main, "${tweaker}.refmap.json"
}
repositories {
mavenCentral()
maven { url 'https://libraries.minecraft.net' }
maven { url 'https://repo.spongepowered.org/maven' }
maven { url 'https://jitpack.io' }
}
configurations {
lux
implementation.extendsFrom lux
runtime.extendsFrom lux
}
dependencies {
lux('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
exclude module: 'launchwrapper'
exclude module: 'guava'
exclude module: 'gson'
exclude module: 'commons-io'
}
compileOnly('org.slick2d:slick2d-core:1.0.2')
compileOnly('com.google.code.gson:gson:2.9.0')
compileOnly('org.projectlombok:lombok:1.18.24')
annotationProcessor('org.projectlombok:lombok:1.18.24')
compileOnly('org.reflections:reflections:0.10.2')
compileOnly('org.apache.logging.log4j:log4j-core:2.17.2')
compileOnly('com.github.Vatuu:discord-rpc:1.6.2')
compileOnly('com.github.Litarvan:openauth:1.1.2') {
exclude module: 'slf4j-api'
}
}
processResources {
inputs.files 'src/main/resources'
outputs.dir 'build/classes/main'
copy {
from('src/main/resources')
into('build/classes/main')
}
}
jar {
dependsOn configurations.compile
from {
configurations.lux.collect {
it.isDirectory() ? it : zipTree(it)
}
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA', 'LICENSE.txt', 'dummyThing'
}
jar {
manifest.attributes(
'MixinConfigs': "${tweaker}.json",
'TweakClass': "${tweakerClass}",
'TweakOrder': 0,
'Manifest-Version': 1.0
)
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
configurations.lux.each { dep ->
from(project.zipTree(dep)) {
exclude 'META-INF', 'META-INF/**'
}
}
}