2018-09-12 01:29:35 +02:00
|
|
|
buildscript {
|
2019-01-26 07:59:07 +01:00
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
maven {
|
|
|
|
name 'forge'
|
|
|
|
url 'http://files.minecraftforge.net/maven/'
|
2018-09-12 01:29:35 +02:00
|
|
|
}
|
2019-01-26 07:59:07 +01:00
|
|
|
maven {
|
|
|
|
name = "sonatype"
|
|
|
|
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
2018-09-12 01:29:35 +02:00
|
|
|
}
|
2019-01-26 07:59:07 +01:00
|
|
|
maven {
|
|
|
|
name = 'sponge'
|
|
|
|
url = 'http://repo.spongepowered.org/maven'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:' + project.forgeGradleVersion
|
|
|
|
}
|
2018-09-12 01:29:35 +02:00
|
|
|
}
|
|
|
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
|
|
|
|
2019-01-26 07:40:23 +01:00
|
|
|
def ver = "${project.buildType}${project.buildVersion}.${project.buildRevision}"
|
2018-09-12 01:29:35 +02:00
|
|
|
|
|
|
|
version = ver
|
|
|
|
group = project.group
|
2019-01-07 13:49:01 +01:00
|
|
|
description = project.description
|
2018-09-12 01:29:35 +02:00
|
|
|
|
|
|
|
minecraft {
|
2019-01-26 07:59:07 +01:00
|
|
|
version = project.mcVersion + '-' + project.mcfVersion
|
|
|
|
mappings = project.mcMappings
|
|
|
|
runDir = 'run'
|
|
|
|
replace '@MODID@', project.modid
|
|
|
|
replace '@NAME@', project.name
|
|
|
|
replace '@AUTHOR@', project.author
|
|
|
|
replace '@VERSION@', ver
|
|
|
|
replace '@DESCRIPTION@', project.description
|
2018-09-12 01:29:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
|
|
|
sourceSets {
|
2019-03-09 17:24:16 +01:00
|
|
|
jei {
|
|
|
|
compileClasspath += main.compileClasspath
|
2019-03-09 19:02:27 +01:00
|
|
|
compileClasspath += main.output
|
2019-03-09 17:24:16 +01:00
|
|
|
}
|
2019-01-26 07:59:07 +01:00
|
|
|
external {
|
|
|
|
compileClasspath += main.compileClasspath
|
|
|
|
}
|
|
|
|
main {
|
|
|
|
compileClasspath += external.output
|
|
|
|
ext.refMap = project.refCore
|
|
|
|
}
|
2018-09-12 01:29:35 +02:00
|
|
|
}
|
|
|
|
|
2019-01-07 09:35:11 +01:00
|
|
|
repositories {
|
2019-01-26 07:59:07 +01:00
|
|
|
flatDir {
|
|
|
|
dir 'lib'
|
|
|
|
}
|
2019-03-05 11:45:56 +01:00
|
|
|
maven {
|
|
|
|
// location of the maven that hosts JEI files
|
|
|
|
name = "Progwml6 maven"
|
|
|
|
url = "http://dvs1.progwml6.com/files/maven"
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
// location of a maven mirror for JEI files, as a fallback
|
|
|
|
name = "ModMaven"
|
|
|
|
url = "modmaven.k-4u.nl"
|
|
|
|
}
|
2019-01-07 09:35:11 +01:00
|
|
|
}
|
|
|
|
dependencies {
|
2019-01-26 07:59:07 +01:00
|
|
|
deobfCompile('com.minelittlepony:jumpingcastle:1.12.2.1.0.0:universal')
|
2019-03-05 11:45:56 +01:00
|
|
|
// compile against the JEI API but do not include it at runtime
|
|
|
|
deobfProvided "mezz.jei:jei_${project.mcVersion}:${project.jeiVersion}:api"
|
|
|
|
// at runtime, use the full JEI jar
|
|
|
|
runtime "mezz.jei:jei_${project.mcVersion}:${project.jeiVersion}"
|
2019-01-07 09:35:11 +01:00
|
|
|
}
|
|
|
|
|
2019-01-07 13:49:01 +01:00
|
|
|
processResources {
|
2019-01-26 07:59:07 +01:00
|
|
|
def props = [
|
|
|
|
modid: project.modid,
|
|
|
|
name: project.title,
|
|
|
|
description: project.description,
|
|
|
|
version: ver,
|
|
|
|
revision: project.buildRevision,
|
|
|
|
mcversion: project.mcVersion,
|
|
|
|
author: project.author
|
|
|
|
]
|
2019-01-07 13:49:01 +01:00
|
|
|
|
2019-01-26 07:59:07 +01:00
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
|
|
include 'mcmod.info'
|
|
|
|
expand props
|
|
|
|
}
|
|
|
|
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
|
|
exclude 'mcmod.info'
|
|
|
|
}
|
2018-09-12 01:29:35 +02:00
|
|
|
}
|
2019-01-26 07:40:23 +01:00
|
|
|
|
|
|
|
jar {
|
2019-01-31 22:07:47 +01:00
|
|
|
from sourceSets.main.output
|
|
|
|
from sourceSets.external.output
|
2019-03-09 19:02:27 +01:00
|
|
|
from sourceSets.jei.output
|
2019-01-26 07:59:07 +01:00
|
|
|
baseName = "Unicopia-mc${project.mcVersion}"
|
2019-01-26 07:40:23 +01:00
|
|
|
}
|