2019-07-11 09:03:08 +02:00
|
|
|
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'
|
|
|
|
// 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'
|
|
|
|
|
2019-10-13 21:30:25 +02:00
|
|
|
version = 'mc1.14.4_v0.2'
|
2019-08-06 19:00:51 +02:00
|
|
|
group = 'com.simibubi.create'
|
2019-07-11 09:03:08 +02:00
|
|
|
archivesBaseName = 'create'
|
|
|
|
|
2019-08-06 19:00:51 +02:00
|
|
|
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
|
2019-07-11 09:03:08 +02:00
|
|
|
|
|
|
|
minecraft {
|
2019-11-10 15:53:44 +01:00
|
|
|
mappings channel: 'snapshot', version: '20191107-1.14.3'
|
2019-07-11 09:03:08 +02:00
|
|
|
|
2019-08-06 21:51:02 +02:00
|
|
|
runs {
|
|
|
|
client {
|
2019-07-11 09:03:08 +02:00
|
|
|
workingDirectory project.file('run')
|
2019-08-06 19:00:51 +02:00
|
|
|
property 'forge.logging.console.level', 'info'
|
2019-07-11 09:03:08 +02:00
|
|
|
mods {
|
|
|
|
create {
|
|
|
|
source sourceSets.main
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-06 21:51:02 +02:00
|
|
|
server {
|
2019-09-18 11:16:57 +02:00
|
|
|
workingDirectory project.file('run/server')
|
2019-08-06 19:00:51 +02:00
|
|
|
property 'forge.logging.console.level', 'info'
|
|
|
|
mods {
|
|
|
|
create {
|
|
|
|
source sourceSets.main
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-07-11 09:03:08 +02:00
|
|
|
|
2019-08-06 21:51:02 +02:00
|
|
|
data {
|
2019-08-06 19:00:51 +02:00
|
|
|
workingDirectory project.file('run')
|
2019-07-11 09:03:08 +02:00
|
|
|
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
|
|
|
|
property 'forge.logging.console.level', 'debug'
|
|
|
|
args '--mod', 'create', '--all', '--output', file('src/generated/resources/')
|
|
|
|
mods {
|
|
|
|
create {
|
|
|
|
source sourceSets.main
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-16 12:27:28 +02:00
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
// location of the maven that hosts JEI files
|
|
|
|
name = "Progwml6 maven"
|
|
|
|
url = "https://dvs1.progwml6.com/files/maven/"
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
// location of a maven mirror for JEI files, as a fallback
|
|
|
|
name = "ModMaven"
|
|
|
|
url = "https://modmaven.k-4u.nl"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-11 09:03:08 +02:00
|
|
|
dependencies {
|
2019-11-10 15:53:44 +01:00
|
|
|
minecraft 'net.minecraftforge:forge:1.14.4-28.1.85'
|
2019-09-16 12:27:28 +02:00
|
|
|
|
|
|
|
// compile against the JEI API but do not include it at runtime
|
|
|
|
compileOnly fg.deobf("mezz.jei:jei-1.14.4:6.0.0.10:api")
|
|
|
|
// at runtime, use the full JEI jar
|
2019-10-18 13:14:03 +02:00
|
|
|
runtimeOnly fg.deobf("mezz.jei:jei-1.14.4:6.0.0.10")
|
2019-07-11 09:03:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes([
|
|
|
|
"Specification-Title": "create",
|
|
|
|
"Specification-Vendor": "simibubi",
|
2019-08-06 21:51:02 +02:00
|
|
|
"Specification-Version": "1",
|
2019-07-11 09:03:08 +02:00
|
|
|
"Implementation-Title": project.name,
|
|
|
|
"Implementation-Version": "${version}",
|
|
|
|
"Implementation-Vendor" :"simibubi",
|
|
|
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
|
|
|
|
])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Example configuration to allow publishing using the maven-publish task
|
|
|
|
// we define a custom artifact that is sourced from the reobfJar output task
|
|
|
|
// and then declare that to be published
|
|
|
|
// Note you'll need to add a repository here
|
|
|
|
def reobfFile = file("$buildDir/reobfJar/output.jar")
|
|
|
|
def reobfArtifact = artifacts.add('default', reobfFile) {
|
|
|
|
type 'jar'
|
|
|
|
builtBy 'reobfJar'
|
|
|
|
}
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
artifact reobfArtifact
|
|
|
|
}
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
url "file:///${project.projectDir}/mcmodsrepo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|