Updated to 1.16

This commit is contained in:
Andrew 2021-02-07 01:42:43 +07:00
parent 9f5b4ec40e
commit c747840feb
20 changed files with 2586 additions and 139 deletions

View file

@ -5,10 +5,9 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:3.+'
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'eclipse'
@ -20,26 +19,61 @@ archivesBaseName = 'mcmodlistdumper'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
minecraft {
mappings channel: 'snapshot', version: '20171003-1.12'
mappings channel: 'snapshot', version: '20201028-1.16.3'
runs {
client {
workingDirectory project.file('run')
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
mods {
mcmodlistdumper {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run')
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
mods {
mcmodlistdumper {
source sourceSets.main
}
}
}
data {
workingDirectory project.file('run')
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
mods {
mcmodlistdumper {
source sourceSets.main
}
}
}
}
}
sourceSets.main.resources { srcDir 'src/generated/resources' }
dependencies {
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2854'
minecraft 'net.minecraftforge:forge:1.16.4-35.1.37'
}
jar {
@ -56,8 +90,8 @@ jar {
}
}
jar.finalizedBy('reobfJar')
jar.finalizedBy('reobfJar')
//publish.dependsOn('reobfJar')
publishing {
publications {
@ -70,4 +104,4 @@ publishing {
url "file:///${project.projectDir}/mcmodsrepo"
}
}
}
}