File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed
Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 77 name : Build
88 runs-on : ubuntu-latest
99 steps :
10- - uses : actions/checkout@v3
11- - name : Set up JDK 8
12- uses : actions/setup-java@v3
10+ - uses : actions/checkout@v4
11+ - name : Set up JDK 11
12+ uses : actions/setup-java@v4
1313 with :
14- distribution : ' zulu '
15- java-version : 8
14+ distribution : ' temurin '
15+ java-version : 11
1616 - name : Build with Maven
1717 run : mvn -B -U -f pom.xml install checkstyle:checkstyle
1818 - name : SonarQube scan
1919 run : |
2020 if [ $PROJECT_KEY != 'Hipparchus-Math/hipparchus' ] ; then export KEY_OPTION="-Dsonar.projectKey=${PROJECT_KEY/\//:}" ; fi
2121 if [ $PROJECT_KEY != 'Hipparchus-Math/hipparchus' ] ; then export PROJECT_NAME="$PROJECT_NAME ($PROJECT_KEY)" ; fi
22- mvn -B -f pom.xml sonar:sonar -Dsonar.login=$SONARQUBE_TOKEN -Dsonar.branch.name=${GITHUB_REF##*/} $KEY_OPTION -Dsonar.projectName="$PROJECT_NAME"
22+ mvn -B -f pom.xml sonar:sonar \
23+ -Dsonar.host.url=$SONARQUBE_HOST_URL \
24+ -Dsonar.login=$SONARQUBE_TOKEN \
25+ -Dsonar.branch.name=${GITHUB_REF##*/} \
26+ -Dsonar.projectName="$PROJECT_NAME" \
27+ \
28+ $KEY_OPTION
2329 env :
2430 SONARQUBE_TOKEN : ${{ secrets.SONARQUBE_TOKEN }}
31+ SONARQUBE_HOST_URL : ${{ vars.SONARQUBE_HOST_URL }}
2532 PROJECT_KEY : ${{ github.repository }}
2633 PROJECT_NAME : ' Hipparchus'
2734 KEY_OPTION : ' '
Original file line number Diff line number Diff line change 530530 <hipparchus .hamcrest.version>2.2</hipparchus .hamcrest.version>
531531 <hipparchus .reflow-velocity-tools.version>2.0.0</hipparchus .reflow-velocity-tools.version>
532532 <hipparchus .mathjax.enable>< script src=" https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js" id=" MathJax-script">< /script> </hipparchus .mathjax.enable>
533- <!-- sonar related properties -->
534- <sonar .host.url>https://sonar.orekit.org/</sonar .host.url>
535533 </properties >
536534
537535 <build >
You can’t perform that action at this time.
0 commit comments