Gradle is such a piece of c%@(

This commit is contained in:
Sollace 2019-01-07 14:49:01 +02:00
parent f798900020
commit 4e1e2f5829
2 changed files with 11 additions and 11 deletions

View file

@ -26,7 +26,7 @@ def ver = "${project.mcVersion}.${project.buildVersion}-${project.buildType}"
version = ver
group = project.group
description = project.name
description = project.description
minecraft {
version = project.mcVersion + '-' + project.mcfVersion
@ -53,7 +53,7 @@ sourceSets {
}
main {
compileClasspath += external.output
refMap = project.refCore
ext.refMap = project.refCore
}
}
@ -66,23 +66,23 @@ dependencies {
deobfCompile('com.minelittlepony:jumpingcastle:1.12.2.1.0.0:universal')
}
jar {
processResources {
def props = [
modid: project.modid,
name: project.name,
name: project.title,
description: project.description,
version: ver,
revision: project.buildRevision,
mcversion: project.mcVersion,
author: project.author
]
inputs.properties props
from(sourceSets.main.output) {
exclude 'mcmod.info'
}
from(sourceSets.main.output) {
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand props
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}

View file

@ -1,5 +1,5 @@
modid=unicopia
name=Unicopia Redux
title=Unicopia Redux
group=com.minelittlepony.unicopia
author=Sollace
description=Magical Abilities for Mine Little Pony!