2025-02-17 17:31:30 +03:00
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net/' }
mavenCentral ( )
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:3.+'
}
}
apply plugin: 'net.minecraftforge.gradle'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
version = '1.0'
2025-02-21 14:01:06 +03:00
group = 'com.punkcraft.zombiedrop' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'zombiedrop'
2025-02-17 17:31:30 +03:00
sourceCompatibility = targetCompatibility = compileJava . sourceCompatibility = compileJava . targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
minecraft {
mappings channel: 'snapshot' , version: '20171003-1.12'
runs {
client {
workingDirectory project . file ( 'run' )
// Recommended logging data for a userdev environment
property 'forge.logging.markers' , 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level' , 'debug'
}
server {
// Recommended logging data for a userdev environment
property 'forge.logging.markers' , 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level' , 'debug'
}
}
}
dependencies {
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2860'
}
2025-02-21 14:01:06 +03:00
// ZombieDrop for how to get properties into the manifest for reading by the runtime..
2025-02-17 17:31:30 +03:00
jar {
manifest {
attributes ( [
2025-02-21 14:01:06 +03:00
"Specification-Title" : "zombiedropmod" ,
"Specification-Vendor" : "zombiedropmodsareus" ,
2025-02-17 17:31:30 +03:00
"Specification-Version" : "1" , // We are version 1 of ourselves
"Implementation-Title" : project . name ,
"Implementation-Version" : "${version}" ,
2025-02-21 14:01:06 +03:00
"Implementation-Vendor" : "zombiedropmodsareus" ,
2025-02-17 17:31:30 +03:00
"Implementation-Timestamp" : new Date ( ) . format ( "yyyy-MM-dd'T'HH:mm:ssZ" )
] )
}
}
jar . finalizedBy ( 'reobfJar' )
publishing {
publications {
mavenJava ( MavenPublication ) {
artifact jar
}
}
repositories {
maven {
url "file:///${project.projectDir}/mcmodsrepo"
}
}
}