-
Notifications
You must be signed in to change notification settings - Fork 96
GH-537: [Release][Docs] Generate API reference #538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
a1ced97
91856a3
37405a4
66f8d20
c67ff78
78894ed
8f72f36
4c97050
81ee16f
9a69761
591e892
076c7f7
01da511
da8524e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,21 +17,19 @@ | |
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| set -eo pipefail | ||
| set -euo pipefail | ||
|
|
||
| if [[ "${ARROW_JAVA_BUILD:-ON}" != "ON" ]]; then | ||
| exit | ||
| fi | ||
|
|
||
| source_dir=${1} | ||
| build_dir=${2} | ||
| build_dir=${2}/java | ||
| java_jni_dist_dir=${3} | ||
|
|
||
| : "${BUILD_DOCS_JAVA:=OFF}" | ||
|
|
||
| mvn="mvn -B -DskipTests -Drat.skip=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn" | ||
|
|
||
| if [ "$ARROW_JAVA_SKIP_GIT_PLUGIN" ]; then | ||
| if [ "${ARROW_JAVA_SKIP_GIT_PLUGIN:-OFF}" = "ON" ]; then | ||
| mvn="${mvn} -Dmaven.gitcommitid.skip=true" | ||
| fi | ||
|
|
||
|
|
@@ -61,27 +59,38 @@ done | |
|
|
||
| pushd "${build_dir}" | ||
|
|
||
| if [ "${ARROW_JAVA_SHADE_FLATBUFFERS}" == "ON" ]; then | ||
| # TODO: ARROW_JAVA_SHADE_FLATBUFFERS isn't used for our artifacts. Do | ||
| # we need this? | ||
| # See also: https://github.com/apache/arrow/issues/22021 | ||
| if [ "${ARROW_JAVA_SHADE_FLATBUFFERS:-OFF}" == "ON" ]; then | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we need to revisit this sometime because of #67 (and it appears Google has closed the issue asking them to fix it upstream). AFAIK the discussion in the issue you found is weird...We shouldn't need to change imports ourselves, the shading should take care of that. But that's not relevant here.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK. Can we use #67 for this topic? Or should we create a separated issue for this topic?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, we can use #67! |
||
| mvn="${mvn} -Pshade-flatbuffers" | ||
| fi | ||
|
|
||
| if [ "${ARROW_JAVA_CDATA}" = "ON" ]; then | ||
| if [ "${ARROW_JAVA_CDATA:-OFF}" = "ON" ]; then | ||
| mvn="${mvn} -Darrow.c.jni.dist.dir=${java_jni_dist_dir} -Parrow-c-data" | ||
| fi | ||
|
|
||
| if [ "${ARROW_JAVA_JNI}" = "ON" ]; then | ||
| if [ "${ARROW_JAVA_JNI:-OFF}" = "ON" ]; then | ||
| mvn="${mvn} -Darrow.cpp.build.dir=${java_jni_dist_dir} -Parrow-jni" | ||
| fi | ||
|
|
||
| # Use `2 * ncores` threads | ||
| ${mvn} -T 2C clean install | ||
|
|
||
| if [ "${BUILD_DOCS_JAVA}" == "ON" ]; then | ||
| # HTTP pooling is turned of to avoid download issues https://issues.apache.org/jira/browse/ARROW-11633 | ||
| # GH-43378: Maven site plugins not compatible with multithreading | ||
| mkdir -p "${build_dir}"/docs/java/reference | ||
| ${mvn} -Dcheckstyle.skip=true -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false clean install site | ||
| rsync -a target/site/apidocs/ "${build_dir}"/docs/java/reference | ||
| if [ "${ARROW_JAVA_BUILD_DOCS:-OFF}" == "ON" ]; then | ||
| # HTTP pooling is turned off to avoid download issues: | ||
| # https://github.com/apache/arrow/issues/27496 | ||
| # | ||
| # Maven site plugins not compatible with multithreading: | ||
| # https://github.com/apache/arrow/issues/43378 | ||
| ${mvn} \ | ||
| -Dcheckstyle.skip=true \ | ||
| -Dhttp.keepAlive=false \ | ||
| -Dmaven.wagon.http.pool=false \ | ||
| site | ||
| rm -rf docs/reference | ||
| mkdir -p docs | ||
| cp -a target/site/apidocs/ docs/reference | ||
| fi | ||
|
|
||
| popd | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this build the docs for the JNI components too? Or do we need to enable the JNI build to get the Javadocs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No.
Yes. But it's easy because we already have JNI enabled jobs. I'll do it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we can use
docker compose run vcpkg-jnibut it doesn't create JAR. So I can't use it formvn site.I used
ci/scripts/jni_full_build.shinstead.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yes, vcpkg-jni only builds the shared object and not the full package