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}