migrations icon indicating copy to clipboard operation
migrations copied to clipboard

Read environment properties files in ZIP/JAR archive

Open h3adache opened this issue 6 years ago • 3 comments

A built in jar migration loader would be nice. I'm reuse my own jar migration loader quite a bit atm.

h3adache avatar May 23 '18 13:05 h3adache

If a custom migration loader is built-in, it'll be picked up by SPI, I think.

I haven't tested it, but if it's published as a separate module on Maven Central or Bintray JCenter, users of Maven/Gradle plugin may be able to use it just by adding it as a dependency.

harawata avatar Jul 22 '18 16:07 harawata

Hi @harawata! Sorry for the late response. I've been away. The problem isn't with the custom migration loader, it's due to when it reads environment/xx.properties This is assumed to be on the file system and not able to read using the migration loader. A file loader strategy or {{ResourceLoader}} like Spring has would be a solution here.

h3adache avatar Aug 16 '18 17:08 h3adache

@h3adache , It may be possible to provide another extension point like custom file migration loader. I'll look into it.

harawata avatar Aug 24 '18 16:08 harawata