Unable to publish sbt plugin to sonatype due to missing javadoc
mdedetrich opened this issue · comments
Matthew de Detrich commented
Describe the bug
When publishing an sbt plugin to sonatype I get the following error
2022-03-11 14:34:15.198Z error [SonatypeClient] [close] Failed - (SonatypeClient.scala:182)
2022-03-11 14:34:15.198Z error [SonatypeClient] Activity name:close, started:2022-03-11T14:34:00.755Z - (SonatypeClient.scala:458)
2022-03-11 14:34:15.200Z error [SonatypeClient] Failed: javadoc-staging, failureMessage:Missing: no javadoc jar found in folder '/com/lightbend/paradox/sbt-paradox-project-info_2.12_1.0/1.1.9' - (SonatypeClient.scala:376)
This is even when using
ThisBuild / Compile / doc / sources := Seq()
(see #30 (comment))
How to reproduce the issue
Describe how to reproduce the issue and show the current configurations.
- sbt version: 1.6.2
- sbt-sonatype version: 3.9.10
- Show your build settings:
https://github.com/lightbend/sbt-paradox-project-info/blob/master/build.sbt#L61-L66
$ sbt
> sonatypeProfileName
com.lightbend
> sonatypeRepository
https://oss.sonatype.org/service/local
- GitHub repository: (Having a GitHub repository for reproducing the issue would be helpful)
https://github.com/lightbend/sbt-paradox-project-info
Additional context
Log can be seen here: https://github.com/lightbend/sbt-paradox-project-info/runs/5512306466?check_suite_focus=true
Project issue: lightbend/sbt-paradox-project-info#31
Matthew de Detrich commented
Project had Compile / packageDoc / publishArtifact := false
in the build.sbt
which I didn't notice, removing it fixed the problem.