123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- buildscript {
- repositories {
- maven { url = 'https://files.minecraftforge.net/maven' }
- jcenter()
- mavenCentral()
- }
- dependencies {
- classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
- }
- }
- apply plugin: 'net.minecraftforge.gradle'
- version = "${version_minecraft}-${version_mod}"
- group = "${mod_group}.${mod_id}"
- archivesBaseName = "${mod_id}"
- sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
- minecraft {
- mappings channel: 'snapshot', version: '20180921-1.13'
-
- runs {
- client = {
- properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP'
- properties 'forge.logging.console.level': 'debug'
- workingDirectory project.file('run').canonicalPath
- source sourceSets.main
- }
- server = {
- properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP'
- properties 'forge.logging.console.level': 'debug'
- workingDirectory project.file('run').canonicalPath
- source sourceSets.main
- }
- }
- }
- dependencies {
- minecraft 'net.minecraftforge:forge:1.13.2-25.0.10'
- }
- sourceSets {
- main {
- resources {
- srcDirs += 'docs'
- }
- }
- }
- jar {
- manifest {
- attributes(["Specification-Title": "${archivesBaseName}",
- "Specification-Vendor": "C4",
- "Specification-Version": "24.0",
- "Implementation-Title": project.name,
- "Implementation-Version": "${version}",
- "Implementation-Vendor" :"C4",
- "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
- }
- }
|