You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "sarutak (via GitHub)" <gi...@apache.org> on 2026/04/30 13:12:57 UTC
[PR] [SPARK-56675][BUILD] Make sbt publishLocal work [spark]
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-56675][BUILD] Make sbt publishLocal work [spark]
Posted by "sarutak (via GitHub)" <gi...@apache.org>.
sarutak commented on PR #55624:
URL: https://github.com/apache/spark/pull/55624#issuecomment-4368725056
Merged to `master`, `branch-4.x` and `branch-4.2`.
Thank you @pan3793 for reviewing!
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-56675][BUILD] Make sbt publishLocal work [spark]
Posted by "sarutak (via GitHub)" <gi...@apache.org>.
sarutak commented on PR #55624:
URL: https://github.com/apache/spark/pull/55624#issuecomment-4370431241
Thank you @HyukjinKwon !
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-56675][BUILD] Make sbt publishLocal work [spark]
Posted by "sarutak (via GitHub)" <gi...@apache.org>.
sarutak closed pull request #55624: [SPARK-56675][BUILD] Make sbt publishLocal work
URL: https://github.com/apache/spark/pull/55624
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org