blindworld
06/12/2024, 1:03 AMmergeServiceFiles()
.maaxgr
06/12/2024, 6:11 AMAnders Sveen
06/12/2024, 6:29 AMFlyway.configure().dataSource(datasource).load().apply {
info().pending().apply {
if (isNotEmpty()) {
<http://logger.info|logger.info>("Migrations being applied: $this")
} else {
<http://logger.info|logger.info>("No migrations to apply")
}
}
migrate()
}
Flyway as normal dependency in Gradle. And then ShadowJar:
named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
manifest {
attributes["Main-Class"] = mainClassString
}
archiveBaseName.set("myjar")
mergeServiceFiles()
}
I see now we have mergeServiceFiles() but have no clue if that is actually necessary. 🙂blindworld
06/12/2024, 4:35 PM