-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
181 lines (160 loc) · 6.22 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
maven { url = 'https://repo.spongepowered.org/maven' }
jcenter()
mavenCentral()
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'org.spongepowered.mixin'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
version = '1.0'
group = 'zone.rong.lolilib' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'lolilib'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
minecraft {
version = "1.12.2-14.23.5.2847"
runDir = "run"
mappings = "snapshot_20171003"
def args = [
'-Dfml.coreMods.load=zone.rong.lolilib.LoliLibLoadingPlugin',
'-Dmixin.hotSwap=true',
'-Dmixin.checks.interfaces=true'
]
clientJvmArgs.addAll(args)
serverJvmArgs.addAll(args)
useDepAts = true
makeObfSourceJar = false
}
configurations {
embed
implementation.extendsFrom(embed)
}
repositories {
jcenter()
maven {
url "https://www.cursemaven.com"
}
maven {
url "https://repo.spongepowered.org/maven"
}
maven {
url "https://minecraft.curseforge.com/api/maven/"
}
maven {
url "http://maven.tterrag.com"
}
maven {
url = "http://maven.blamejared.com"
}
maven {
url = "http://maven.ic2.player.to"
}
maven {
url = "http://chickenbones.net/maven/"
}
}
dependencies {
embed 'me.nallar.whocalled:WhoCalled:1.1'
compile files("./libs/mixinbooter-1.0.jar")
compile "curse.maven:rustic-256141:3107975"
// compile "curse.maven:bookshelf-228525:2836963"
// compile "curse.maven:game-stages-268655:2951844"
compile "curse.maven:redstone-flux-270789:2920436"
compile "curse.maven:cofh-core-69162:2920433"
compile "curse.maven:redstone-repository-revolved-300750:2695517"
compile "curse.maven:cofh-world-271384:2920434"
compile "curse.maven:thermal-foundation-222880:2926428"
compile "curse.maven:thermal-dynamics-227443:2920505"
compile "curse.maven:thermal-expansion-69163:2926431"
compile "curse.maven:redstone-arsenal-70631:2939416"
compile "curse.maven:mekanism-268560:2835175"
deobfCompile "baubles:Baubles:1.12:1.5.2"
deobfCompile "curse.maven:academycraft-236188:3005254"
deobfCompile "curse.maven:angry-pixel-the-betweenlands-mod-243363:3099119"
deobfCompile "curse.maven:applied-energistics-2-223794:2747063"
deobfCompile "curse.maven:astral-sorcery-241721:3044416"
deobfCompile "curse.maven:heat-and-climate-lib-296091:3229475"
deobfCompile "curse.maven:heat-and-climate-296096:3229480"
// deobfCompile "curse.maven:bwm-core:2624990" // setTranslationKey
// deobfCompile "curse.maven:bwm-suite:2965308" // setTranslationKey
deobfCompile "codechicken:CodeChickenLib:1.12.2-3.2.2.+:universal"
deobfCompile "curse.maven:cuisine-303694:2932722"
deobfCompile "curse.maven:forestry-59751:2918418"
deobfCompile "curse.maven:grimoire-of-gaia-228948:2891787"
deobfCompile "curse.maven:kiwi-303657:2704824"
deobfCompile "curse.maven:athenaeum-284350:3063275"
deobfCompile "curse.maven:dropt-284973:2957599"
deobfCompile "curse.maven:pyrotech-306676:3121005"
deobfCompile "curse.maven:the-aurorian-352137:3331597"
deobfCompile "curse.maven:the-midnight-304881:2727758"
deobfCompile 'curse.maven:thaumcraft-223628:2629023'
deobfCompile "curse.maven:mysterious-mountain-lib-368098:3152248"
deobfCompile "curse.maven:sakura-333079:3152249"
deobfCompile "curse.maven:jei-238222:3043174"
deobfCompile "curse.maven:nuclearcraft-overhauled-336895:3072330"
deobfCompile "curse.maven:warpdrive-233565:3069000"
deobfCompile "curse.maven:yungs-better-mineshafts-forge-389665:3067998" // We'll build our own, soon.
deobfCompile "com.enderio.core:EnderCore:1.12.2-+"
deobfCompile ("com.enderio:EnderIO:1.12.2-+") {
transitive = false
}
deobfCompile (group: 'CraftTweaker2', name: 'CraftTweaker2-MC1120-Main', version: "1.12-4.1.20.602") {
exclude group: 'org.ow2.asm'
exclude group: 'com.google.code.gson'
}
deobfProvided "curse.maven:mekanism-268560:2835176"
implementation ("org.spongepowered:mixin:0.8") {
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"
}
}
// Example for how to get properties into the manifest for reading by the runtime..
jar {
from (configurations.embed.collect { it.isDirectory() ? it : zipTree(it) }) {
exclude 'LICENSE.txt', 'META-INF/MANIFSET.MF', 'META-INF/maven/**', 'META-INF/*.RSA', 'META-INF/*.SF'
}
manifest {
attributes([
"FMLCorePluginContainsFMLMod": true,
"FMLCorePlugin": 'zone.rong.lolilib.LoliLibLoadingPlugin',
"ForceLoadAsMod": true,
"TweakClass": 'org.spongepowered.asm.launch.MixinTweaker',
"FMLAT": "lolilib_at.cfg"
])
}
}
sourceSets {
main {
ext.refMap = "mixins.lolilib.refmap.json"
}
}
jar.finalizedBy('reobfJar')
processResources {
// this will ensure that this task is redone when the versions change.
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
// replace version and mcversion
expand 'version':project.version, 'mcversion':project.minecraft.version
}
// copy everything else except the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
rename '(.+_at.cfg)', 'META-INF/$1'
}