From 3d3ece72d295c29be86e47f07ed7fea83f75d85a Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Thu, 23 Nov 2017 12:39:34 +0100 Subject: [PATCH] Do not add task dependency from "sourcesJar" on "classes" There doesn't seem to be any problem with collecting sources of the project separately from compiling the project --- buildSrc/src/main/kotlin/artifacts.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/artifacts.kt b/buildSrc/src/main/kotlin/artifacts.kt index 97f69be42e0..563fc37cb89 100644 --- a/buildSrc/src/main/kotlin/artifacts.kt +++ b/buildSrc/src/main/kotlin/artifacts.kt @@ -85,7 +85,6 @@ fun Project.sourcesJar(body: Jar.() -> Unit = {}): Jar = } catch (e: UnknownDomainObjectException) { // skip default sources location } - tasks.findByName("classes")?.let { dependsOn(it) } body() project.addArtifact("archives", this, this) }