You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ch...@apache.org on 2020/09/28 06:11:18 UTC

[incubator-dolphinscheduler] 01/01: Set up JDK 11 for SonarCloud in github action. (#3052)

This is an automated email from the ASF dual-hosted git repository.

chenxingchun pushed a commit to branch 1.3.3-release
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git

commit a51dafc3826e142a08ef03d71e21918d80f677d6
Author: Jave-Chen <ba...@gmail.com>
AuthorDate: Thu Jun 25 23:41:43 2020 +0800

    Set up JDK 11 for SonarCloud in github action. (#3052)
    
    * Set up JDK 11 for SonarCloud in github action.
    
    * Fix javadoc error with JDK 11.
    
    * Prevent Javadoc from stopping if it finds any html errors.
---
 .github/workflows/ci_ut.yml | 8 ++++++--
 pom.xml                     | 4 ++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci_ut.yml b/.github/workflows/ci_ut.yml
index 7ab6966..7efc74b 100644
--- a/.github/workflows/ci_ut.yml
+++ b/.github/workflows/ci_ut.yml
@@ -67,10 +67,14 @@ jobs:
       - name: Upload coverage report to codecov
         run: |
           CODECOV_TOKEN="09c2663f-b091-4258-8a47-c981827eb29a" bash <(curl -s https://codecov.io/bash)
+      # Set up JDK 11 for SonarCloud.
+      - name: Set up JDK 1.11
+        uses: actions/setup-java@v1
+        with:
+          java-version: 1.11
       - name: Run SonarCloud Analysis
         run: >
-          mvn verify --batch-mode
-          org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.1.1688:sonar
+          mvn --batch-mode verify sonar:sonar
           -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml
           -Dmaven.test.skip=true
           -Dsonar.host.url=https://sonarcloud.io
diff --git a/pom.xml b/pom.xml
index 7d9f79c..b08cb52 100644
--- a/pom.xml
+++ b/pom.xml
@@ -597,6 +597,10 @@
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-javadoc-plugin</artifactId>
                     <version>${maven-javadoc-plugin.version}</version>
+                    <configuration>
+                        <source>8</source>
+                        <failOnError>false</failOnError>
+                    </configuration>
                 </plugin>
 
                 <plugin>