-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 "com.wynprice.cursemaven" version "2.1.1"
+ id "architectury-plugin" version "3.4-SNAPSHOT"
+ id "dev.architectury.loom" version "1.0-SNAPSHOT" apply false
}
-apply plugin: 'net.minecraftforge.gradle'
-apply plugin: 'eclipse'
-
-version = "4.6.1"
-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: '20200408-1.15.1'
- 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://files.minecraftforge.net/maven" }
-}
+allprojects {
+ apply plugin: "java"
+ apply plugin: "architectury-plugin"
-dependencies {
- minecraft 'net.minecraftforge:forge:1.15.2-31.1.39'
- implementation fg.deobf("curse.maven:cloth-config-forge:2938583")
-}
+ 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
}
}