buildscript { repositories { // These repositories are only for Gradle plugins, put any other repositories in the repository block further below maven { url = 'https://maven.minecraftforge.net' } mavenCentral() } dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true } } apply plugin: 'net.minecraftforge.gradle' group = 'com.buuz135' version = '1.0.0' java { archivesBaseName = 'functionalstorage' toolchain.languageVersion = JavaLanguageVersion.of(17) } minecraft { mappings channel: 'official', version: '1.18.1' accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') runs { client { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' mods { functionalstorage { source sourceSets.main } } } server { property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' mods { functionalstorage { source sourceSets.main } } } data { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' args '--mod', 'functionalstorage', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') mods { functionalstorage { source sourceSets.main } } } } } // Include resources generated by data generators. sourceSets.main.resources { srcDir 'src/generated/resources' } repositories { maven { name 'jared maven' url "https://maven.blamejared.com/" } maven { // location of the maven that hosts JEI files name = "Progwml6 maven" url = "https://dvs1.progwml6.com/files/maven/" } maven { url = "https://www.cursemaven.com" } } dependencies { minecraft 'net.minecraftforge:forge:1.18.1-39.0.5' implementation fg.deobf (project.dependencies.create('com.hrznstudio:titanium:1.18-3.4.0-21')) compileOnly fg.deobf("mezz.jei:jei-1.18.1:9.1.0.46:api") runtimeOnly fg.deobf("mezz.jei:jei-1.18.1:9.1.0.46") runtimeOnly fg.deobf("curse.maven:refined-storage-243076:3569563") } // Example for how to get properties into the manifest for reading at runtime. jar { manifest { attributes([ "Specification-Title" : "functionalstorage", "Specification-Vendor" : "Buuz135, Rid", "Specification-Version" : "1", // We are version 1 of ourselves "Implementation-Title" : project.name, "Implementation-Version" : project.jar.archiveVersion, "Implementation-Vendor" : "Buuz135, Rid", "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) } } jar.finalizedBy('reobfJar')