From 482c07d9914f4c70b10441aa8a9266ff3a6553d0 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Mon, 22 Jun 2015 21:32:46 +0100 Subject: [PATCH] Some small fixes to the gradle script. --- build.gradle | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 63406fb1c..8a720e2e9 100644 --- a/build.gradle +++ b/build.gradle @@ -117,6 +117,7 @@ processResources // replace stuff in mcmod.info, nothing else from(sourceSets.main.resources.srcDirs) { include '*.info' + include 'package-info.java' // replace version and mcversion expand 'version':project.version, 'mcversion':project.minecraft.version @@ -125,6 +126,7 @@ processResources // copy everything else, thats not the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude '**/*.info' + exclude 'package-info.java' } } @@ -148,11 +150,13 @@ jar { } task apiJar(type: Jar) { - from(sourceSets.main.java) { - include 'techreborn/api/**' - appendix = 'api' - classifier = "api" - } + from sourceSets.main.allSource + from sourceSets.main.output + include 'techreborn/api/**/*' + + appendix = 'api' + classifier = "api" + } apiJar.mustRunAfter deobfJar