Skip to content

Commit

Permalink
Introduce dropwizard-project for common build configuration
Browse files Browse the repository at this point in the history
dropwizard-parent is still the parent POM for most Dropwizard modules,
but automatically includes the dependencies from dropwizard-bom and dropwizard-dependencies.
  • Loading branch information
joschi committed Aug 24, 2019
1 parent ebc4a91 commit ae4899d
Show file tree
Hide file tree
Showing 36 changed files with 483 additions and 695 deletions.
3 changes: 2 additions & 1 deletion docs/pom.xml
Expand Up @@ -4,7 +4,7 @@

<parent>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-parent</artifactId>
<artifactId>dropwizard-project</artifactId>
<version>2.0.0-rc6-SNAPSHOT</version>
</parent>

Expand All @@ -22,6 +22,7 @@
<plugin>
<groupId>kr.motd.maven</groupId>
<artifactId>sphinx-maven-plugin</artifactId>
<version>2.6.0</version>
<configuration>
<sourceDirectory>${project.basedir}/source</sourceDirectory>
</configuration>
Expand Down
2 changes: 1 addition & 1 deletion dropwizard-archetypes/pom.xml
Expand Up @@ -4,7 +4,7 @@

<parent>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-parent</artifactId>
<artifactId>dropwizard-project</artifactId>
<version>2.0.0-rc6-SNAPSHOT</version>
</parent>

Expand Down
13 changes: 1 addition & 12 deletions dropwizard-assets/pom.xml
Expand Up @@ -6,23 +6,12 @@
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-parent</artifactId>
<version>2.0.0-rc6-SNAPSHOT</version>
<relativePath>../dropwizard-parent</relativePath>
</parent>

<artifactId>dropwizard-assets</artifactId>
<name>Dropwizard Asset Bundle</name>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-dependencies</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
Expand Down
13 changes: 1 addition & 12 deletions dropwizard-auth/pom.xml
Expand Up @@ -6,23 +6,12 @@
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-parent</artifactId>
<version>2.0.0-rc6-SNAPSHOT</version>
<relativePath>../dropwizard-parent</relativePath>
</parent>

<artifactId>dropwizard-auth</artifactId>
<name>Dropwizard Authentication</name>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-dependencies</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
Expand Down
31 changes: 18 additions & 13 deletions dropwizard-benchmarks/pom.xml
@@ -1,11 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
<artifactId>dropwizard-parent</artifactId>
<groupId>io.dropwizard</groupId>
<version>2.0.0-rc6-SNAPSHOT</version>
<relativePath>../dropwizard-parent</relativePath>
</parent>

<properties>
Expand All @@ -25,18 +27,6 @@
<artifactId>dropwizard-benchmarks</artifactId>
<name>Dropwizard Benchmarks</name>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-dependencies</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.openjdk.jmh</groupId>
Expand All @@ -61,4 +51,19 @@
<artifactId>jersey-test-framework-core</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>io/dropwizard/benchmarks/**/*.class</exclude>
<exclude>org/openjdk/jmh/**/*.class</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>
2 changes: 1 addition & 1 deletion dropwizard-bom/pom.xml
Expand Up @@ -5,7 +5,7 @@

<parent>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-parent</artifactId>
<artifactId>dropwizard-project</artifactId>
<version>2.0.0-rc6-SNAPSHOT</version>
</parent>

Expand Down
14 changes: 1 addition & 13 deletions dropwizard-client/pom.xml
Expand Up @@ -6,23 +6,12 @@
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-parent</artifactId>
<version>2.0.0-rc6-SNAPSHOT</version>
<relativePath>../dropwizard-parent</relativePath>
</parent>

<artifactId>dropwizard-client</artifactId>
<name>Dropwizard HTTP Client</name>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-dependencies</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
Expand Down Expand Up @@ -72,7 +61,6 @@
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.62</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
13 changes: 1 addition & 12 deletions dropwizard-configuration/pom.xml
Expand Up @@ -6,23 +6,12 @@
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-parent</artifactId>
<version>2.0.0-rc6-SNAPSHOT</version>
<relativePath>../dropwizard-parent</relativePath>
</parent>

