Skip to content

Javadoc.

Javadoc. #420

Workflow file for this run

name: Java CI with Maven
on: [ push ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
- name: Build with Maven
run: mvn -B -U -f pom.xml install checkstyle:checkstyle
- name: SonarQube scan
run: |
export PROJECT_NAME="Hipparchus ($GITHUB_REPOSITORY)"
export PROJECT_KEY=${GITHUB_REPOSITORY/\//:}
mvn -B -f pom.xml sonar:sonar \
-Dsonar.host.url=$SONARQUBE_HOST_URL \
-Dsonar.login=$SONARQUBE_TOKEN \
-Dsonar.branch.name=${GITHUB_REF##*/} \
-Dsonar.projectName="$PROJECT_NAME" \
-Dsonar.projectKey="$PROJECT_KEY" \
-Dsonar.qualitygate.wait=true
env:
SONARQUBE_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
SONARQUBE_HOST_URL: ${{ vars.SONARQUBE_HOST_URL }}
- name: Deployment
if: ( github.repository == 'Hipparchus-Math/hipparchus' ) && ( ( github.ref == 'refs/heads/master' ) || startsWith( github.ref, 'refs/heads/release-' ) )
run: mvn -B -U -f pom.xml -s .CI/maven-settings.xml deploy -Pci-deploy -DskipTests=true
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}