I have Gradle multi-project application. The root project doesn't have any sources or resources. Main function is located under app folder (submodule).
configure<LiquibaseExtension> {
activities.register("main") {
this.arguments = mapOf(
"logLevel" to "info",
"driver" to "org.postgresql.Driver",
"changeLogFile" to "src/main/resources/db/changelog-master.yml",
"url" to "${System.getenv()["DB_URL"]}",
"username" to "${System.getenv()["DB_USER"]}",
"password" to "${System.getenv()["DB_PASS"]}",
)
}
}
When I run gradle app:update command on MacOS it plugin throws this: java.nio.file.NoSuchFileException, if I add change my changelog file location from src/main/resources/db/changelog-master.yml to app/src/main/resources/db/changelog-master.yml it starts working. In contrary on Windows system app/src/main/resources/db/changelog-master.yml doesn't work but when I change path to src/main/resources/db/changelog-master.yml starts working again. Path of changelog file also affects databasechangelog table too. I need to update all my filenames based on OS I am trying to run my application.
I have Gradle multi-project application. The root project doesn't have any sources or resources. Main function is located under app folder (submodule).
Inside my build configuration, I have
When I run
gradle app:update
command on MacOS it plugin throws this:java.nio.file.NoSuchFileException
, if I add change my changelog file location fromsrc/main/resources/db/changelog-master.yml
toapp/src/main/resources/db/changelog-master.yml
it starts working. In contrary on Windows systemapp/src/main/resources/db/changelog-master.yml
doesn't work but when I change path tosrc/main/resources/db/changelog-master.yml
starts working again. Path of changelog file also affects databasechangelog table too. I need to update all my filenames based on OS I am trying to run my application.