Spring Boot 2.0 (#721)
* Migration to Boot 2.0. Signed-off-by: Kai Zimmermann <kai.zimmermann@microsoft.com>
This commit is contained in:
269
pom.xml
269
pom.xml
@@ -8,13 +8,15 @@
|
||||
http://www.eclipse.org/legal/epl-v10.html
|
||||
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>1.4.7.RELEASE</version>
|
||||
<version>2.1.2.RELEASE</version>
|
||||
</parent>
|
||||
|
||||
<groupId>org.eclipse.hawkbit</groupId>
|
||||
@@ -60,6 +62,9 @@
|
||||
<developers>
|
||||
<developer>
|
||||
<id>kaizimmerm</id>
|
||||
<email>kai.zimmermann@microsoft.com</email>
|
||||
<organization>Microsoft</organization>
|
||||
<organizationUrl>https://www.microsoft.com</organizationUrl>
|
||||
<roles>
|
||||
<role>Lead</role>
|
||||
<role>Committer</role>
|
||||
@@ -123,38 +128,24 @@
|
||||
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
<spring.boot.version>1.4.7.RELEASE</spring.boot.version>
|
||||
<spring.cloud.version>Camden.SR6</spring.cloud.version>
|
||||
<spring.boot.version>2.1.2.RELEASE</spring.boot.version>
|
||||
<spring.cloud.version>Greenwich.RELEASE</spring.cloud.version>
|
||||
|
||||
<snapshotDependencyAllowed>true</snapshotDependencyAllowed>
|
||||
|
||||
<!-- Spring boot version overrides (should be reviewed with every boot upgrade) - START -->
|
||||
<!-- Spring boot version overrides (should be reviewed with every boot
|
||||
upgrade) - START -->
|
||||
<!-- Newer versions needed than defined in Boot -->
|
||||
<!-- Deserializer security vulnerability fixed -->
|
||||
<jackson.version>2.8.9</jackson.version>
|
||||
<!-- Performance fixes -->
|
||||
<spring-hateoas.version>0.23.0.RELEASE</spring-hateoas.version>
|
||||
<!-- Java 8 support -->
|
||||
<assertj.version>3.6.2</assertj.version>
|
||||
<!-- Repeatable migrations, Disabling clean etc. -->
|
||||
<flyway.version>4.0.3</flyway.version>
|
||||
<!-- Improved integration test capabilities -->
|
||||
<spring-amqp.version>1.7.6.RELEASE</spring-amqp.version>
|
||||
<!-- Compatability with RabbitMQ >= 3.7.3 -->
|
||||
<rabbitmq.http-client.version>1.3.1.RELEASE</rabbitmq.http-client.version>
|
||||
<!-- Fixed dependencies -->
|
||||
<rabbitmq.http-client.version>2.1.0.RELEASE</rabbitmq.http-client.version>
|
||||
<!-- Older versions needed than defined in Boot -->
|
||||
<!-- Incompatible changes in 2.2 -->
|
||||
<json-path.version>2.0.0</json-path.version>
|
||||
<!-- Otherwise breaks management UI -->
|
||||
<jetty.version>9.3.14.v20161028</jetty.version>
|
||||
<!-- Avoid extra CQs through transitive dependencies -->
|
||||
<jboss-logging.version>3.2.1.Final</jboss-logging.version>
|
||||
<tomcat.version>8.0.28</tomcat.version>
|
||||
|
||||
<hibernate-validator.version>6.0.7.Final</hibernate-validator.version>
|
||||
<!-- Piggy back existing Eclipse CQs -->
|
||||
<commons-lang3.version>3.7</commons-lang3.version>
|
||||
<classmate.version>1.3.4</classmate.version>
|
||||
<!-- Spring boot version overrides - END -->
|
||||
|
||||
<!-- Vaadin versions - START -->
|
||||
<vaadin.spring.version>1.1.1</vaadin.spring.version>
|
||||
<vaadin.spring.version>1.2.0</vaadin.spring.version>
|
||||
<vaadin.spring.addon.version>0.0.6.RELEASE</vaadin.spring.addon.version>
|
||||
<vaadin.version>7.7.13</vaadin.version>
|
||||
<vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
|
||||
@@ -165,32 +156,22 @@
|
||||
<!-- Vaadin versions - END -->
|
||||
|
||||
<maven.processor.plugin.version>3.3.3</maven.processor.plugin.version>
|
||||
<maven.surefire.plugin.version>2.22.1</maven.surefire.plugin.version>
|
||||
<maven.scm.plugin.version>1.11.1</maven.scm.plugin.version>
|
||||
<!-- Java 9 support -->
|
||||
<maven.compiler.plugin.version>3.7.0</maven.compiler.plugin.version>
|
||||
|
||||
<!-- Misc libraries versions - START -->
|
||||
<cron-utils.version>5.0.5</cron-utils.version>
|
||||
<jsoup.version>1.8.3</jsoup.version>
|
||||
<validation-api.version>2.0.1.Final</validation-api.version>
|
||||
<allure.version>2.7.0</allure.version>
|
||||
<eclipselink.version>2.7.1</eclipselink.version>
|
||||
<eclipselink.version>2.7.3</eclipselink.version>
|
||||
<gwtmockito.version>1.1.8</gwtmockito.version>
|
||||
<powermock.version>1.6.5</powermock.version>
|
||||
<pl.pragmatists.version>1.0.2</pl.pragmatists.version>
|
||||
<guava.version>25.0-jre</guava.version>
|
||||
<mariadb-java-client.version>2.0.2</mariadb-java-client.version>
|
||||
<mssql-jdbc.version>6.4.0.jre8</mssql-jdbc.version>
|
||||
<embedded-mongo.version>1.50.5</embedded-mongo.version>
|
||||
<javax.el-api.version>2.2.4</javax.el-api.version>
|
||||
<corn-cps.version>1.1.7</corn-cps.version>
|
||||
<jlorem.version>1.1</jlorem.version>
|
||||
<json-simple.version>1.1.1</json-simple.version>
|
||||
<commons-lang3.version>3.4</commons-lang3.version>
|
||||
<json.version>20141113</json.version>
|
||||
<commons-io.version>2.5</commons-io.version>
|
||||
<rsql-parser.version>2.1.0</rsql-parser.version>
|
||||
<jayway.awaitility.version>1.7.0</jayway.awaitility.version>
|
||||
<awaitility.version>3.1.2</awaitility.version>
|
||||
<io-protostuff.version>1.5.6</io-protostuff.version>
|
||||
<!-- Misc libraries versions - END -->
|
||||
|
||||
@@ -215,7 +196,7 @@
|
||||
<!-- Sonar - END -->
|
||||
|
||||
<!-- ************************ -->
|
||||
<!-- Maven Surefire settings -->
|
||||
<!-- Maven Surefire settings -->
|
||||
<!-- ************************ -->
|
||||
<surefire.forkcount>1</surefire.forkcount>
|
||||
</properties>
|
||||
@@ -225,7 +206,6 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>${maven.compiler.plugin.version}</version>
|
||||
<configuration>
|
||||
<compilerArgument>-Xlint:all</compilerArgument>
|
||||
<showWarnings>true</showWarnings>
|
||||
@@ -239,11 +219,11 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>1.4.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<!-- Make sure that only non-snapshot versions are used for the dependencies. Only active when property 'snapshotDependencyAllowed' is
|
||||
false. -->
|
||||
<!-- Make sure that only non-snapshot versions are used
|
||||
for the dependencies. Only active when property 'snapshotDependencyAllowed'
|
||||
is false. -->
|
||||
<id>enforce-no-snapshots</id>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
@@ -257,6 +237,9 @@
|
||||
<requireReleaseVersion>
|
||||
<message>No Snapshots Allowed!</message>
|
||||
</requireReleaseVersion>
|
||||
<requireMavenVersion>
|
||||
<version>3.5</version>
|
||||
</requireMavenVersion>
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
@@ -326,9 +309,10 @@
|
||||
<configuration>
|
||||
<header>licenses/LICENSE_HEADER_TEMPLATE_BOSCH_19.txt</header>
|
||||
<validHeaders>
|
||||
<validHeader>licenses/LICENSE_HEADER_TEMPLATE_SIEMENS.txt</validHeader>
|
||||
<validHeader>licenses/LICENSE_HEADER_TEMPLATE_SIEMENS_18.txt</validHeader>
|
||||
<validHeader>licenses/LICENSE_HEADER_TEMPLATE_BOSCH.txt</validHeader>
|
||||
<validHeader>licenses/LICENSE_HEADER_TEMPLATE_SIEMENS.txt</validHeader>
|
||||
<validHeader>licenses/LICENSE_HEADER_TEMPLATE_SIEMENS_18.txt</validHeader>
|
||||
<validHeader>licenses/LICENSE_HEADER_TEMPLATE_BOSCH.txt</validHeader>
|
||||
<validHeader>licenses/LICENSE_HEADER_TEMPLATE_MICROSOFT_18.txt</validHeader>
|
||||
<validHeader>licenses/LICENSE_HEADER_TEMPLATE_BOSCH_18.txt</validHeader>
|
||||
</validHeaders>
|
||||
<excludes>
|
||||
@@ -398,14 +382,14 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>${maven.surefire.plugin.version}</version>
|
||||
<configuration>
|
||||
<systemPropertyVariables>
|
||||
<!-- Set output directory according to allure-framework recommendation -->
|
||||
<!-- Set output directory according to allure-framework
|
||||
recommendation -->
|
||||
<allure.results.directory>${project.build.directory}/allure-results</allure.results.directory>
|
||||
<!-- Bugfix for timeout. See https://github.com/allure-framework/allure-maven/issues/59 -->
|
||||
<allure.serve.timeout>650</allure.serve.timeout>
|
||||
</systemPropertyVariables>
|
||||
</systemPropertyVariables>
|
||||
<!-- Bugfix for OpenJDK 8u181, see https://issues.apache.org/jira/browse/SUREFIRE-1588 -->
|
||||
<useSystemClassLoader>false</useSystemClassLoader>
|
||||
<reuseForks>true</reuseForks>
|
||||
@@ -433,8 +417,8 @@
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-failsafe-plugin</artifactId>
|
||||
<configuration>
|
||||
<reuseForks>true</reuseForks>
|
||||
<forkCount>3</forkCount>
|
||||
<reuseForks>false</reuseForks>
|
||||
<forkCount>${surefire.forkcount}</forkCount>
|
||||
<argLine>-Xmx1024m ${jacoco.agent.ut.arg}</argLine>
|
||||
<properties>
|
||||
<property>
|
||||
@@ -475,27 +459,27 @@
|
||||
</pluginManagement>
|
||||
</build>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>jdk-8</id>
|
||||
<activation>
|
||||
<profile>
|
||||
<id>jdk-8</id>
|
||||
<activation>
|
||||
<jdk>1.8</jdk>
|
||||
</activation>
|
||||
<build>
|
||||
</activation>
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>
|
||||
${jacoco.agent.ut.arg}
|
||||
</argLine>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>
|
||||
${jacoco.agent.ut.arg}
|
||||
</argLine>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
</profile>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>nexus_staging</id>
|
||||
<activation>
|
||||
@@ -627,18 +611,10 @@
|
||||
</dependency>
|
||||
|
||||
<!-- Misc -->
|
||||
|
||||
<dependency>
|
||||
<groupId>com.rabbitmq</groupId>
|
||||
<artifactId>http-client</artifactId>
|
||||
<version>${rabbitmq.http-client.version}</version>
|
||||
<scope>compile</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>spring-web</artifactId>
|
||||
<groupId>org.springframework</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.cronutils</groupId>
|
||||
@@ -650,11 +626,6 @@
|
||||
<artifactId>jsoup</artifactId>
|
||||
<version>${jsoup.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.validation</groupId>
|
||||
<artifactId>validation-api</artifactId>
|
||||
<version>${validation-api.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.el</groupId>
|
||||
<artifactId>javax.el-api</artifactId>
|
||||
@@ -692,7 +663,7 @@
|
||||
<version>${spring.cloud.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
@@ -702,34 +673,38 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||
<artifactId>jackson-datatype-jdk8</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||
<artifactId>jackson-datatype-jsr310</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>com.fasterxml.jackson.module</groupId>
|
||||
<artifactId>jackson-module-parameter-names</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
<version>${spring.boot.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-websocket</artifactId>
|
||||
<version>${spring.boot.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-aop</artifactId>
|
||||
<version>${spring.boot.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-mongodb</artifactId>
|
||||
<version>${spring.boot.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||||
<version>${spring.boot.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
<version>${spring.boot.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-to-slf4j</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||||
@@ -739,7 +714,7 @@
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-entitymanager</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
</exclusion>
|
||||
@@ -747,6 +722,10 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-logging</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>javax.xml.bind</groupId>
|
||||
<artifactId>jaxb-api</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@@ -755,17 +734,17 @@
|
||||
<version>${eclipselink.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Protostuff Io -->
|
||||
<dependency>
|
||||
<groupId>io.protostuff</groupId>
|
||||
<artifactId>protostuff-core</artifactId>
|
||||
<version>${io-protostuff.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.protostuff</groupId>
|
||||
<artifactId>protostuff-runtime</artifactId>
|
||||
<version>${io-protostuff.version}</version>
|
||||
</dependency>
|
||||
<!-- Protostuff Io -->
|
||||
<dependency>
|
||||
<groupId>io.protostuff</groupId>
|
||||
<artifactId>protostuff-core</artifactId>
|
||||
<version>${io-protostuff.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.protostuff</groupId>
|
||||
<artifactId>protostuff-runtime</artifactId>
|
||||
<version>${io-protostuff.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- RSQL / FIQL parser -->
|
||||
<dependency>
|
||||
@@ -774,20 +753,9 @@
|
||||
<version>${rsql-parser.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.googlecode.json-simple</groupId>
|
||||
<artifactId>json-simple</artifactId>
|
||||
<version>${json-simple.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
<version>${commons-lang3.version}</version>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>${commons-io.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
@@ -800,11 +768,6 @@
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.json</groupId>
|
||||
<artifactId>json</artifactId>
|
||||
<version>${json.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.qameta.allure</groupId>
|
||||
<artifactId>allure-junit4</artifactId>
|
||||
@@ -824,40 +787,18 @@
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.powermock</groupId>
|
||||
<artifactId>powermock-module-junit4</artifactId>
|
||||
<version>${powermock.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.powermock</groupId>
|
||||
<artifactId>powermock-api-mockito</artifactId>
|
||||
<version>${powermock.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mariadb.jdbc</groupId>
|
||||
<artifactId>mariadb-java-client</artifactId>
|
||||
<version>${mariadb-java-client.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.microsoft.sqlserver</groupId>
|
||||
<artifactId>mssql-jdbc</artifactId>
|
||||
<version>${mssql-jdbc.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.amqp</groupId>
|
||||
<artifactId>spring-rabbit-junit</artifactId>
|
||||
<version>${spring-amqp.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.amqp</groupId>
|
||||
<artifactId>spring-rabbit-test</artifactId>
|
||||
<version>${spring-amqp.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>${guava.version}</version>
|
||||
@@ -890,9 +831,9 @@
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.jayway.awaitility</groupId>
|
||||
<groupId>org.awaitility</groupId>
|
||||
<artifactId>awaitility</artifactId>
|
||||
<version>${jayway.awaitility.version}</version>
|
||||
<version>${awaitility.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
Reference in New Issue
Block a user