From f7beb537f07e9fec73e683cab66b72078ce7b827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3r=C3=A1nt=20Pint=C3=A9r?= Date: Thu, 1 Feb 2018 13:17:01 +0100 Subject: [PATCH] Add included build to JAR Instead of copying classes to the compile output, we now add them directly to the JAR. This allows JavaCompile to be cached, since there are no overlapping outputs anymore. --- core/spring-security-core.gradle | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/spring-security-core.gradle b/core/spring-security-core.gradle index 0e5361f18f..8cfb6fa838 100644 --- a/core/spring-security-core.gradle +++ b/core/spring-security-core.gradle @@ -34,12 +34,7 @@ dependencies { testRuntime 'org.hsqldb:hsqldb' } -classes.doLast { - copy { - from includeProject.sourceSets.main.output - into sourceSets.main.java.outputDir - } -} +tasks.jar.from { includeProject.sourceSets.main.output } tasks.sourcesJar.from {includeProject.sourceSets.main.java}