From 80941c6fe8c58f7d82b88820d3342622e58dc441 Mon Sep 17 00:00:00 2001 From: Ben Hale Date: Fri, 8 May 2020 15:50:46 -0700 Subject: [PATCH] POM File Cleanup Previously there was a lot of cruft in the POM file that related to previous examples of this library. When in doubt, trust Boot's opinions and minimize your POM's as much as possible. We can always add it back in the future. Signed-off-by: Ben Hale --- cnb-bindings-boot/pom.xml | 36 +++-- cnb-bindings-jdbc/pom.xml | 26 ++-- cnb-bindings/pom.xml | 40 +++-- pom.xml | 297 ++++---------------------------------- 4 files changed, 88 insertions(+), 311 deletions(-) diff --git a/cnb-bindings-boot/pom.xml b/cnb-bindings-boot/pom.xml index 55481e9..407f894 100644 --- a/cnb-bindings-boot/pom.xml +++ b/cnb-bindings-boot/pom.xml @@ -1,29 +1,41 @@ - + + 4.0.0 - cnb-bindings-boot - jar - CNB Bindings Spring Boot - Java CNB Boot Support + org.springframework.cloud cnb-bindings-parent 0.0.1.BUILD-SNAPSHOT + + cnb-bindings-boot + CNB Bindings Spring Boot + Java CNB Spring Boot Support + - - org.springframework.boot - spring-boot - org.springframework.cloud cnb-bindings-jdbc - 0.0.1.BUILD-SNAPSHOT + ${project.version} + + + + org.springframework.boot + spring-boot + + + org.junit.vintage + junit-vintage-engine + + - org.jmockit - jmockit + org.mockito + mockito-core test + diff --git a/cnb-bindings-jdbc/pom.xml b/cnb-bindings-jdbc/pom.xml index 034c8d2..642b9ab 100644 --- a/cnb-bindings-jdbc/pom.xml +++ b/cnb-bindings-jdbc/pom.xml @@ -1,21 +1,30 @@ - + + 4.0.0 - cnb-bindings-jdbc - jar - CNB Bindings JDBC - CNB Bindings JDBC Support Library + org.springframework.cloud cnb-bindings-parent 0.0.1.BUILD-SNAPSHOT + cnb-bindings-jdbc + CNB Bindings JDBC + CNB Bindings JDBC Support Library + org.springframework.cloud cnb-bindings - 0.0.1.BUILD-SNAPSHOT + ${project.version} + + + + org.springframework.boot + spring-boot-starter-test + test @@ -23,10 +32,5 @@ mariadb-java-client test - - - org.springframework.boot - spring-boot-starter-test - diff --git a/cnb-bindings/pom.xml b/cnb-bindings/pom.xml index 83fd00a..f72cea7 100644 --- a/cnb-bindings/pom.xml +++ b/cnb-bindings/pom.xml @@ -1,16 +1,19 @@ - + + 4.0.0 - cnb-bindings - jar - CNB Bindings - Java CNB Bindings Core Library + org.springframework.cloud cnb-bindings-parent 0.0.1.BUILD-SNAPSHOT + cnb-bindings + CNB Bindings + Java CNB Bindings Core Library + com.fasterxml.jackson.core @@ -20,32 +23,23 @@ com.fasterxml.jackson.core jackson-databind + org.springframework.boot spring-boot-starter-test test + + + org.junit.vintage + junit-vintage-engine + + - org.jmockit - jmockit + org.mockito + mockito-core test - - - - org.apache.maven.plugins - maven-jar-plugin - 3.1.1 - - - - test-jar - - - - - - diff --git a/pom.xml b/pom.xml index b8bcf4e..6603f39 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,9 @@ - + + 4.0.0 + org.springframework.cloud cnb-bindings-parent 0.0.1.BUILD-SNAPSHOT @@ -14,8 +17,6 @@ Apache License, Version 2.0 https://www.apache.org/licenses/LICENSE-2.0.txt - repo - A business-friendly OSS license @@ -23,52 +24,27 @@ https://github.com/spring-cloud-incubator/cnb-bindings scm:git:git://github.com/spring-cloud-incubator/cnb-bindings.git scm:git:ssh://git@github.com/spring-cloud-incubator/cnb-bindings.git - HEAD - - Pivotal Software, Inc. - https://www.spring.io - - - - UTF-8 - UTF-8 1.8 - ${java.version} - ${java.version} - - 2.2.6.RELEASE - 1.24 + 2.2.7.RELEASE - 3.8.0 - 0.7.9 - 2.20 - 3.0.2 - -Xdoclint:none - 2.10.1 - 1.5.6 - 1.5.0-alpha.11 - 2.0.15 - 2.1.0 - 5.0-all - 1.8 - 1.0b3 - 1.8.1 - 3.2.10 - 1.9.1 + 3.8.1 + 3.2.1 + 2.22.2 - false + ${java.version} + ${java.version} + UTF-8 + UTF-8 cnb-bindings cnb-bindings-jdbc cnb-bindings-boot - @@ -81,265 +57,56 @@ - org.springframework.boot spring-boot-dependencies ${spring-boot.version} pom import - - - org.jmockit - jmockit - ${jmockit.version} - - - - org.apache.maven.plugins - maven-compiler-plugin - ${maven-compiler-plugin.version} - - ${maven.compiler.source} - ${maven.compiler.target} - -parameters - - - - org.apache.maven.plugins - maven-source-plugin - - - attach-sources - - jar - - - - - - maven-javadoc-plugin - 3.0.1 - - - javadoc - - jar - - package - - - - true - - - - org.apache.maven.plugins - maven-surefire-plugin - ${surefire-maven-plugin.version} - - - **/*Tests.java - **/*Test.java - - - **/Abstract*.java - - - ${argLine} - - - - org.jacoco - jacoco-maven-plugin - - - agent - - prepare-agent - - - - report - test - - report - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - 3.0.0 - - - com.puppycrawl.tools - checkstyle - 8.16 - - - - src/checkstyle/checkstyle.xml - true - - - - validate - validate - - check - - - - - - - org.sonarsource.scanner.maven - sonar-maven-plugin - ${sonar-maven-plugin.version} - - - org.jacoco - jacoco-maven-plugin - ${jacoco-maven-plugin.version} - org.apache.maven.plugins - maven-jar-plugin - 3.0.2 + maven-compiler-plugin + ${maven-compiler-plugin.version} + + + -Werror + -Xlint:all + -Xlint:-options + -Xlint:-processing + -Xlint:-serial + + true + org.apache.maven.plugins maven-source-plugin - 3.0.1 - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.10.4 + ${maven-source-plugin.version} - attach-javadocs + attach-sources jar - - ${javadoc.opts} - org.apache.maven.plugins - maven-checkstyle-plugin - 3.0.0 - - - com.puppycrawl.tools - checkstyle - 7.6.1 - - + maven-surefire-plugin + ${maven-surefire-plugin.version} + + random + - - - - org.apache.maven.plugins - maven-jxr-plugin - 2.5 - - - - - - spring - - - spring-snapshots - Spring Snapshots - https://repo.spring.io/libs-snapshot - - true - - - - spring-milestones - Spring Milestones - https://repo.spring.io/libs-milestone-local - - false - - - - spring-releases - Spring Releases - https://repo.spring.io/release - - false - - - - - - spring-snapshots - Spring Snapshots - https://repo.spring.io/libs-snapshot-local - - true - - - - spring-milestones - Spring Milestones - https://repo.spring.io/libs-milestone-local - - false - - - - - - coverage - - - env.TRAVIS - true - - - - - - org.jacoco - jacoco-maven-plugin - 0.7.9 - - - agent - - prepare-agent - - - - report - test - - report - - - - - - - - +