buildscript { repositories { jcenter() maven { name = "forge" url = "http://files.minecraftforge.net/maven" } } dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true } } apply plugin: 'net.minecraftforge.gradle' apply plugin: 'eclipse' apply plugin: 'idea' version = "2.0.0" group = "de.ellpeck.actuallyadditions" archivesBaseName = "ActuallyAdditions-1.14.4" sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' minecraft { mappings channel: "snapshot", version: "20191107-1.14.3" runs { client = { properties 'forge.logging.markers': '' properties 'forge.logging.console.level': 'debug' workingDirectory project.file('run').canonicalPath source sourceSets.main } server = { properties 'forge.logging.markers': '' properties 'forge.logging.console.level': 'debug' workingDirectory project.file('run').canonicalPath source sourceSets.main } data = { workingDirectory project.file("run/data").canonicalPath args "--mod", "actuallyadditions", "--all", "--output", "\"" + file("src/generated/resources").toString() + "\"", "--validate", "--existing", "\"" + sourceSets.main.resources.srcDirs[0] + "\"" mods { actuallyadditions { source sourceSets.main } } } } } repositories { maven { url "http://dvs1.progwml6.com/files/maven" } maven { url "http://tehnut.info/maven" } } dependencies { minecraft 'net.minecraftforge:forge:1.14.4-28.1.86' compile fg.deobf('mezz.jei:jei-1.14.4:+') compile fg.deobf('mcp.mobius.waila:Hwyla:1.10+') compile fileTree(dir: 'libs', include: '*.jar') } jar { manifest { attributes(["Specification-Title": "actuallyadditions", "Specification-Vendor": "Ellpeck", "Specification-Version": "24.0", "Implementation-Title": project.name, "Implementation-Version": "${version}", "Implementation-Vendor" :"Ellpeck", "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],) } } /*TODO: Re-evaluate def normalManifest = { attributes( "Built-On": "1.14.4", "Implementation-Title": "ActuallyAdditions", "Implementation-Version": project.version, "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ) } jar { exclude(".cache") manifest normalManifest } task deobfJar(type: Jar) { from sourceSets.main.output from sourceSets.main.java classifier = 'dev' exclude(".cache") manifest normalManifest } task apiJar(type: Jar) { from sourceSets.main.output from sourceSets.main.java classifier = 'api' include 'de/ellpeck/actuallyadditions/api/**' } javadoc { include 'de/ellpeck/actuallyadditions/api/**' } task javadocJar(type: Jar, dependsOn: javadoc) { from 'build/docs/javadoc' classifier 'javadoc' } task sourcesJar(type: Jar) { from sourceSets.main.java classifier = 'sources' } apply plugin: 'maven-publish' publishing { publications { mavenJava(MavenPublication) { artifact jar artifact apiJar artifact javadocJar artifact sourcesJar artifact deobfJar } } repositories { maven { url "file:///srv/nginx/maven" } } } */