diff --git a/build.gradle b/build.gradle index 689a43e..e83eff1 100644 --- a/build.gradle +++ b/build.gradle @@ -1,86 +1,86 @@ -buildscript { - repositories { - maven { url = 'https://files.minecraftforge.net/maven' } - jcenter() - mavenCentral() - } - - dependencies { - classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true - } -} - -apply plugin: 'net.minecraftforge.gradle' -apply plugin: 'eclipse' -apply plugin: 'maven-publish' - -version = '1.16.4-1.0.0.0-beta1' -group = 'com.rosspaffett.mattercraft' -archivesBaseName = 'mattercraft' - -// For Eclipse tasks -sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' - -minecraft { - 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 { - mattercraft { - source sourceSets.main - } - } - } - - server { - workingDirectory project.file('run') - - property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' - property 'forge.logging.console.level', 'debug' - - mods { - mattercraft { - 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 { - mattercraft { - source sourceSets.main - } - } - } - } -} - -dependencies { - minecraft 'net.minecraftforge:forge:1.16.4-35.1.32' - implementation 'com.google.code.gson:gson:2.8.0' -} - -jar { - manifest { - attributes([ - 'Implementation-Title': project.name, - 'Implementation-Version': project.version - ]) - } -} - -jar.finalizedBy('reobfJar') +buildscript { + repositories { + maven { url = 'https://files.minecraftforge.net/maven' } + jcenter() + mavenCentral() + } + + dependencies { + classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true + } +} + +apply plugin: 'net.minecraftforge.gradle' +apply plugin: 'eclipse' +apply plugin: 'maven-publish' + +version = '1.16.4-1.0.0.0-beta1' +group = 'com.rosspaffett.mattercraft' +archivesBaseName = 'mattercraft' + +// For Eclipse tasks +sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' + +minecraft { + 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 { + mattercraft { + source sourceSets.main + } + } + } + + server { + workingDirectory project.file('run') + + property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' + property 'forge.logging.console.level', 'debug' + + mods { + mattercraft { + 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 { + mattercraft { + source sourceSets.main + } + } + } + } +} + +dependencies { + minecraft 'net.minecraftforge:forge:1.16.4-35.1.32' + implementation 'com.google.code.gson:gson:2.8.0' +} + +jar { + manifest { + attributes([ + 'Implementation-Title': project.name, + 'Implementation-Version': project.version + ]) + } +} + +jar.finalizedBy('reobfJar')