Skip to content

Commit c40c617

Browse files
authored
DAT-18315 Add liquibase.build.properties file with commit information 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
1 parent 698e193 commit c40c617

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

pom.xml

+21-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>org.liquibase</groupId>
55
<artifactId>liquibase-parent-pom</artifactId>
66
<name>Liquibase Parent POM</name>
7-
<version>0.5.0-SNAPSHOT</version>
7+
<version>0.4.3-SNAPSHOT</version>
88
<description>Liquibase Parent POM for all Extensions</description>
99
<url>https://github.com/liquibase/liquibase-parent-pom</url>
1010
<packaging>pom</packaging>
@@ -35,6 +35,7 @@
3535

3636
<properties>
3737
<!-- Project build properties -->
38+
<buildNumber>${env.GITHUB_RUN_ID}</buildNumber>
3839
<maven.compiler.source>1.8</maven.compiler.source>
3940
<maven.compiler.target>1.8</maven.compiler.target>
4041
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -52,6 +53,7 @@
5253
<sonar.projectDescription>${project.description}</sonar.projectDescription>
5354
<!-- Plugin versions -->
5455
<assertj.version>3.24.2</assertj.version>
56+
<buildnumber-maven-plugin.version>3.2.0</buildnumber-maven-plugin.version>
5557
<build-helper-maven-plugin.version>3.4.0</build-helper-maven-plugin.version>
5658
<commons-io.version>2.15.1</commons-io.version>
5759
<copy-rename-maven-plugin.version>1.0.1</copy-rename-maven-plugin.version>
@@ -439,6 +441,24 @@
439441
<artifactId>build-helper-maven-plugin</artifactId>
440442
<version>${build-helper-maven-plugin.version}</version>
441443
</plugin>
444+
<plugin>
445+
<groupId>org.codehaus.mojo</groupId>
446+
<artifactId>buildnumber-maven-plugin</artifactId>
447+
<version>${buildnumber-maven-plugin.version}</version>
448+
<executions>
449+
<execution>
450+
<phase>validate</phase>
451+
<goals>
452+
<goal>create</goal>
453+
</goals>
454+
</execution>
455+
</executions>
456+
<configuration>
457+
<doCheck>false</doCheck>
458+
<doUpdate>false</doUpdate>
459+
<timestampFormat>${maven.build.timestamp.format}</timestampFormat>
460+
</configuration>
461+
</plugin>
442462
</plugins>
443463
</build>
444464

0 commit comments

Comments
 (0)