mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 12:33:57 +01:00
Clean up build.gradle
This commit is contained in:
parent
cbb7e48565
commit
2db49997df
14
build.gradle
14
build.gradle
@ -33,13 +33,12 @@ sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = co
|
|||||||
minecraft {
|
minecraft {
|
||||||
mappings channel: 'snapshot', version: '20200920-mixed-1.16.3'
|
mappings channel: 'snapshot', version: '20200920-mixed-1.16.3'
|
||||||
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
||||||
|
|
||||||
runs {
|
runs {
|
||||||
client {
|
client {
|
||||||
workingDirectory project.file('run')
|
workingDirectory project.file('run')
|
||||||
// property 'mixin.env.disableRefMap', 'true'
|
|
||||||
arg '-mixin.config=create.mixins.json'
|
arg '-mixin.config=create.mixins.json'
|
||||||
jvmArgs '-XX:+UnlockCommercialFeatures'
|
//jvmArgs '-XX:+UnlockCommercialFeatures' // uncomment for profiling
|
||||||
property 'forge.logging.console.level', 'info'
|
property 'forge.logging.console.level', 'info'
|
||||||
property 'fml.earlyprogresswindow', 'false'
|
property 'fml.earlyprogresswindow', 'false'
|
||||||
mods {
|
mods {
|
||||||
@ -51,7 +50,6 @@ minecraft {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
workingDirectory project.file('run/server')
|
workingDirectory project.file('run/server')
|
||||||
// property 'mixin.env.disableRefMap', 'true'
|
|
||||||
arg '-mixin.config=create.mixins.json'
|
arg '-mixin.config=create.mixins.json'
|
||||||
property 'forge.logging.console.level', 'info'
|
property 'forge.logging.console.level', 'info'
|
||||||
mods {
|
mods {
|
||||||
@ -117,7 +115,7 @@ configurations {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
|
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
|
||||||
|
|
||||||
def registrate = "com.tterrag.registrate:Registrate:MC1.16.2-${registrate_version}"
|
def registrate = "com.tterrag.registrate:Registrate:MC1.16.2-${registrate_version}"
|
||||||
implementation fg.deobf(registrate)
|
implementation fg.deobf(registrate)
|
||||||
shade registrate
|
shade registrate
|
||||||
@ -199,7 +197,7 @@ String getChangelogText() {
|
|||||||
//new File("changelog.html").write getChangelogText()
|
//new File("changelog.html").write getChangelogText()
|
||||||
|
|
||||||
tasks.curseforge.enabled = !dev && project.hasProperty('simi_curseforge_key')
|
tasks.curseforge.enabled = !dev && project.hasProperty('simi_curseforge_key')
|
||||||
|
|
||||||
curseforge {
|
curseforge {
|
||||||
if (project.hasProperty('simi_curseforge_key')) {
|
if (project.hasProperty('simi_curseforge_key')) {
|
||||||
apiKey = project.simi_curseforge_key
|
apiKey = project.simi_curseforge_key
|
||||||
@ -223,4 +221,4 @@ apply plugin: 'org.spongepowered.mixin'
|
|||||||
|
|
||||||
mixin {
|
mixin {
|
||||||
add sourceSets.main, "create.refmap.json"
|
add sourceSets.main, "create.refmap.json"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user