Skip to content

Evolutions generated in wrong place in PlayService project #12266

Open

Description

@PromanSEW

When you use PlayService, evolutions are still generating in conf folder instead of src/main/resources
Plugin should honor project layout

EDIT: Seems like this issue related to play-jdbc-evolutions in main repo, please move

Activity

  1. mkurz commented on Dec 12, 2023

    @mkurz
    Member

    This is known, there are other places where we still hardcode the conf folder, see

  2. PromanSEW commented on Dec 12, 2023

    @PromanSEW
    ContributorAuthor

    Fix: add to build.sbt in settings section

    PlayKeys.devSettings += ("play.evolutions.path", "./src/main/resources/evolutions")
  3. mkurz commented on Dec 12, 2023

    @mkurz
    Member

    Fix: add to build.sbt in settings section

    PlayKeys.devSettings += ("play.evolutions.path", "./src/main/resources/evolutions")

    Be aware this is just for dev mode.

  4. PromanSEW commented on Dec 12, 2023

    @PromanSEW
    ContributorAuthor

    @mkurz I know. This is for updating script while development

  5. PromanSEW commented on Dec 12, 2023

    @PromanSEW
    ContributorAuthor

    @mkurz seems like this issue should have been "fixed" by #11917, but in fact directoryName method still returns hardcoded conf folder for default config value

  6. mkurz commented on Dec 12, 2023

    @mkurz
    Member

    @PromanSEW #11917 was not about fixing the hardcoded conf folder, but about to allow the evolution folder to be placed outside the application's root folder. I just kept the hardcoded conf folder for now, so by default it's the same "wrong" behaviour. The intention of #11917 was not to fix the hardcoded conf folder.

  7. PromanSEW commented on Oct 23, 2026

    @PromanSEW
    ContributorAuthor

    @mkurz I think this issue was resolved by playframework/play-ebean#931 and can be closed
    EDIT: No, playframework/play-ebean#934 fixes this issue, not 931

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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