Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- repositories {
- maven { url = 'https://files.minecraftforge.net/maven' }
- jcenter()
- mavenCentral()
- }
- dependencies {
- classpath 'net.minecraftforge.gradle:ForgeGradle:3.+'
- }
- }
- apply plugin: 'net.minecraftforge.gradle'
- apply plugin: 'eclipse'
- apply plugin: 'maven-publish'
- version = '1.0'
- group = 'com.yourname.modid' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
- archivesBaseName = 'modid'
- sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
- minecraft {
- mappings channel: 'snapshot', version: '20171003-1.12'
- // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
- // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
- runs {
- client {
- workingDirectory project.file('run')
- property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
- property 'forge.logging.console.level', 'debug'
- }
- server {
- property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
- property 'forge.logging.console.level', 'debug'
- }
- }
- }
- dependencies {
- minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2854'
- }
- jar {
- manifest {
- attributes([
- "Specification-Title": "examplemod",
- "Specification-Vendor": "examplemodsareus",
- "Specification-Version": "1",
- "Implementation-Title": project.name,
- "Implementation-Version": "${version}",
- "Implementation-Vendor" :"examplemodsareus",
- "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
- ])
- }
- }
- jar.finalizedBy('reobfJar')
- //publish.dependsOn('reobfJar')
- publishing {
- publications {
- mavenJava(MavenPublication) {
- artifact jar
- }
- }
- repositories {
- maven {
- url "file:///${project.projectDir}/mcmodsrepo"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement