Skip to content

Commit

Permalink
DAT-18315 Add liquibase.build.properties file with commit information…
Browse files Browse the repository at this point in the history
… to all extensions (#187)

* ⬆️ (pom.xml): downgrade version from 0.5.0-SNAPSHOT to 0.4.3-SNAPSHOT for Liquibase Parent POM
🔧 (pom.xml): add buildnumber-maven-plugin to generate build properties during the validate phase

* 📝 (pom.xml): add branch configuration to use the correct branch name in the build process

* 🔧 (pom.xml): Update resource configuration to include a new directory for filtered resources with filtering disabled
♻️ (pom.xml): Refactor configuration to set doCheck and doUpdate properties to false for better build process control
♻️ (pom.xml): Refactor execution configuration to change id to 'filter-resources' and phase to 'process-resources' for clarity

* 🔧 (pom.xml): remove redundant buildnumber-maven-plugin configuration and move it to a separate plugin block for better organization and clarity

* ⬆️ (pom.xml): upgrade buildnumber-maven-plugin version to 3.2.0 for compatibility and improved functionality
♻️ (pom.xml): refactor buildnumber-maven-plugin version to use a variable for better maintainability and consistency

* 📝 (pom.xml): add buildNumber property to dynamically set the build number using GitHub Actions environment variable GITHUB_RUN_ID
  • Loading branch information
jandroav authored Aug 29, 2024
1 parent 698e193 commit c40c617
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>org.liquibase</groupId>
<artifactId>liquibase-parent-pom</artifactId>
<name>Liquibase Parent POM</name>
<version>0.5.0-SNAPSHOT</version>
<version>0.4.3-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 @@ -35,6 +35,7 @@

<properties>
<!-- Project build properties -->
<buildNumber>${env.GITHUB_RUN_ID}</buildNumber>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -52,6 +53,7 @@
<sonar.projectDescription>${project.description}</sonar.projectDescription>
<!-- Plugin versions -->
<assertj.version>3.24.2</assertj.version>
<buildnumber-maven-plugin.version>3.2.0</buildnumber-maven-plugin.version>
<build-helper-maven-plugin.version>3.4.0</build-helper-maven-plugin.version>
<commons-io.version>2.15.1</commons-io.version>
<copy-rename-maven-plugin.version>1.0.1</copy-rename-maven-plugin.version>
Expand Down Expand Up @@ -439,6 +441,24 @@
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>${buildnumber-maven-plugin.version}</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
<timestampFormat>${maven.build.timestamp.format}</timestampFormat>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit c40c617

Please sign in to comment.