-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GEOMESA-3049 Add scaladocs to CI build (#3231)
* Fix overwrite of scaladocs by javadocs in mixed scala/java modules * Clean up github workflows
- Loading branch information
1 parent
3244490
commit 9c923e3
Showing
14 changed files
with
190 additions
and
222 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: javadocs | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
scala-version: | ||
required: false | ||
type: string | ||
default: "2.12" | ||
|
||
permissions: # added using https://github.com/step-security/secure-repo | ||
contents: read | ||
|
||
env: | ||
MAVEN_CLI_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dlicense.skip=true --batch-mode | ||
|
||
jobs: | ||
build-javadocs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
- uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 | ||
with: | ||
key: ${{ hashFiles('**/pom.xml') }}-javadocs-${{ inputs.scala-version }} | ||
path: ~/.m2/repository/ | ||
- name: Set Scala version | ||
run: ./build/scripts/change-scala-version.sh ${{ inputs.scala-version }} | ||
- name: Download artifacts | ||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | ||
with: | ||
name: classes-and-jars-${{ inputs.scala-version }} | ||
- name: Install artifacts | ||
run: | | ||
tar -xf classes.tgz | ||
mkdir -p ~/.m2/repository/org/locationtech/geomesa | ||
mv m2-geomesa/* ~/.m2/repository/org/locationtech/geomesa/ | ||
- name: Build scaladocs | ||
run: mvn generate-sources scala:doc-jar $MAVEN_CLI_OPTS | ||
- name: Build javadocs | ||
run: mvn generate-sources javadoc:jar $MAVEN_CLI_OPTS -pl :geomesa-arrow-jts | ||
- name: Remove geomesa artifacts | ||
if: success() || failure() | ||
run: rm -rf ~/.m2/repository/org/locationtech/geomesa |
Oops, something went wrong.