flyway: SBT don't enable Plugin automatically

Hello, currently I’m trying to use Flyway with SBT.

However due to the natur of the current Plugin it will be automatically enabled on all projects, this is really really ugly when you have a multi module project since it will try to run tasks as flywayMigrate on every project. It would be great if the tasks won’t be activated or when you would need to manually enable the plugin via .enablePlugins. (def trigger: PluginTrigger = noTrigger)

Disabling the Plugin won’t work and I don’t think that Flyway-sbt should trigger on allRequirements since it mostly won’t be included in every subproject.

[error] sbt.AutoPluginException: Error determining plugins for project 'server' in ...:
[error] Contradiction in selected plugins.  These plugins were both included and excluded: org.flywaydb.sbt.FlywayPlugin

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (3 by maintainers)

Most upvoted comments

Seems reasonable to disable the plugin per default. I will look for a workaround later.