mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
93 lines
1.9 KiB
Groovy
93 lines
1.9 KiB
Groovy
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
maven {
|
|
name 'forge'
|
|
url 'http://files.minecraftforge.net/maven/'
|
|
}
|
|
maven {
|
|
name = "sonatype"
|
|
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
|
}
|
|
maven {
|
|
name = 'sponge'
|
|
url = 'http://repo.spongepowered.org/maven'
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:' + project.forgeGradleVersion
|
|
classpath 'org.spongepowered:mixingradle:' + project.mixinGradleVersion
|
|
}
|
|
}
|
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
|
apply plugin: 'org.spongepowered.mixin'
|
|
|
|
def ver = "${project.buildType}${project.buildVersion}.${project.buildRevision}"
|
|
|
|
version = ver
|
|
group = project.group
|
|
description = project.description
|
|
|
|
minecraft {
|
|
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
|
|
}
|
|
|
|
mixin {
|
|
defaultObfuscationEnv notch
|
|
}
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
sourceSets {
|
|
external {
|
|
compileClasspath += main.compileClasspath
|
|
}
|
|
main {
|
|
compileClasspath += external.output
|
|
ext.refMap = project.refCore
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
flatDir {
|
|
dir 'lib'
|
|
}
|
|
}
|
|
dependencies {
|
|
deobfCompile('com.minelittlepony:jumpingcastle:1.12.2.1.0.0:universal')
|
|
}
|
|
|
|
processResources {
|
|
def props = [
|
|
modid: project.modid,
|
|
name: project.title,
|
|
description: project.description,
|
|
version: ver,
|
|
revision: project.buildRevision,
|
|
mcversion: project.mcVersion,
|
|
author: project.author
|
|
]
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
include 'mcmod.info'
|
|
expand props
|
|
}
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
exclude 'mcmod.info'
|
|
}
|
|
}
|
|
|
|
jar {
|
|
from sourceSets.main.output
|
|
from sourceSets.external.output
|
|
baseName = "Unicopia-mc${project.mcVersion}"
|
|
}
|