X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=build.gradle;h=173399828d80ca37b449310c521389ee879c0add;hb=bda1d440fb23553aaa14a7172df0b683d5017f43;hp=1a190d4cb7ba52996ba9258298c970a1eeb3ca39;hpb=143d67f7bb9a3f3a92b8dca87aa50c33b52b0950;p=LightOverlay.git diff --git a/build.gradle b/build.gradle index 1a190d4..1733998 100644 --- a/build.gradle +++ b/build.gradle @@ -1,65 +1,34 @@ -buildscript { - repositories { - maven { url = 'https://files.minecraftforge.net/maven' } - jcenter() - mavenCentral() - } - dependencies { - classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true - } +plugins { + id "architectury-plugin" version "3.4-SNAPSHOT" + id "dev.architectury.loom" version "0.10.0-SNAPSHOT" apply false } -apply plugin: 'net.minecraftforge.gradle' -apply plugin: 'eclipse' -version = "3.2" -group = "me.shedaniel" // http://maven.apache.org/guides/mini/guide-naming-conventions.html -archivesBaseName = "LightOverlay" +architectury { + minecraft = minecraft_version +} -sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' +subprojects { + apply plugin: "dev.architectury.loom" -minecraft { - mappings channel: 'snapshot', version: '20190625-1.14.3' - runs { - client { - workingDirectory project.file('run') - // Recommended logging data for a userdev environment - property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' - // Recommended logging level for the console - property 'forge.logging.console.level', 'debug' - mods { - examplemod { - source sourceSets.main - } - } - } - server { - workingDirectory project.file('run') - // Recommended logging data for a userdev environment - property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' - // Recommended logging level for the console - property 'forge.logging.console.level', 'debug' - mods { - examplemod { - source sourceSets.main - } - } - } + loom { + silentMojangMappingsLicense() } } -dependencies { - minecraft 'net.minecraftforge:forge:1.14.3-27.0.13' +allprojects { + apply plugin: "java" + apply plugin: "architectury-plugin" -} + group "me.shedaniel" + archivesBaseName = rootProject.name + version = rootProject.mod_version + + repositories { + maven { url "https://maven.terraformersmc.com/releases" } + } -jar { - manifest { - attributes(["Specification-Title" : "examplemod", - "Specification-Vendor" : "examplemodsareus", - "Specification-Version" : "1", // We are version 1 of the modlauncher specification - "Implementation-Title" : project.name, - "Implementation-Version" : "${version}", - "Implementation-Vendor" : "examplemodsareus", - "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],) + tasks.withType(JavaCompile) { + options.encoding = "UTF-8" + options.release = 16 } }