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
This commit is contained in:
Alexander Udalov
2017-11-23 12:39:34 +01:00
parent 200c62b574
commit 3d3ece72d2
-1
View File
@@ -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)
}