xerial / sbt-sonatype

A sbt plugin for publishing Scala/Java projects to the Maven central.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to publish sbt plugin to sonatype due to missing javadoc

mdedetrich opened this issue · comments

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

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

Project had Compile / packageDoc / publishArtifact := false in the build.sbt which I didn't notice, removing it fixed the problem.