diff options
author | Kai <lukai@chinamobile.com> | 2020-07-10 18:05:46 +0800 |
---|---|---|
committer | Kai <lukai@chinamobile.com> | 2020-07-15 10:03:34 +0800 |
commit | 0688c66229fe1bfb1d7d8920705b019d5cfeb17f (patch) | |
tree | 717656f8ceae006223a395da3737400627e19de9 /dcae-analytics | |
parent | ddb9b0f7e578aefd06ee9e3f01d810b0b9034f3a (diff) |
TCAGen2 java upgrade
Issue-ID: DCAEGEN2-2285
Signed-off-by: Kai Lu <lukai@chinamobile.com>
Change-Id: I1a7b3db68141ed8648fe47865f39dea22f0d999c
Diffstat (limited to 'dcae-analytics')
13 files changed, 155 insertions, 106 deletions
diff --git a/dcae-analytics/dcae-analytics-model/pom.xml b/dcae-analytics/dcae-analytics-model/pom.xml index 67a35a4..d7d2133 100644 --- a/dcae-analytics/dcae-analytics-model/pom.xml +++ b/dcae-analytics/dcae-analytics-model/pom.xml @@ -27,7 +27,7 @@ <parent> <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId> <artifactId>dcae-analytics</artifactId> - <version>1.1.0-SNAPSHOT</version> + <version>1.2.0-SNAPSHOT</version> </parent> <artifactId>dcae-analytics-model</artifactId> @@ -57,6 +57,14 @@ <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> </dependency> + <dependency> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-core</artifactId> + </dependency> + <dependency> + <groupId>com.fasterxml.jackson.dataformat</groupId> + <artifactId>jackson-dataformat-smile</artifactId> + </dependency> <!-- JSON PATH --> <dependency> diff --git a/dcae-analytics/dcae-analytics-model/src/main/java/org/onap/dcae/analytics/model/configbindingservice/ConfigBindingServiceConstants.java b/dcae-analytics/dcae-analytics-model/src/main/java/org/onap/dcae/analytics/model/configbindingservice/ConfigBindingServiceConstants.java index 2693a68..c859932 100644 --- a/dcae-analytics/dcae-analytics-model/src/main/java/org/onap/dcae/analytics/model/configbindingservice/ConfigBindingServiceConstants.java +++ b/dcae-analytics/dcae-analytics-model/src/main/java/org/onap/dcae/analytics/model/configbindingservice/ConfigBindingServiceConstants.java @@ -46,10 +46,12 @@ public abstract class ConfigBindingServiceConstants { public static final String CONFIG = "config"; public static final String TCAPOLICY = "tca.policy"; public static final String ITEMS = "items"; + public static final String POLICIES = "policies"; public static final int CONFIG_SERVICE_REFRESHPERIOD = 1; + public static final String CONFIG_POLICIES = "config-binding-service.config.policies.items[0].config.tca.policy"; public static final String POLICY = "config-binding-service.config.tca.policy"; - public static final String POLICIES = "config-binding-service.policies"; + public static final String WITHPOLICIES = "config-binding-service.policies.items[0].tca.policy"; public static final String PROCESSINGBATCHSIZE = "config-binding-service.config.tca.processing_batch_size"; public static final String ENABLEABATEMENT = "config-binding-service.config.tca.enable_abatement"; public static final String ENABLEECOMPLOGGING = "config-binding-service.config.tca.enable_ecomp_logging"; diff --git a/dcae-analytics/dcae-analytics-tca-core/pom.xml b/dcae-analytics/dcae-analytics-tca-core/pom.xml index 2a2ba83..f56842d 100644 --- a/dcae-analytics/dcae-analytics-tca-core/pom.xml +++ b/dcae-analytics/dcae-analytics-tca-core/pom.xml @@ -27,7 +27,7 @@ <parent> <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId> <artifactId>dcae-analytics</artifactId> - <version>1.1.0-SNAPSHOT</version> + <version>1.2.0-SNAPSHOT</version> </parent> <artifactId>dcae-analytics-tca-core</artifactId> diff --git a/dcae-analytics/dcae-analytics-tca-model/pom.xml b/dcae-analytics/dcae-analytics-tca-model/pom.xml index f400d58..ec3f1f9 100644 --- a/dcae-analytics/dcae-analytics-tca-model/pom.xml +++ b/dcae-analytics/dcae-analytics-tca-model/pom.xml @@ -27,7 +27,7 @@ <parent> <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId> <artifactId>dcae-analytics</artifactId> - <version>1.1.0-SNAPSHOT</version> + <version>1.2.0-SNAPSHOT</version> </parent> <artifactId>dcae-analytics-tca-model</artifactId> diff --git a/dcae-analytics/dcae-analytics-tca-web/Dockerfile b/dcae-analytics/dcae-analytics-tca-web/Dockerfile index b6e4778..411b6b1 100644 --- a/dcae-analytics/dcae-analytics-tca-web/Dockerfile +++ b/dcae-analytics/dcae-analytics-tca-web/Dockerfile @@ -3,7 +3,7 @@ # Only changes made in docker/Dockerfile template file will be persistent # ========================================================================== -FROM openjdk:8-jre-alpine +FROM openjdk:11-jre-slim MAINTAINER Rajiv Singla <rs153v@att.com> @@ -14,7 +14,7 @@ ARG DOCKER_ARTIFACT_DIR RUN mkdir -p /var/log/ONAP/dcaegen2/analytics/tca-gen2 #Add a new user and group to allow container to be run as non-root -RUN addgroup -S tca-gen2 && adduser -S -G tca-gen2 tca-gen2; \ +RUN groupadd tca-gen2 && useradd -g tca-gen2 tca-gen2; \ chmod a+rwx /opt; \ chmod a+rwx /var/log/ONAP/dcaegen2/analytics/tca-gen2; \ chown -R tca-gen2:tca-gen2 /opt; \ diff --git a/dcae-analytics/dcae-analytics-tca-web/pom.xml b/dcae-analytics/dcae-analytics-tca-web/pom.xml index 1275c71..57f9bdf 100644 --- a/dcae-analytics/dcae-analytics-tca-web/pom.xml +++ b/dcae-analytics/dcae-analytics-tca-web/pom.xml @@ -29,7 +29,7 @@ <parent> <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId> <artifactId>dcae-analytics</artifactId> - <version>1.1.0-SNAPSHOT</version> + <version>1.2.0-SNAPSHOT</version> </parent> <artifactId>dcae-analytics-tca-web</artifactId> @@ -119,7 +119,6 @@ <dependency> <groupId>io.undertow</groupId> <artifactId>undertow-core</artifactId> - <version>2.0.17.Final</version> </dependency> </dependencies> @@ -129,7 +128,7 @@ <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> - <version>5.0.11.RELEASE</version> + <version>5.1.12.RELEASE</version> </dependency> </dependencies> </dependencyManagement> @@ -157,7 +156,7 @@ <plugin> <groupId>com.spotify</groupId> <artifactId>dockerfile-maven-plugin</artifactId> - <version>1.4.3</version> + <version>1.4.10</version> <configuration> <contextDirectory>${project.basedir}</contextDirectory> <repository>${docker.repository}/${docker.image.name}</repository> diff --git a/dcae-analytics/dcae-analytics-tca-web/src/main/java/org/onap/dcae/analytics/tca/web/TcaAppProperties.java b/dcae-analytics/dcae-analytics-tca-web/src/main/java/org/onap/dcae/analytics/tca/web/TcaAppProperties.java index 0214a3d..d70922b 100644 --- a/dcae-analytics/dcae-analytics-tca-web/src/main/java/org/onap/dcae/analytics/tca/web/TcaAppProperties.java +++ b/dcae-analytics/dcae-analytics-tca-web/src/main/java/org/onap/dcae/analytics/tca/web/TcaAppProperties.java @@ -30,11 +30,6 @@ import org.onap.dcae.analytics.model.configbindingservice.BaseConfigBindingServi import org.onap.dcae.analytics.model.configbindingservice.ConfigBindingServiceConstants; import org.springframework.core.env.Environment; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParser; - import lombok.Data; import lombok.ToString; @@ -106,17 +101,12 @@ public class TcaAppProperties extends BaseConfigBindingServiceProperties { */ private String getPolicy() { - String policies = environment.getProperty(ConfigBindingServiceConstants.POLICIES); + String policies = environment.getProperty(ConfigBindingServiceConstants.WITHPOLICIES); if (policies == null) { return environment.getProperty(ConfigBindingServiceConstants.POLICY); } - JsonObject policiesObject = new JsonParser().parse(policies).getAsJsonObject(); - JsonArray items = policiesObject.get(ConfigBindingServiceConstants.ITEMS).getAsJsonArray(); - JsonElement policy = items.get(0) - .getAsJsonObject().get(ConfigBindingServiceConstants.CONFIG) - .getAsJsonObject().get(ConfigBindingServiceConstants.TCAPOLICY); - return policy.toString(); + return policies; } diff --git a/dcae-analytics/dcae-analytics-test/pom.xml b/dcae-analytics/dcae-analytics-test/pom.xml index 43afaed..e6ff020 100644 --- a/dcae-analytics/dcae-analytics-test/pom.xml +++ b/dcae-analytics/dcae-analytics-test/pom.xml @@ -27,7 +27,7 @@ <parent> <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId> <artifactId>dcae-analytics</artifactId> - <version>1.1.0-SNAPSHOT</version> + <version>1.2.0-SNAPSHOT</version> </parent> <artifactId>dcae-analytics-test</artifactId> @@ -54,14 +54,21 @@ <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> - <version>${spring.boot.version}</version> <scope>compile</scope> <exclusions> <exclusion> <groupId>junit</groupId> <artifactId>junit</artifactId> </exclusion> - </exclusions> + <exclusion> + <groupId>org.junit.vintage</groupId> + <artifactId>junit-vintage-engine</artifactId> + </exclusion> + <exclusion> + <groupId>org.mockito</groupId> + <artifactId>mockito-core</artifactId> + </exclusion> + </exclusions> </dependency> <!-- JSON SERIALIZATION/DESERIALIZATION LIBRARY --> @@ -70,6 +77,16 @@ <artifactId>jackson-databind</artifactId> <scope>compile</scope> </dependency> + <dependency> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-core</artifactId> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>com.fasterxml.jackson.dataformat</groupId> + <artifactId>jackson-dataformat-smile</artifactId> + <scope>compile</scope> + </dependency> <!-- JUNIT 5 DEPENDENCIES --> <dependency> @@ -102,6 +119,12 @@ <artifactId>apiguardian-api</artifactId> <scope>compile</scope> </dependency> + <!-- MOCKING FRAMEWORK --> + <dependency> + <groupId>org.mockito</groupId> + <artifactId>mockito-core</artifactId> + <scope>compile</scope> + </dependency> <!-- ASSERTION UTILITIES --> <dependency> @@ -114,14 +137,6 @@ <artifactId>jsonassert</artifactId> <scope>compile</scope> </dependency> - - <!-- MOCKING FRAMEWORK --> - <dependency> - <groupId>org.mockito</groupId> - <artifactId>mockito-core</artifactId> - <scope>compile</scope> - </dependency> - </dependencies> </project> diff --git a/dcae-analytics/dcae-analytics-test/src/main/java/org/onap/dcae/analytics/test/BaseAnalyticsTest.java b/dcae-analytics/dcae-analytics-test/src/main/java/org/onap/dcae/analytics/test/BaseAnalyticsTest.java index 419fe2f..8c7f025 100644 --- a/dcae-analytics/dcae-analytics-test/src/main/java/org/onap/dcae/analytics/test/BaseAnalyticsTest.java +++ b/dcae-analytics/dcae-analytics-test/src/main/java/org/onap/dcae/analytics/test/BaseAnalyticsTest.java @@ -271,7 +271,7 @@ abstract class BaseAnalyticsTest { */ public static <T> T deserializeJsonFileToModel(final String jsonFileLocation, final Class<T> modelClass, final ObjectMapper objectMapper) { - try (final InputStream jsonFileInputStream = + try (InputStream jsonFileInputStream = BaseAnalyticsTest.class.getClassLoader().getResourceAsStream(jsonFileLocation)) { assertThat(jsonFileInputStream).as("Input JSON File location must be valid").isNotNull(); return objectMapper.readValue(jsonFileInputStream, modelClass); diff --git a/dcae-analytics/dcae-analytics-web/pom.xml b/dcae-analytics/dcae-analytics-web/pom.xml index 9d87508..2f2ef9f 100644 --- a/dcae-analytics/dcae-analytics-web/pom.xml +++ b/dcae-analytics/dcae-analytics-web/pom.xml @@ -27,7 +27,7 @@ <parent> <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId> <artifactId>dcae-analytics</artifactId> - <version>1.1.0-SNAPSHOT</version> + <version>1.2.0-SNAPSHOT</version> </parent> <artifactId>dcae-analytics-web</artifactId> @@ -143,7 +143,6 @@ <dependency> <groupId>io.undertow</groupId> <artifactId>undertow-core</artifactId> - <version>2.0.17.Final</version> </dependency> </dependencies> diff --git a/dcae-analytics/dcae-analytics-web/src/main/java/org/onap/dcae/analytics/web/spring/ConfigBindingServiceEnvironmentPostProcessor.java b/dcae-analytics/dcae-analytics-web/src/main/java/org/onap/dcae/analytics/web/spring/ConfigBindingServiceEnvironmentPostProcessor.java index d286d10..8798b4e 100644 --- a/dcae-analytics/dcae-analytics-web/src/main/java/org/onap/dcae/analytics/web/spring/ConfigBindingServiceEnvironmentPostProcessor.java +++ b/dcae-analytics/dcae-analytics-web/src/main/java/org/onap/dcae/analytics/web/spring/ConfigBindingServiceEnvironmentPostProcessor.java @@ -229,8 +229,13 @@ public class ConfigBindingServiceEnvironmentPostProcessor implements Environment Optional<String> configServiceJsonOptional; JsonElement jsonConfig = jsonObject.get(ConfigBindingServiceConstants.CONFIG); + String policies = null; if (jsonConfig.getAsJsonObject().get(ConfigBindingServiceConstants.CONFIG) != null) { configServiceJsonOptional = Optional.of(jsonConfig.toString()); + policies = jsonConfig.getAsJsonObject().get(ConfigBindingServiceConstants.POLICIES) + .getAsJsonObject().getAsJsonArray(ConfigBindingServiceConstants.ITEMS).get(0) + .getAsJsonObject().get(ConfigBindingServiceConstants.CONFIG) + .getAsJsonObject().get(ConfigBindingServiceConstants.TCAPOLICY).toString(); } else { configServiceJsonOptional = Optional.of(jsonObject.toString()); } @@ -239,7 +244,9 @@ public class ConfigBindingServiceEnvironmentPostProcessor implements Environment // values Map<String, Object> configPropertiesMap = configServiceJsonOptional .map(new JsonStringToMapFunction(configServicePropertiesKey)).orElse(Collections.emptyMap()); - + if (policies != null) { + configPropertiesMap.put(ConfigBindingServiceConstants.CONFIG_POLICIES, policies); + } if (configPropertiesMap.isEmpty()) { logger.warn("No properties found in config binding service"); @@ -264,7 +271,7 @@ public class ConfigBindingServiceEnvironmentPostProcessor implements Environment .info("Adding property from config service in spring context: {} -> {}", key, value)); MutablePropertySources sources = env.getPropertySources(); addJsonPropertySource(sources, new MapPropertySource(configServicePropertiesKey, filterKeyMap)); - + } return configServiceJsonOptional.get(); } diff --git a/dcae-analytics/pom.xml b/dcae-analytics/pom.xml index 22fdccc..c419983 100644 --- a/dcae-analytics/pom.xml +++ b/dcae-analytics/pom.xml @@ -27,7 +27,7 @@ <parent> <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId> <artifactId>tca-gen2-parent</artifactId> - <version>1.1.0-SNAPSHOT</version> + <version>1.2.0-SNAPSHOT</version> </parent> <artifactId>dcae-analytics</artifactId> @@ -55,7 +55,7 @@ <!-- DEPENDENCIES VERSION --> <eelf.logger.version>1.0.1-SNAPSHOT</eelf.logger.version> - <spring.boot.version>2.0.5.RELEASE</spring.boot.version> + <spring.boot.version>2.0.9.RELEASE</spring.boot.version> <spring.cloud.version>Finchley.RC2</spring.cloud.version> <spring.version>5.0.11.RELEASE</spring.version> <commons.text.version>1.4</commons.text.version> @@ -64,36 +64,34 @@ <findbugs.annotations.version>3.0.1</findbugs.annotations.version> <!-- TEST DEPENDENCIES --> - <junit-jupiter.version>5.0.2</junit-jupiter.version> - <junit-platform.version>1.0.2</junit-platform.version> + <junit-jupiter.version>5.6.2</junit-jupiter.version> + <junit-platform.version>1.6.2</junit-platform.version> <apiguardian-api.version>1.0.0</apiguardian-api.version> <!--TEST SETTINGS --> <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile> <!-- PLUGINS VERSIONS --> - <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version> + <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version> <maven-jar-plugin.version>3.0.2</maven-jar-plugin.version> <maven-assembly-plugin.version>3.1.0</maven-assembly-plugin.version> - <maven-javadoc-plugin.version>3.0.0-M1</maven-javadoc-plugin.version> - <maven-surefire-plugin.version>2.19</maven-surefire-plugin.version> - <maven-failsafe-plugin.version>2.19.1</maven-failsafe-plugin.version> + <maven-javadoc-plugin.version>3.0.0</maven-javadoc-plugin.version> + <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version> + <maven-failsafe-plugin.version>2.22.2</maven-failsafe-plugin.version> <maven-source-plugin.version>3.0.1</maven-source-plugin.version> <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version> <jacoco.plugin.version>0.8.1</jacoco.plugin.version> <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml </sonar.coverage.jacoco.xmlReportPaths> - <findbugs.plugin.version>3.0.5</findbugs.plugin.version> - <pmd.plugin.version>3.8</pmd.plugin.version> + <pmd.plugin.version>3.11.0</pmd.plugin.version> <checkstyle.plugin.version>2.17</checkstyle.plugin.version> - <lombok.plugin.version>1.16.18.1</lombok.plugin.version> + <lombok.plugin.version>1.18.0.0</lombok.plugin.version> <gitcommitid.plugin.version>2.2.3</gitcommitid.plugin.version> <maven.build.helper.plugin.version>3.0.0</maven.build.helper.plugin.version> - <!--<dockerfile-maven-version>1.4.3</dockerfile-maven-version>--> - <docker-maven-version>1.0.0</docker-maven-version> + <docker-maven-version>1.0.0</docker-maven-version> <!--PLUGIN SETTINGS --> - <compiler.source.version>1.8</compiler.source.version> - <compiler.target.version>1.8</compiler.target.version> + <compiler.source.version>11</compiler.source.version> + <compiler.target.version>11</compiler.target.version> <unit.test.pattern>**/*Test.java</unit.test.pattern> <skip.unit.tests>false</skip.unit.tests> <integration.test.pattern>**/*IT.java</integration.test.pattern> @@ -110,7 +108,10 @@ <snapshots.path>content/repositories/snapshots/</snapshots.path> <releases.path>content/repositories/releases/</releases.path> <docker.repository>nexus3.onap.org:10003</docker.repository> - + <jackson.version>2.11.0</jackson.version> + <undertow.version>2.0.27</undertow.version> + <spring-webflux.version>5.2.7.RELEASE</spring-webflux.version> + <spring-swagger-ui.version>2.10.5</spring-swagger-ui.version> <!-- SONAR EXCLUSIONS --> <!-- EXCLUDE TEST COVERAGE ON @@ -164,7 +165,6 @@ <version>${project.version}</version> </dependency> - <!-- EELF LOGGER --> <dependency> <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId> @@ -188,7 +188,7 @@ <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> - <version>${springfox-swagger2.version}</version> + <version>${spring-swagger-ui.version}</version> </dependency> <!-- FIND BUGS --> @@ -224,16 +224,28 @@ <version>${junit-jupiter.version}</version> <scope>test</scope> </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.13</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.junit.vintage</groupId> + <artifactId>junit-vintage-engine</artifactId> + <version>5.6.2</version> + <scope>test</scope> + </dependency> <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-engine</artifactId> - <version>${junit-platform.version}</version> + <version>1.6.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-launcher</artifactId> - <version>${junit-platform.version}</version> + <version>1.6.2</version> <scope>test</scope> </dependency> <dependency> @@ -253,6 +265,34 @@ <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> </exclusion> + <exclusion> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-test</artifactId> + </exclusion> + <exclusion> + <groupId>org.mockito</groupId> + <artifactId>mockito-core</artifactId> + </exclusion> + <exclusion> + <groupId>io.undertow</groupId> + <artifactId>undertow-core</artifactId> + </exclusion> + <exclusion> + <groupId>org.springframework</groupId> + <artifactId>spring-webflux</artifactId> + </exclusion> + <exclusion> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-databind</artifactId> + </exclusion> + <exclusion> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-core</artifactId> + </exclusion> + <exclusion> + <groupId>com.fasterxml.jackson.dataformat</groupId> + <artifactId>jackson-dataformat-smile</artifactId> + </exclusion> </exclusions> <type>pom</type> <scope>import</scope> @@ -265,11 +305,47 @@ <type>pom</type> <scope>import</scope> </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-webflux</artifactId> + <version>${spring-webflux.version}</version> + </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring.version}</version> </dependency> + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-test</artifactId> + <version>2.2.0.RELEASE</version> + </dependency> + <dependency> + <groupId>org.mockito</groupId> + <artifactId>mockito-core</artifactId> + <version>2.23.4</version> + </dependency> + <dependency> + <groupId>io.undertow</groupId> + <artifactId>undertow-core</artifactId> + <version>2.0.27.Final</version> + </dependency> + <dependency> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-databind</artifactId> + <version>${jackson.version}</version> + </dependency> + <dependency> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-core</artifactId> + <version>${jackson.version}</version> + </dependency> + <dependency> + <groupId>com.fasterxml.jackson.dataformat</groupId> + <artifactId>jackson-dataformat-smile</artifactId> + <version>${jackson.version}</version> + </dependency> + </dependencies> </dependencyManagement> @@ -383,13 +459,6 @@ <exclude>${integration.test.pattern}</exclude> </excludes> </configuration> - <dependencies> - <dependency> - <groupId>org.junit.platform</groupId> - <artifactId>junit-platform-surefire-provider</artifactId> - <version>${junit-platform.version}</version> - </dependency> - </dependencies> </plugin> <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST --> @@ -397,13 +466,6 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>${maven-failsafe-plugin.version}</version> - <dependencies> - <dependency> - <groupId>org.junit.platform</groupId> - <artifactId>junit-platform-surefire-provider</artifactId> - <version>${junit-platform.version}</version> - </dependency> - </dependencies> <executions> <execution> <id>integration-tests</id> @@ -430,34 +492,6 @@ </executions> </plugin> - - <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN --> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>findbugs-maven-plugin</artifactId> - <version>${findbugs.plugin.version}</version> - <configuration> - <effort>Max</effort> - <threshold>Low</threshold> - <xmlOutput>true</xmlOutput> - <!-- BUILD FAIL ON FINDBUGS ERRORS --> - <failOnError>${findbugs.failOnError}</failOnError> - <excludeFilterFile>${main.basedir}/findbugs-exclude.xml</excludeFilterFile> - <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory> - <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs - </findbugsXmlOutputDirectory> - </configuration> - <executions> - <execution> - <id>analyze-compile</id> - <phase>compile</phase> - <goals> - <goal>check</goal> - </goals> - </execution> - </executions> - </plugin> - <!-- PMD PLUGIN SETUP --> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -702,11 +736,6 @@ <artifactId>maven-pmd-plugin</artifactId> </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>findbugs-maven-plugin</artifactId> - </plugin> - <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> diff --git a/dcae-analytics/version.properties b/dcae-analytics/version.properties index aeffff6..99c1da7 100644 --- a/dcae-analytics/version.properties +++ b/dcae-analytics/version.properties @@ -17,7 +17,7 @@ # # major=1 -minor=1 +minor=2 patch=0 base_version=${major}.${minor}.${patch} release_version=${base_version} |