Last active
July 15, 2020 21:04
-
-
Save pavankjadda/96640f161a12fa7bdf073b4f2f9750f9 to your computer and use it in GitHub Desktop.
Liquibase Demo pom.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-parent</artifactId> | |
<version>2.3.1.RELEASE</version> | |
<relativePath/> <!-- lookup parent from repository --> | |
</parent> | |
<groupId>com.pj</groupId> | |
<artifactId>liquibasedemo</artifactId> | |
<version>1.5.0</version> | |
<name>liquibasedemo</name> | |
<description>Liquibase Demo project with Spring Boot and Spring Data</description> | |
<properties> | |
<spring-boot.version>2.3.1.RELEASE</spring-boot.version> | |
<hibernate.version>5.4.17.Final</hibernate.version> | |
<liquibase-core.version>4.0.0</liquibase-core.version> | |
<liquibase-maven-plugin.version>4.0.0</liquibase-maven-plugin.version> | |
<liquibase-hibernate5.version>3.10.1</liquibase-hibernate5.version> | |
<validation-api.version>2.0.1.Final</validation-api.version> | |
<javassist.version>3.27.0-GA</javassist.version> | |
<jaxb-api.version>2.4.0-b180830.0359</jaxb-api.version> | |
</properties> | |
<dependencies> | |
<!-- Core--> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-actuator</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-web</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-data-jpa</artifactId> | |
</dependency> | |
<!-- Utilities--> | |
<dependency> | |
<groupId>com.fasterxml.jackson.core</groupId> | |
<artifactId>jackson-core</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>com.fasterxml.jackson.core</groupId> | |
<artifactId>jackson-databind</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.hibernate</groupId> | |
<artifactId>hibernate-envers</artifactId> | |
<version>${hibernate.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-devtools</artifactId> | |
<scope>runtime</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.liquibase</groupId> | |
<artifactId>liquibase-core</artifactId> | |
<version>${liquibase-core.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>mysql</groupId> | |
<artifactId>mysql-connector-java</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
<optional>true</optional> | |
</dependency> | |
<!-- Test--> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-test</artifactId> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<profiles> | |
<profile> | |
<id>dev</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<properties> | |
<activeProfile>dev</activeProfile> | |
</properties> | |
</profile> | |
<profile> | |
<id>test</id> | |
<properties> | |
<activeProfile>test</activeProfile> | |
</properties> | |
</profile> | |
<profile> | |
<id>prod</id> | |
<properties> | |
<activeProfile>prod</activeProfile> | |
</properties> | |
</profile> | |
</profiles> | |
<build> | |
<resources> | |
<resource> | |
<directory>src/main/resources</directory> | |
<filtering>true</filtering> | |
</resource> | |
</resources> | |
<filters> | |
<filter>src/main/resources/liquibase.properties</filter> | |
</filters> | |
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
</plugin> | |
<plugin> | |
<groupId>org.liquibase</groupId> | |
<artifactId>liquibase-maven-plugin</artifactId> | |
<version>${liquibase-maven-plugin.version}</version> | |
<configuration> | |
<propertyFile>src/main/resources/liquibase.properties</propertyFile> | |
<outputChangeLogFile>src/main/resources/db/db.changelog-${activeProfile}.xml</outputChangeLogFile> | |
<changeLogFile>src/main/resources/db/db.changelog-${activeProfile}.xml</changeLogFile> | |
<diffChangeLogFile>src/main/resources/db/changelog/${activeProfile}/${maven.build.timestamp}_changelog.xml</diffChangeLogFile> | |
<logging>info</logging> | |
</configuration> | |
<!-- Liquibase dependencies--> | |
<dependencies> | |
<dependency> | |
<groupId>org.liquibase</groupId> | |
<artifactId>liquibase-core</artifactId> | |
<version>${liquibase-core.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.liquibase.ext</groupId> | |
<artifactId>liquibase-hibernate5</artifactId> | |
<version>${liquibase-hibernate5.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-data-jpa</artifactId> | |
<version>${spring-boot.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>javax.validation</groupId> | |
<artifactId>validation-api</artifactId> | |
<version>${validation-api.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.javassist</groupId> | |
<artifactId>javassist</artifactId> | |
<version>${javassist.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>javax.xml.bind</groupId> | |
<artifactId>jaxb-api</artifactId> | |
<version>${jaxb-api.version}</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment