Skip to content
This repository was archived by the owner on Oct 24, 2022. It is now read-only.

Add a non-archetype DatabasePlugin #149

Closed
markschaake opened this issue May 12, 2015 · 0 comments · Fixed by #151
Closed

Add a non-archetype DatabasePlugin #149

markschaake opened this issue May 12, 2015 · 0 comments · Fixed by #151

Comments

@markschaake
Copy link
Contributor

We now have several projects that depend on both slick and flyway for database integration and database migration, respectively. This means we have duplicate boilerplate across project build files. The solution: create a plugin of course!

The DatabasePlugin should not be an archetype, but instead a "mixin" plugin. Usage would be something like this:

// in build.sbt
enablePlugins(WebappPlugin, DatabasePlugin)

DatabasePlugin Spec

The DatabasePlugin should:

As a reference for necessary flyway settings, you can look here: https://github.com/allenai/scholar/blob/e0e21bb594e93324e41547773778bdd17b6cf695/data/crawler/flyway.sbt

markschaake pushed a commit to markschaake/ai2-sbt-plugins that referenced this issue May 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant