Git Product home page Git Product logo

Comments (2)

stevesaliman avatar stevesaliman commented on July 25, 2024 1

The default directory for resolving relative paths is the root directory of the project.

Let's say that your main changelog is in src/main/db, and the included changelogs are in src/main/db/include. , There are two ways you can resolve paths in an include element.

The first is to use path: "src/main/db/include" in your include elements, which tells Liquibase to find them relative to Gradle's working directory

The second is to use path: 'include', relativeToChangelogFile: true in your include elements, which tells Liquibase to find them relative to the changelog file itself.

from liquibase-gradle-plugin.

gavenkoa avatar gavenkoa commented on July 25, 2024

Check https://stackoverflow.com/questions/27187979/gradle-liquibase-change-log-file-could-not-be-found

liquibase {
   activities {
      main {
         // Real path: $subproj/src/main/resources/db/master.xml
         changeLogFile 'db/master.xml'
         // Allows to strip "src/main/resources".
         classpath "${projectDir}/src/main/resources"

         url 'jdbc:mysql://localhost:3306/test'
         username 'XXX'
         password 'XXX'
     }
  }
 runList = 'main'
}

from liquibase-gradle-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.