From 40d2b1227fb4872aad6a861eaba7c3d9a271ccd5 Mon Sep 17 00:00:00 2001 From: gurkerl83 Date: Mon, 26 Oct 2020 14:20:51 +0100 Subject: [PATCH] Initial cleanup of maven set up in the parents' module - Increase version of Guava dependency from 22.0 to 27.1-jre. Note: In an OSGi runtime, Guice version 4.2.3 expects Guava with an exact version of 27.1-jre. For now, higher versions of Guava are not possible. - Separate version numbers from dependencies and plugins Following is a description of the purpose of the feature. New contributors find it difficult to understand the function and intent of different plugins integrated into JClouds. The primary goal is to simplify and streamline the overall setup. On closer examination of the integrated plugins you will notice that, - different plugins are used for the same or a similar goal - the development activity of used plugins has been terminated - modified integration requirements through Maven. The development of used plugins is progressing. Versions of the plugins integrated into JClouds are not up to date. Newer plugin versions require an adjustment to how integration into a project is done. Basically the setup of the plugins used in the Maven project POM was done a long time ago. The project POM file of the JClouds project serves as a parent for all modules in JClouds. The first step is to consolidate the used plugins. The same aspects apply to the build profiles used in the project. On closer look these must be considered obsolete. A deconstruction of declared build profiles is aimed at. In order to support newer runtime environments, for example JDK11 and above, we aim to integrate build profiles. In the respective build profile the libraries which are no longer contained in the respective target JDK but needed in JClouds are to be integrated. In the course of this rebuild, a property-based way of declaring the version number of dependencies and plugins will be implemented. --- project/pom.xml | 250 ++++++++++++++++++++++++++++-------------------- 1 file changed, 144 insertions(+), 106 deletions(-) diff --git a/project/pom.xml b/project/pom.xml index f17fe861e2..282609d160 100644 --- a/project/pom.xml +++ b/project/pom.xml @@ -217,36 +217,54 @@ + 1.8 + ${jdk.version} + ${jdk.version} + true + 5.2.0 3.0.1 + 2.17 - 1.8 - 1.8 - 1.8 - true - gitsite:git@github.com/jclouds/jclouds-maven-site.git - - 22.0 - - com.google.common.*;version="[22.0,30.0.0)" - - 4.2.3 + 2.8.5 + 27.1-jre + 4.2.3 2.2.0 - - okio;version="[1.2.0,1.3)" - - 2.17 - 1.7.0 - 1.3.0 0.1-beta1 1.0-rc3 1.4.1 1.2 + + 8.1.8.v20121106 + + 1.8.0 + + + 1.2.17 + 1.1.2 + + 4.2.0 ${osgi.version} + + + 6.8.21 + 1.3 + 1.7.0 + 1.3.0 + + + 3.4 + + + 2.1.0 + 1.3.9 + + gitsite:git@github.com/jclouds/jclouds-maven-site.git + https://archive.apache.org/dist/commons/logging/binaries/commons-logging-1.1.1-bin.tar.gz @@ -260,25 +278,16 @@ - - com.google.guava - guava - ${guava.version} - + com.google.code.gson gson ${gson.version} - com.google.code.findbugs - jsr305 - 1.3.9 - - - com.google.inject.extensions - guice-assistedinject - ${guice.version} + com.google.guava + guava + ${guava.version} com.google.inject @@ -291,71 +300,11 @@ ${guice.version} - org.easymock - easymock - 3.4 - - - org.eclipse.jetty - jetty-security - 8.1.8.v20121106 - - - org.eclipse.jetty - jetty-server - 8.1.8.v20121106 - - - com.squareup.okhttp - mockwebserver - ${okhttp.version} - - - org.gaul - modernizer-maven-annotations - 1.8.0 - - - org.testng - testng - 6.8.21 - - - junit - junit - - - - - xmlunit - xmlunit - 1.3 - - - log4j - log4j - 1.2.17 - - - ch.qos.logback - logback-classic - 1.1.2 - - - ch.qos.logback - logback-core - 1.1.2 - - - org.assertj - assertj-core - ${assertj-core.version} - - - org.assertj - assertj-guava - ${assertj-guava.version} + com.google.inject.extensions + guice-assistedinject + ${guice.version} + com.google.auto.factory auto-factory @@ -376,6 +325,42 @@ java-xmlbuilder ${java-xmlbuilder.version} + + + org.eclipse.jetty + jetty-security + ${jetty.version} + + + org.eclipse.jetty + jetty-server + ${jetty.version} + + + + org.gaul + modernizer-maven-annotations + ${modernizer-maven-annotations.version} + + + + + log4j + log4j + ${log4j.version} + + + ch.qos.logback + logback-classic + ${logback.version} + + + ch.qos.logback + logback-core + ${logback.version} + + + org.osgi org.osgi.core @@ -386,19 +371,62 @@ org.osgi.compendium ${osgi.compendium.version} + + + + org.testng + testng + ${testng.version} + + + junit + junit + + + + + xmlunit + xmlunit + ${xmlunit.version} + + + org.assertj + assertj-core + ${assertj-core.version} + + + org.assertj + assertj-guava + ${assertj-guava.version} + + + + + org.easymock + easymock + ${easymock.version} + + + com.squareup.okhttp + mockwebserver + ${okhttp.version} + + + + + com.google.errorprone + error_prone_annotations + ${error_prone.version} + + + com.google.code.findbugs + jsr305 + ${jsr305.version} + + - - com.google.errorprone - error_prone_annotations - 2.1.0 - - - com.google.code.findbugs - jsr305 - provided - org.testng testng @@ -424,6 +452,16 @@ assertj-guava test + + com.google.errorprone + error_prone_annotations + provided + + + com.google.code.findbugs + jsr305 + provided + @@ -507,7 +545,7 @@ org.apache.maven.plugins maven-surefire-plugin - ${surefire.version} + ${maven-surefire-plugin.version} integration @@ -933,7 +971,7 @@ maven-surefire-report-plugin - ${surefire.version} + ${maven-surefire-plugin.version} org.apache.rat