Skip to content

Commit

Permalink
Attempt to tidy up pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosroman committed Jan 5, 2024
1 parent 576337c commit fe36ecf
Showing 1 changed file with 89 additions and 37 deletions.
126 changes: 89 additions & 37 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,38 +31,6 @@
</developer>
</developers>

<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>

<commons-io.version>2.4</commons-io.version>
<apache-commons-lang3.version>3.5</apache-commons-lang3.version>
<java-dogstatsd-client.version>2.10.5</java-dogstatsd-client.version>
<jcommander.version>1.35</jcommander.version>
<slf4j.version>1.7.32</slf4j.version>
<jackson.version>2.12.3</jackson.version>
<snakeyaml.version>2.0</snakeyaml.version>
<maven-deploy-plugin.version>3.1.1</maven-deploy-plugin.version>
<!-- Note: using project checkstyle with AOSP style
find the default google java checkstyle config here -
<checkstyle.config.location>google_checks.xml</checkstyle.config.location>
-->
<checkstyle.config.location>style.xml</checkstyle.config.location>


<junit.version>4.13.1</junit.version>
<mockito.version>2.28.2</mockito.version>

<maven-surefire-plugin.version>2.9</maven-surefire-plugin.version>
<buildnumber-maven-plugin.version>1.4</buildnumber-maven-plugin.version>
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
<maven-assembly-plugin.version>3.1.0</maven-assembly-plugin.version>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<project.scm.id>github</project.scm.id>
</properties>

<profiles>
<!-- Performing a release deployment requires setting of performRelease property -->
<profile>
Expand Down Expand Up @@ -147,6 +115,46 @@
</profile>
</profiles>

<properties>
<apache-commons-lang3.version>3.5</apache-commons-lang3.version>
<buildnumber-maven-plugin.version>1.4</buildnumber-maven-plugin.version>
<!-- checkstyle - Note: using project checkstyle with AOSP style
find the default google java checkstyle config here -
<checkstyle.config.location>google_checks.xml</checkstyle.config.location>
-->
<checkstyle.config.location>style.xml</checkstyle.config.location>
<commons-io.version>2.4</commons-io.version>
<hamcrest-library.version>1.3</hamcrest-library.version>
<jackson.version>2.12.3</jackson.version>
<java-dogstatsd-client.version>2.10.5</java-dogstatsd-client.version>
<java.charset>UTF-8</java.charset>
<jcommander.version>1.35</jcommander.version>
<jdk.version>1.7</jdk.version>
<junit.version>4.13.1</junit.version>
<maven-assembly-plugin.version>3.1.0</maven-assembly-plugin.version>
<!-- maven-checkstyle-plugin - 3.0.0 Needed as LeftCurly fails with Property 'maxLineLength' does not exist on JDK 8 -->
<maven-checkstyle-plugin.version>3.0.0</maven-checkstyle-plugin.version>
<maven-clean-plugin.version>3.2.0</maven-clean-plugin.version>
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
<maven-deploy-plugin.version>3.1.1</maven-deploy-plugin.version>
<!-- maven-enforcer-plugin - 3.0.0-M3 is max version that supports Java 7 -->
<maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version>
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
<maven-surefire-plugin.version>2.9</maven-surefire-plugin.version>
<maven-wrapper-plugin.version>3.2.0</maven-wrapper-plugin.version>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.version>3.9.3</maven.version>
<mockito.version>2.28.2</mockito.version>
<project.build.sourceEncoding>${java.charset}</project.build.sourceEncoding>
<project.reporting.outputEncoding>${java.charset}</project.reporting.outputEncoding>
<project.scm.id>github</project.scm.id>
<slf4j.version>1.7.32</slf4j.version>
<snakeyaml.version>2.0</snakeyaml.version>
<testcontainers.version>1.19.3</testcontainers.version>
</properties>

<dependencies>
<dependency>
<groupId>com.beust</groupId>
Expand Down Expand Up @@ -200,13 +208,13 @@
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<version>1.19.3</version>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.3</version>
<version>${hamcrest-library.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -223,6 +231,41 @@
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>${maven-clean-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-wrapper-plugin</artifactId>
<version>${maven-wrapper-plugin.version}</version>
<configuration>
<distributionType>source</distributionType>
<mavenVersion>${maven.version}</mavenVersion>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven-enforcer-plugin.version}</version>
<configuration>
<rules>
<!-- <dependencyConvergence/> -->
<!-- Keep Maven up to date -->
<requireMavenVersion>
<version>${maven.version}</version>
</requireMavenVersion>
</rules>
</configuration>
<executions>
<execution>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down Expand Up @@ -277,7 +320,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<version>${maven-javadoc-plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down Expand Up @@ -318,7 +361,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.0.0</version>
<version>${maven-checkstyle-plugin.version}</version>
<executions>
<execution>
<id>checkstyle</id>
Expand All @@ -337,6 +380,15 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
</configuration>
</plugin>
<!-- Skip the maven release default deploy, we use the Nexus staging plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -354,7 +406,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.0.0</version>
<version>${maven-checkstyle-plugin.version}</version>
<reportSets>
<reportSet>
<reports>
Expand Down

0 comments on commit fe36ecf

Please sign in to comment.