From 4e1e2f58299fe93a8b4fb543e106b8385491000f Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 7 Jan 2019 14:49:01 +0200 Subject: [PATCH] Gradle is such a piece of c%@( --- build.gradle | 20 ++++++++++---------- gradle.properties | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/build.gradle b/build.gradle index c7ea8b73..ad60a511 100644 --- a/build.gradle +++ b/build.gradle @@ -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' + } } diff --git a/gradle.properties b/gradle.properties index 7cd5e9e5..a35e6b5a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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!