Skip to content

Commit

Permalink
DAT-19350 configure test-harness to deploy master-snapshot to GPM (#275)
Browse files Browse the repository at this point in the history
* ♻️ (pom.xml): refactor XML formatting for better readability and maintainability
✨ (pom.xml): update version from 4.31.0-SNAPSHOT to 0.5.5-SNAPSHOT for release
✨ (pom.xml): add new profile 'use-snapshot' to include test-harness dependency for testing purposes

* ♻️ (pom.xml): refactor XML formatting for better readability and consistency by removing unnecessary line breaks in property definitions and options.

* ♻️ (pom.xml): refactor keepattributes option in configuration to add a space for better readability
  • Loading branch information
jandroav authored Jan 20, 2025
1 parent 1071371 commit b56e18c
Showing 1 changed file with 69 additions and 55 deletions.
124 changes: 69 additions & 55 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?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>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-parent-pom</artifactId>
<name>Liquibase Parent POM</name>
<version>4.31.0-SNAPSHOT</version>
<version>0.5.5-SNAPSHOT</version>
<description>Liquibase Parent POM for all Extensions</description>
<url>/~https://github.com/liquibase/liquibase-parent-pom</url>
<packaging>pom</packaging>
Expand Down Expand Up @@ -227,7 +229,7 @@
<artifactId>postgresql</artifactId>
<version>${postgresql.version}</version>
<scope>test</scope>
</dependency>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down Expand Up @@ -457,33 +459,35 @@
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>${gmavenplus-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>addSources</goal>
<goal>addTestSources</goal>
<goal>compile</goal>
<goal>compileTests</goal>
<goal>removeStubs</goal>
<goal>removeTestStubs</goal>
</goals>
<!--Runs standard tests and CommandTests which require liquibase-extension-testing-->
<configuration>
<testSources>
<testSource>
<directory>${project.basedir}/src/test/</directory>
<includes>
<include>**/**.groovy</include>
</includes>
</testSource>
</testSources>
</configuration>
</execution>
</executions>
</plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>${gmavenplus-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>addSources</goal>
<goal>addTestSources</goal>
<goal>compile</goal>
<goal>compileTests</goal>
<goal>removeStubs</goal>
<goal>removeTestStubs</goal>
</goals>
<!--Runs
standard tests and CommandTests which require
liquibase-extension-testing-->
<configuration>
<testSources>
<testSource>
<directory>${project.basedir}/src/test/</directory>
<includes>
<include>**/**.groovy</include>
</includes>
</testSource>
</testSources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand All @@ -503,18 +507,18 @@
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -609,22 +613,22 @@
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>${gmavenplus-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>addSources</goal>
<goal>addTestSources</goal>
<goal>compile</goal>
<goal>compileTests</goal>
<goal>removeStubs</goal>
<goal>removeTestStubs</goal>
</goals>
</execution>
</executions>
</plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>${gmavenplus-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>addSources</goal>
<goal>addTestSources</goal>
<goal>compile</goal>
<goal>compileTests</goal>
<goal>removeStubs</goal>
<goal>removeTestStubs</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down Expand Up @@ -791,5 +795,15 @@
</plugins>
</build>
</profile>
<profile>
<id>use-snapshot</id>
<dependencies>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>test-harness</artifactId>
<version>master-SNAPSHOT</version>
</dependency>
</dependencies>
</profile>
</profiles>
</project>

0 comments on commit b56e18c

Please sign in to comment.