Skip to content

Commit

Permalink
Add dependencies, plugins, and configurations to POM files.
Browse files Browse the repository at this point in the history
Added new dependencies such as Mockito and configurations for plugins like maven-dependency-plugin, dokka-maven-plugin, and maven-release-plugin. Also included changes to the build and reporting sections to enhance the project setup and ensure proper integration testing and deployment features. Removed redundant repository entries in the parent POM.
  • Loading branch information
Konstantin Pavlov authored and Konstantin Pavlov committed Nov 9, 2024
1 parent 0adbab0 commit 4b8e700
Show file tree
Hide file tree
Showing 5 changed files with 183 additions and 9 deletions.
1 change: 1 addition & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-test-jvm</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

Expand Down
29 changes: 21 additions & 8 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@
<wiremock.version>3.9.2</wiremock.version>
</properties>

<repositories>
<repository>
<id>mavenCentral</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
</repositories>

<build>
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
Expand All @@ -51,6 +44,7 @@
<args>
<arg>-Xjsr305=strict</arg>
</args>
<javaParameters>true</javaParameters>
</configuration>
<executions>
<execution>
Expand All @@ -76,6 +70,14 @@
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.5.2</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -105,6 +107,17 @@
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>properties</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
Expand All @@ -128,7 +141,7 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{argLine}</argLine>
<argLine>@{argLine} -javaagent:${org.mockito:mockito-core:jar}</argLine>
</configuration>
</plugin>
<plugin>
Expand Down
150 changes: 149 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Project :: Aggregator</name>
<description>Helper utilities for integration testing</description>
<url>https://github.com/kpavlov/finchly</url>

<modules>
<module>parent</module>
Expand All @@ -20,18 +22,65 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.8.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.21.0</version>
</plugin>
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
<version>1.9.20</version>
</plugin>
<plugin>
<groupId>com.github.ozsie</groupId>
<artifactId>detekt-maven-plugin</artifactId>
<version>1.23.7</version>
</plugin>
<plugin>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kover-maven-plugin</artifactId>
<version>0.9.0-RC</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.11.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.5.2</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>properties</id>
<goals>
<goal>properties</goal>
</goals>
</execution>
<execution>
<goals>
<goal>analyze-only</goal>
Expand Down Expand Up @@ -86,14 +135,113 @@
<artifactId>dokka-maven-plugin</artifactId>
<executions>
<execution>
<phase>pre-site</phase>
<phase>package</phase>
<goals>
<goal>javadocJar</goal>
</goals>
<configuration>
<attach>true</attach>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>true</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<tagNameFormat>v@{project.version}</tagNameFormat>
<projectVersionPolicyId>SemVerVersionPolicy</projectVersionPolicyId>
<goals>deploy</goals>
</configuration>
</plugin>
</plugins>
</build>

<reporting>
<excludeDefaults>true</excludeDefaults>
<plugins>
<plugin>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kover-maven-plugin</artifactId>
</plugin>
</plugins>
</reporting>

<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/license/mit</url>
</license>
</licenses>

<developers>
<developer>
<name>Konstantin Pavlov</name>
<url>https://kpavlov.me</url>
<roles>
<role>author</role>
<role>owner</role>
</roles>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/kpavlov/finchly.git</connection>
<developerConnection>scm:git:ssh://github.com/kpavlov/finchly.git</developerConnection>
<url>https://github.com/kpavlov/finchly/tree/main</url>
<tag>HEAD</tag>
</scm>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.7</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- https://central.sonatype.org/publish/publish-portal-maven/ -->
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.6.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>validated</waitUntil>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
6 changes: 6 additions & 0 deletions reports/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
<goal>report-xml</goal>
</goals>
</execution>
<execution>
<id>kover-log</id>
<goals>
<goal>log</goal>
</goals>
</execution>
<execution>
<id>kover-verify</id>
<goals>
Expand Down
6 changes: 6 additions & 0 deletions wiremock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
<version>${wiremock.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.14.2</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>

0 comments on commit 4b8e700

Please sign in to comment.