Add sonar plugin config to parent POM file 92/492/4
authorLott, Christopher (cl778h) <cl778h@att.com>
Tue, 9 Jul 2019 21:43:18 +0000 (17:43 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Wed, 10 Jul 2019 11:27:53 +0000 (07:27 -0400)
Upgrade to Java 11 compiler and openjdk:11 base image.
Upgrade version of jacoco plugin.
Drop forkCount=0 config on surefire plugin.

Change-Id: I2355f950c1689cfda01a0f21783cb0a0025de1f9
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
docs/release-notes.rst
pom.xml
webapp-backend/pom.xml

index d046a73..253d43d 100644 (file)
 RIC Dashboard Release Notes
 ===========================
 
-Version 1.2.0, 9 July 2019
---------------------------
+Version 1.2.0, 10 July 2019
+---------------------------
 * Split URL properties into prefix/suffix parts
 * Add jacoco plugin to back-end for code coverage
+* Compile with Java version 11, run with image openjdk:11
 
 Version 1.0.5, 5 July 2019
 --------------------------
diff --git a/pom.xml b/pom.xml
index 8fd45a3..dd13491 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -35,7 +35,7 @@ limitations under the License.
        <packaging>pom</packaging>
        <version>1.2.0-SNAPSHOT</version>
        <properties>
-               <java.version>8</java.version>
+               <java.version>11</java.version>
                <!-- Properties for the license-maven-plugin in child POMs -->
                <lmp.organization.name>AT&amp;T Intellectual Property and Nokia</lmp.organization.name>
                <lmp.project.name>O-RAN-SC</lmp.project.name>
@@ -62,14 +62,6 @@ limitations under the License.
                                        <target>${java.version}</target>
                                </configuration>
                        </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-surefire-plugin</artifactId>
-                               <configuration>
-                                       <!-- For Java 9 and later -->
-                                       <forkCount>0</forkCount>
-                               </configuration>
-                       </plugin>
                        <!-- Always generate a source jar -->
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
@@ -91,6 +83,12 @@ limitations under the License.
                                        <skip>true</skip>
                                </configuration>
                        </plugin>
+                       <!-- support sonar in multi-module project -->
+                       <plugin>
+                               <groupId>org.sonarsource.scanner.maven</groupId>
+                               <artifactId>sonar-maven-plugin</artifactId>
+                               <version>3.6.0.1398</version>
+                       </plugin>
                </plugins>
                <pluginManagement>
                        <plugins>
index 01362c6..89a8315 100644 (file)
@@ -189,7 +189,7 @@ limitations under the License.
                        <plugin>
                                <groupId>org.jacoco</groupId>
                                <artifactId>jacoco-maven-plugin</artifactId>
-                               <version>0.7.9</version>
+                               <version>0.8.4</version>
                                <executions>
                                        <execution>
                                                <id>default-prepare-agent</id>
@@ -222,7 +222,7 @@ limitations under the License.
                                                        <!-- Avoid maven artifact name here -->
                                                        <name>ric-dashboard:${project.version}</name>
                                                        <build>
-                                                               <from>openjdk:8-jre-slim</from>
+                                                               <from>openjdk:11-jre-slim</from>
                                                                <tags>
                                                                        <!-- Add tag with build number -->
                                                                        <tag>${project.version}</tag>