Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

InvalidUserDataException using default flyway source directory #9

@jkellyinsf

Description

@jkellyinsf

I'm using version 3.5.0 and setting the migrationsPaths to the flyway default:

migrationsPaths = ['./src/main/resources/db.migration/']

I get this error message:

Caused by: org.gradle.api.InvalidUserDataException: Directory 'C:\Users\...\src\main\resources\db.migration' specified for property '$1' does not exist. 
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.report(ValidatingTaskExecuter.java:64)

I've tried variations on the path by leaving off the initial period and last slash, but I get the same error. Leaving off the last element avoids that error but I presume misses all the migration files. I'm getting a docker error before it gets that far.

I also tried setting it to a file object rather than a string:

migrationsPaths = [file('./src/main/resources/db.migration/')]

but this yields

java.lang.ClassCastException: java.io.File cannot be cast to java.lang.String
    at ch.ayedo.jooqmodelator.gradle.JooqModelatorPlugin$apply$1.execute(JooqModelatorPlugin.kt:95)

Though there doesn't seem to be a line 95 of JooqModelatorPlugin.kt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions