buildscript { repositories { 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' apply plugin: 'eclipse' apply plugin: 'maven-publish' version = '1.0.0' group = 'com.rardog.navidromeplayer' archivesBaseName = 'navidromeplayer' sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' minecraft { mappings channel: 'official', version: '1.16.5' runs { client { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' mods { navidromeplayer { source sourceSets.main } } } server { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' mods { navidromeplayer { source sourceSets.main } } } } } configurations { shade implementation.extendsFrom shade } repositories { mavenCentral() maven { url = 'https://maven.minecraftforge.net' } } dependencies { minecraft 'net.minecraftforge:forge:1.16.5-36.2.39' // External libraries for MP3 and FLAC shade 'javazoom:jlayer:1.0.1' shade 'org.jflac:jflac-codec:1.5.2' } jar { duplicatesStrategy = DuplicatesStrategy.EXCLUDE from { configurations.shade.collect { it.isDirectory() ? it : zipTree(it) } } { exclude 'META-INF/*.SF' exclude 'META-INF/*.DSA' exclude 'META-INF/*.RSA' } manifest { attributes([ "Specification-Title": "navidromeplayer", "Specification-Vendor": "rardog", "Specification-Version": "1", "Implementation-Title": project.name, "Implementation-Version": "${version}", "Implementation-Vendor" :"rardog", "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) } } jar.finalizedBy('reobfJar')