sarutak opened a new pull request, #55624:
URL: https://github.com/apache/spark/pull/55624

   ### What changes were proposed in this pull request?
   This PR fixes an issue that `sbt publishLocal` doesn't work.
   The reason is that `packageDoc/publishArtifact` doesn't work (so `sbt doc` 
also doesn't work).
   In the Spark community, API documents are generated using `unidoc` and I 
feel having API documents in `~/.m2` or `~/.ivy2` is not so useful.
   So, the solution is publishing API documents by `packageDoc / 
publishArtifact := false`.
   In addition, this PR allows developers to configure whether to publish 
source JARs by an environment variable `PUBLISH_PACKAGE_SRC`. The default value 
is `false`, which is the same behavior as `mvn install`.
   
   ### Why are the changes needed?
   Having artifacts in `~/.m2` or `~.ivy2` is useful for downstream developers
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   Confirmed artifacts are in both `~/.m2` and `~/.ivy2` by the following 
command.
   ```
   $ build/sbt publishLocal
   ```
   
   Also confirmed `*-sources.jar` are in both `~/.m2` and `~/.ivy2` by the 
following command.
   ```
   $ PUBLISH_PACKAGE_SRC=1 build/sbt publishLocal
   ```
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to