Skip to content

Commit

Permalink
Merge pull request #248 from spannm/dbus-java-manage-junit-deps-by-bom
Browse files Browse the repository at this point in the history
Manage JUnit 5 dependenices using BOM
  • Loading branch information
hypfvieh authored Jan 26, 2024
2 parents 9494890 + f707abc commit 7aa46de
Showing 1 changed file with 31 additions and 49 deletions.
80 changes: 31 additions & 49 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<maven.javadoc.skip>false</maven.javadoc.skip>
<check.skip-javadoc>false</check.skip-javadoc>

<check.skip-checkstyle>false</check.skip-checkstyle>
<check.skip-pmd>false</check.skip-pmd>
<sonar.skip>true</sonar.skip>
<junit5.minor.version>10.1</junit5.minor.version>

<junit5.version>5.10.1</junit5.version>
<pmd.version>6.55.0</pmd.version>
<checkstyle.version>10.12.7</checkstyle.version>
<logback.version>1.4.14</logback.version>
Expand Down Expand Up @@ -56,22 +56,22 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand All @@ -86,7 +86,7 @@
<goals>
<goal>check</goal>
</goals>
<phase>test-compile</phase> <!-- fail before we do testing -->
<phase>test-compile</phase> <!-- fail before we do testing -->
</execution>
</executions>
</plugin>
Expand Down Expand Up @@ -147,7 +147,7 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand All @@ -167,7 +167,7 @@
</archive>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand All @@ -180,7 +180,7 @@
</systemPropertyVariables>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down Expand Up @@ -320,7 +320,7 @@
<version>3.1.0</version>
</plugin>
</plugins>

</pluginManagement>

</build>
Expand All @@ -344,15 +344,14 @@
</reports>
</reportSet>
</reportSets>
</plugin>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
</plugin>
</plugins>
</plugins>
</reporting>


<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
Expand All @@ -362,10 +361,10 @@
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<site>
<id>local</id>
<url>file://${java.io.tmpdir}/site-prepared</url>
</site>
<site>
<id>local</id>
<url>file://${java.io.tmpdir}/site-prepared</url>
</site>
</distributionManagement>

<dependencyManagement>
Expand All @@ -390,32 +389,15 @@

<!-- JUnit testing framework. -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.${junit5.minor.version}</version>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>5.${junit5.minor.version}</version>
</dependency>

<!-- needed for IDE support -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.${junit5.minor.version}</version>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit5.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>1.${junit5.minor.version}</version>
</dependency>

<!-- Base dependencies for submodules -->

<dependency>
<groupId>com.github.jnr</groupId>
<artifactId>jnr-unixsocket</artifactId>
Expand Down Expand Up @@ -475,9 +457,9 @@

<licenses>
<license>
<name>MIT License</name>
<url>https://github.com/hypfvieh/dbus-java/blob/master/LICENSE</url>
</license>
<name>MIT License</name>
<url>https://github.com/hypfvieh/dbus-java/blob/master/LICENSE</url>
</license>
</licenses>

<developers>
Expand All @@ -493,7 +475,7 @@
<name>Matthew Johnson</name>
<email>[email protected]</email>
</contributor>

<contributor>
<name>thjomnx</name>
<url>https://github.com/thjomnx</url>
Expand Down Expand Up @@ -575,7 +557,7 @@
</activation>
<modules>
<module>dbus-java-transport-native-unixsocket</module>
</modules>
</modules>
</profile>
<profile>
<id>fast</id>
Expand All @@ -598,7 +580,7 @@
<check.skip-pmd>true</check.skip-pmd>
</properties>
</profile>

<profile>
<id>sonarcloud</id>
<activation>
Expand All @@ -608,7 +590,7 @@
<sonar.skip>false</sonar.skip>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.organization>hypfvieh</sonar.organization>

<maven.test.skip>true</maven.test.skip>
<skipTests>true</skipTests>
<maven.javadoc.skip>true</maven.javadoc.skip>
Expand Down

0 comments on commit 7aa46de

Please sign in to comment.