forked from Zokonius/planar-artifice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
180 lines (166 loc) · 7.96 KB
/
build.gradle.kts
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
import net.minecraftforge.gradle.common.util.RunConfig
import wtf.gofancy.fancygradle.script.extensions.deobf
buildscript {}
plugins {
`java-library`
`maven-publish`
idea
id("net.minecraftforge.gradle") version "5.1.+"
id("de.undercouch.download") version "5.0.1"
id("wtf.gofancy.fancygradle") version "1.1.1-6"
}
evaluationDependsOnChildren()
java.toolchain.languageVersion.set(JavaLanguageVersion.of(8))
val versionMcMajor: String by project
val versionMc: String by project
val versionForge: String by project
val mappingsChannel: String by project
val mappingsVersion: String by project
val versionThis: String by project
val versionJEI: String by project
val versionBaubles: String by project
val versionThaumcraft: String by project
val versionAugmentation: String by project
val versionWonders: String by project
val versionGuideAPI: String by project
val versionPotatoes: String by project
val versionHammerLib: String by project
val versionThaumAdds: String by project
val versionPatchouli: String by project
val versionBotania: String by project
val versionBotanicAdditions: String by project
val versionExtraBotany: String by project
val versionNaturalPledge: String by project
val versionAstralSorcery: String by project
val versionCraftTweaker: String by project
val versionMTLib: String by project
val versionMoreTweaker: String by project
val versionBewitchment: String by project
val versionEmbers: String by project
val versionSoot: String by project
val versionForestry: String by project
val versionMagicBees: String by project
val versionTwilight: String by project
val versionMantle: String by project
val versionTConstruct: String by project
val versionAE2: String by project
val versionRS: String by project
val versionMysticalLib: String by project
val versionArcArc: String by project
val versionCTM: String by project
val versionXercaPaint: String by project
val versionLLibrary: String by project
val versionIceAndFire: String by project
val versionAether: String by project
val versionAetherLostContent: String by project
val versionAetherContinuation: String by project
val versionAetherAdditions: String by project
version = versionThis
group = "leppa.planarartifice"
setProperty("archivesBaseName", "planarartifice")
minecraft {
mappings(mappingsChannel, mappingsVersion)
runs {
val config = Action<RunConfig> {
properties(
mapOf(
"forge.logging.markers" to "SCAN,REGISTRIES,REGISTRYDUMP,COREMODLOG",
"forge.logging.console.level" to "debug",
"fml.coreMods.load" to "leppa.planarartifice.core.PlanarArtificeCore"
)
)
workingDirectory = project.file("run").canonicalPath
source(sourceSets["main"])
}
create("client", config)
create("server", config)
}
}
fancyGradle {
patches {
resources
coremods
asm
}
}
repositories {
maven {
name = "Cursemaven"
url = uri("https://www.cursemaven.com")
content {
includeGroup("curse.maven")
}
}
maven {
name = "Progwml6 maven"
url = uri("https://dvs1.progwml6.com/files/maven")
}
maven {
name = "thiakil"
url = uri("https://maven.thiakil.com")
}
}
dependencies {
minecraft(group = "net.minecraftforge", name = "forge", version = "${versionMc}-${versionForge}")
implementation(fg.deobf(group = "mezz.jei", name = "jei_${versionMc}", version = versionJEI))
implementation(group = "com.azanor.baubles", name = "Baubles", version = "${versionMcMajor}-${versionBaubles}")
implementation(fg.deobf(group = "curse.maven", name = "thaumcraft-223628", version = versionThaumcraft))
implementation(group = "curse.maven", name = "thaumicaugmentation-319441", version = versionAugmentation)
implementation(group = "curse.maven", name = "thaumic-wonders-316704", version = versionWonders)
implementation(group = "curse.maven", name = "guide-api-228832", version = versionGuideAPI)
implementation(group = "curse.maven", name = "thaumic-potatoes-2-270721", version = versionPotatoes)
implementation(fg.deobf(group = "curse.maven", name = "hammer-lib-247401", version = versionHammerLib))
implementation(fg.deobf(group = "curse.maven", name = "thaumic-additions-232564", version = versionThaumAdds))
implementation(group = "curse.maven", name = "patchouli-306770", version = versionPatchouli)
implementation(group = "curse.maven", name = "botania-225643", version = versionBotania)
implementation(group = "curse.maven", name = "botanic-additions-310637", version = versionBotanicAdditions)
implementation(group = "curse.maven", name = "extrabotany-299086", version = versionExtraBotany)
implementation(group = "curse.maven", name = "natural-pledge-247704", version = versionNaturalPledge)
implementation(group = "curse.maven", name = "astral-sorcery-241721", version = versionAstralSorcery)
implementation(group = "curse.maven", name = "crafttweaker-239197", version = versionCraftTweaker)
implementation(group = "curse.maven", name = "mtlib-253211", version = versionMTLib)
implementation(group = "curse.maven", name = "moretweaker-336569", version = versionMoreTweaker)
implementation(group = "curse.maven", name = "bewitchment-285439", version = versionBewitchment)
implementation(group = "curse.maven", name = "embers-rekindled-300777", version = versionEmbers)
implementation(group = "curse.maven", name = "soot-281528", version = versionSoot)
implementation(group = "curse.maven", name = "forestry-59751", version = versionForestry)
implementation(group = "curse.maven", name = "magic-bees-65764", version = versionMagicBees)
implementation(group = "curse.maven", name = "the-twilight-forest-227639", version = versionTwilight)
implementation(fg.deobf(group = "slimeknights.mantle", name = "Mantle", version = "${versionMcMajor}-${versionMantle}"))
implementation(fg.deobf(group = "slimeknights", name = "TConstruct", version = "${versionMc}-${versionTConstruct}"))
implementation(group = "curse.maven", name = "applied-energistics-2-223794", version = versionAE2)
implementation(group = "curse.maven", name = "refined-storage-243076", version = versionRS)
implementation(group = "curse.maven", name = "mysticallib-277064", version = versionMysticalLib)
implementation(group = "curse.maven", name = "arcane-archives-311357", version = versionArcArc)
implementation(group = "curse.maven", name = "ctm-267602", version = versionCTM)
implementation(group = "curse.maven", name = "joy-of-painting-350727", version = versionXercaPaint)
implementation(group = "curse.maven", name = "llibrary-243298", version = versionLLibrary)
implementation(group = "curse.maven", name = "ice-and-fire-dragons-264231", version = versionIceAndFire)
implementation(group = "curse.maven", name = "aether-255308", version = versionAether)
implementation(group = "curse.maven", name = "aether-lost-content-318602", version = versionAetherLostContent)
implementation(group = "curse.maven", name = "aether-addon-294269", version = versionAetherContinuation)
implementation(group = "curse.maven", name = "aether-additions-351809", version = versionAetherAdditions)
}
tasks {
named<ProcessResources>("processResources") {
// this will ensure that this task is redone when the versions change.
inputs.property("version", project.version)
inputs.property("mcversion", versionMc)
filesMatching("mcmod.info") {
// replace version and mcversion
expand(
"version" to project.version,
"mcversion" to versionMc
)
}
}
withType<JavaCompile> {
options.compilerArgs.add("-Xlint:deprecation")
}
}
tasks.withType<Jar>() {
manifest {
attributes["FMLCorePlugin"] = "leppa.planarartifice.core.PlanarArtificeCore"
attributes["FMLCorePluginContainsFMLMod"] = "true"
}
}