From cc38cec9887948ac6043921740d0206afbfc7b38 Mon Sep 17 00:00:00 2001 From: Erlend Ã…mdal Date: Sat, 11 May 2019 00:40:05 +0200 Subject: Fix tests by properly declaring test input classes (#130) --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index f8d20160..7711454f 100644 --- a/build.gradle +++ b/build.gradle @@ -104,8 +104,8 @@ dependencies { // For each set of test inputs, create an output jar and obfuscate it. file('src/test/java/cuchaz/enigma/inputs').listFiles().each { theFile -> if (theFile.directory) { - task("${theFile.name}TestJar", type: Jar, dependsOn: testClasses) { - from('build/classes/test') { + task("${theFile.name}TestJar", type: Jar) { + from(sourceSets.test.output) { include "cuchaz/enigma/inputs/$theFile.name/**/*.class" include 'cuchaz/enigma/inputs/Keep.class' } -- cgit v1.2.3