<artifactId>dropwizard-configuration</artifactId>
<name>Dropwizard Configuration Support</name>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-dependencies</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
Expand Down
13 changes: 1 addition & 12 deletions dropwizard-core/pom.xml
Expand Up @@ -6,23 +6,12 @@
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-parent</artifactId>
<version>2.0.0-rc6-SNAPSHOT</version>
<relativePath>../dropwizard-parent</relativePath>
</parent>

<artifactId>dropwizard-core</artifactId>
<name>Dropwizard</name>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-dependencies</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
Expand Down
13 changes: 1 addition & 12 deletions dropwizard-db/pom.xml
Expand Up @@ -6,23 +6,12 @@
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-parent</artifactId>
<version>2.0.0-rc6-SNAPSHOT</version>
<relativePath>../dropwizard-parent</relativePath>
</parent>

<artifactId>dropwizard-db</artifactId>
<name>Dropwizard Database Support</name>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-dependencies</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
Expand Down
85 changes: 73 additions & 12 deletions dropwizard-dependencies/pom.xml
Expand Up @@ -5,8 +5,9 @@

<parent>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-parent</artifactId>
<artifactId>dropwizard-bom</artifactId>
<version>2.0.0-rc6-SNAPSHOT</version>
<relativePath>../dropwizard-bom</relativePath>
</parent>

<artifactId>dropwizard-dependencies</artifactId>
Expand All @@ -25,7 +26,7 @@
<classmate.version>1.5.0</classmate.version>
<commons-lang3.version>3.9</commons-lang3.version>
<commons-text.version>1.7</commons-text.version>
<compiler.version>0.9.6</compiler.version>
<error_prone.version>2.3.3</error_prone.version>
<error_prone_annotations.version>2.3.3</error_prone_annotations.version>
<freemarker.version>2.3.29</freemarker.version>
<guava.version>28.0-jre</guava.version>
Expand All @@ -50,7 +51,8 @@
<logback-throttling-appender.version>1.0.1</logback-throttling-appender.version>
<logback.version>1.2.3</logback.version>
<metrics4.version>4.1.0</metrics4.version>
<mockito.version>3.0.0</mockito.version>
<mustache-compiler.version>0.9.6</mustache-compiler.version>
<nullaway.version>0.6.5</nullaway.version>
<objenesis.version>3.0.1</objenesis.version>
<servlet.version>3.0.0.v201112011016</servlet.version>
<slf4j.version>1.7.28</slf4j.version>
Expand All @@ -59,21 +61,27 @@

<!-- Test dependencies -->
<assertj.version>3.13.2</assertj.version>
<bcprov-jdk15on.version>1.62</bcprov-jdk15on.version>
<h2.version>1.4.199</h2.version>
<hsqldb.version>2.5.0</hsqldb.version>
<junit.version>4.12</junit.version>
<junit5.version>5.5.1</junit5.version>
<mockito.version>3.0.0</mockito.version>

<!-- Plugin versions -->
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven-enforcer-plugin.version>1.4.1</maven-enforcer-plugin.version>
<maven-source-plugin.version>3.1.0</maven-source-plugin.version>
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
<coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version>
<jacoco-maven-plugin.version>0.8.4</jacoco-maven-plugin.version>
<lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
<pgpverify-maven-plugin.version>1.4.0</pgpverify-maven-plugin.version>
<plexus-compiler-javac-errorprone.version>2.8.5</plexus-compiler-javac-errorprone.version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<!-- Jackson -->
<dependency>
<groupId>com.fasterxml.jackson</groupId>
Expand Down Expand Up @@ -271,7 +279,7 @@
<dependency>
<groupId>com.github.spullara.mustache.java</groupId>
<artifactId>compiler</artifactId>
<version>${compiler.version}</version>
<version>${mustache-compiler.version}</version>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
Expand Down Expand Up @@ -432,6 +440,59 @@
<version>${assertj.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>${bcprov-jdk15on.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven-enforcer-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>${coveralls-maven-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.simplify4u.plugins</groupId>
<artifactId>pgpverify-maven-plugin</artifactId>
<version>${pgpverify-maven-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>${lifecycle-mapping.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>

0 comments on commit ae4899d

Please sign in to comment.