X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=build.gradle;h=5c3ac7ad1239aa361d2f891881956f6c48171a97;hb=13d453111e470706b28cfdd0aa96c8bb308de010;hp=21f6a50eea567782e2784f7776597c7d9b6d9e83;hpb=862331d6e0f9a2bc04ca4e3b751d39edd3a2bd6e;p=LightOverlay.git diff --git a/build.gradle b/build.gradle index 21f6a50..5c3ac7a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,69 +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.11.0-SNAPSHOT" apply false } -apply plugin: 'net.minecraftforge.gradle' -apply plugin: 'eclipse' -version = "4.3" -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: '20191218-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() } } -repositories { - maven { url "https://minecraft.curseforge.com/api/maven/" } -} +allprojects { + apply plugin: "java" + apply plugin: "architectury-plugin" -dependencies { - minecraft 'net.minecraftforge:forge:1.15.1-30.0.7' - implementation fg.deobf("cloth-config-forge:ClothConfig2:2.0") -} + 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 = 17 } }