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
|
|
|
|
}
|
|
|
|
}
|
2020-04-13 08:58:57 +02:00
|
|
|
plugins {
|
|
|
|
id 'com.github.johnrengelman.shadow' version '5.2.0'
|
|
|
|
}
|
2019-07-11 09:03:08 +02:00
|
|
|
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'
|
|
|
|
|
2020-04-12 21:25:52 +02:00
|
|
|
version = 'mc1.15.2_v0.2.3'
|
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 {
|
2020-03-21 20:42:00 +01:00
|
|
|
mappings channel: 'snapshot', version: '20200301-mixed-1.15.2'
|
2020-04-11 00:55:51 +02:00
|
|
|
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
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'
|
2020-03-28 02:27:43 +01:00
|
|
|
property 'fml.earlyprogresswindow', 'false'
|
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')
|
2020-03-28 02:27:43 +01:00
|
|
|
property 'forge.logging.markers', 'REGISTRIES,REGISTRYDUMP'
|
2019-07-11 09:03:08 +02:00
|
|
|
property 'forge.logging.console.level', 'debug'
|
2020-03-28 02:27:43 +01:00
|
|
|
property 'fml.earlyprogresswindow', 'false'
|
2020-05-15 01:23:27 +02:00
|
|
|
args '--mod', 'create', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources')
|
2019-07-11 09:03:08 +02:00
|
|
|
mods {
|
|
|
|
create {
|
|
|
|
source sourceSets.main
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-26 06:58:38 +02:00
|
|
|
sourceSets.main.resources {
|
|
|
|
srcDir 'src/generated/resources'
|
|
|
|
}
|
|
|
|
|
2019-09-16 12:27:28 +02:00
|
|
|
repositories {
|
2020-03-22 14:41:41 +01:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
//location of the maven for vazkii's mods
|
|
|
|
name "blamejared"
|
|
|
|
url "http://maven.blamejared.com/"
|
|
|
|
}
|
2020-03-23 04:09:28 +01:00
|
|
|
maven {
|
2020-04-13 08:58:57 +02:00
|
|
|
//location of the maven for mixed mappings and registrate
|
2020-03-23 04:09:28 +01:00
|
|
|
name = "tterrag maven"
|
|
|
|
url = "https://maven.tterrag.com/"
|
|
|
|
}
|
2019-09-16 12:27:28 +02:00
|
|
|
}
|
|
|
|
|
2020-04-13 08:58:57 +02:00
|
|
|
configurations {
|
|
|
|
shade
|
|
|
|
}
|
|
|
|
|
2019-07-11 09:03:08 +02:00
|
|
|
dependencies {
|
2020-05-18 22:01:09 +02:00
|
|
|
minecraft 'net.minecraftforge:forge:1.15.2-31.2.0'
|
2019-09-16 12:27:28 +02:00
|
|
|
|
2020-05-14 06:53:12 +02:00
|
|
|
def registrate = "com.tterrag.registrate:Registrate:MC1.15.2-0.0.3.11"
|
2020-04-13 08:58:57 +02:00
|
|
|
implementation fg.deobf(registrate)
|
|
|
|
shade registrate
|
|
|
|
|
2019-09-16 12:27:28 +02:00
|
|
|
// compile against the JEI API but do not include it at runtime
|
2020-03-21 20:42:00 +01:00
|
|
|
compileOnly fg.deobf("mezz.jei:jei-1.15.2:6.0.0.2:api")
|
2019-09-16 12:27:28 +02:00
|
|
|
// at runtime, use the full JEI jar
|
2020-03-21 20:42:00 +01:00
|
|
|
runtimeOnly fg.deobf("mezz.jei:jei-1.15.2:6.0.0.2")
|
2020-03-22 14:41:41 +01:00
|
|
|
|
|
|
|
// i'll leave this here commented for easier testing
|
|
|
|
//runtimeOnly fg.deobf("vazkii.arl:AutoRegLib:1.4-35.69")
|
|
|
|
//runtimeOnly fg.deobf("vazkii.quark:Quark:r2.0-212.984")
|
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")
|
|
|
|
])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-13 08:58:57 +02:00
|
|
|
shadowJar {
|
|
|
|
configurations = [project.configurations.shade]
|
|
|
|
relocate 'com.tterrag.registrate', 'com.simibubi.create.repack.registrate'
|
|
|
|
}
|
|
|
|
|
|
|
|
reobf {
|
|
|
|
shadowJar {}
|
|
|
|
}
|
|
|
|
|
2019-07-11 09:03:08 +02:00
|
|
|
// 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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|