Details
-
Type:
Bug
-
Status:
Open
-
Resolution: Unresolved
-
Affects Version/s: 1.0-milestone-8
-
Fix Version/s: None
Description
A simple project which creates just a tar/jar/zip from some files and sets the classifier to "dist". (See attached build.gradle).
"gradle tasks" no longer displays the "install" task and invoking the "install" tasks gives a "Task not found" error.
"gradle uploadArchives" uploads the tar/jar/zip without replacing "SNAPSHOT" with a timestamp and does not upload the POM.
Removing the classifier specification from the ArchiveTask definition resolves the problem.
The same behavior is displayed if the classifier is instead added in the artifacts.archives specification:
artifacts {
archives(myZip) {
classifier = "dist"
}
}
An extended discussion of this issue can be found here: http://forums.gradle.org/gradle/topics/pom_doesnt_upload
duplicate of GRADLE-2125