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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user