plugins { id "dev.architectury.loom" version "1.1-SNAPSHOT" id "maven-publish" } sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17 archivesBaseName = project.archives_base_name version = project.mod_version group = project.maven_group loom { forge { mixinConfigs = [ "ntx4core.mixins.json" ] } } repositories { mavenLocal() maven { url "https://maven.tilera.xyz/" } maven { url "https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/" } maven { url "https://maven.blamejared.com" } } dependencies { // to change the versions see the gradle.properties file minecraft "com.mojang:minecraft:${project.minecraft_version}" mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" forge "net.minecraftforge:forge:${project.forge_version}" modImplementation "software.bernie.geckolib:geckolib-forge-1.18:3.0.57" modImplementation "net.anvilcraft:anvillib-18-forge:1.1.0" modImplementation "vazkii.patchouli:Patchouli:1.18.2-66" } processResources { // this will replace the property "${version}" in your mods.toml // with the version you've defined in your gradle.properties filesMatching("META-INF/mods.toml") { expand "version": project.version } } tasks.withType(JavaCompile) { options.encoding = "UTF-8" options.release = 17 } java { // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task // if it is present. // If you remove this line, sources will not be generated. withSourcesJar() } jar { // add some additional metadata to the jar manifest manifest { attributes([ "Specification-Title" : project.mod_id, "Specification-Vendor" : project.mod_author, "Specification-Version" : "1", "Implementation-Title" : project.name, "Implementation-Version" : version, "Implementation-Vendor" : project.mod_author, "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) } } // configure the maven publication publishing { publications { mavenJava(MavenPublication) { from components.java } } repositories {} }