Skip to content

Dependency ordering ignored #33

@duxnp

Description

@duxnp

Looks like dependsOn() is being ignored. The seed files are only being processed alphabetically.

Grails version 7.0.7
SeedMe version 7.0.0

Say you have Author and Book domain classes.

  • Create Authors.groovy and Books.groovy seed files
  • Run the seeds
  • Database is seeded as expected
  • Rename the seed files to something like BAuthors.groovy and ABooks.groovy
  • In ABooks.groovy specify that it depends on BAuthors
  • Run the seeds
  • Errors appear in the console
- Property [author] of class [class foo.Book] cannot be null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions