Fix Forge 1.20.6 build

This commit is contained in:
Michael Primm 2024-06-02 20:57:16 -05:00
parent d78a4fd11b
commit 435472085d
2 changed files with 4 additions and 19 deletions

View File

@ -5,7 +5,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '6.+', changing: true
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '[6.0.24,6.2)', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
@ -27,6 +27,8 @@ ext.buildNumber = System.getenv().BUILD_NUMBER ?: "Dev"
minecraft {
mappings channel: 'official', version: '1.20.6'
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
reobf = false
copyIdeResources = true
runs {
server {
workingDirectory project.file('run').canonicalPath
@ -73,21 +75,4 @@ shadowJar.doLast {
ant.checksum file: task.archivePath
}
afterEvaluate {
reobf {
shadowJar {
mappings = createMcpToSrg.output
}
}
}
task deobfJar(type: Jar) {
from sourceSets.main.output
archiveClassifier = 'dev'
}
artifacts {
archives deobfJar
}
build.dependsOn(shadowJar)

View File

@ -3,6 +3,6 @@
"description": {
"text": "Dynmap resources"
},
"pack_format": 32
"pack_format": 22
}
}