11import com .lightbend .paradox .apidoc .ApidocPlugin .autoImport .apidocRootPackage
22
33// FIXME remove switching to final Akka version
4- resolvers in ThisBuild += " Akka Snapshots" .at(" https://oss.sonatype.org/content/repositories/snapshots/" )
4+ ThisBuild / resolvers += " Akka Snapshots" .at(" https://oss.sonatype.org/content/repositories/snapshots/" )
55
66lazy val `akka-persistence-jdbc` = project
77 .in(file(" ." ))
88 .enablePlugins(ScalaUnidocPlugin )
99 .disablePlugins(MimaPlugin , SitePlugin )
10- .aggregate(core, migration, docs )
10+ .aggregate(core, docs, migrator )
1111 .settings(publish / skip := true )
1212
1313lazy val core = project
@@ -24,13 +24,17 @@ lazy val core = project
2424 organization.value %% name.value % previousStableVersion.value.getOrElse(
2525 throw new Error (" Unable to determine previous version for MiMa" ))))
2626
27- lazy val migration = project
28- .in(file(" migration " ))
27+ lazy val migrator = project
28+ .in(file(" migrator " ))
2929 .disablePlugins(SitePlugin , MimaPlugin )
30+ .configs(IntegrationTest .extend(Test ))
31+ .settings(Defaults .itSettings)
3032 .settings(
31- name := " akka-persistence-jdbc-migration" ,
32- libraryDependencies ++= Dependencies .Migration ,
33+ name := " akka-persistence-jdbc-migrator" ,
34+ libraryDependencies ++= Dependencies .Migration ++ Dependencies .Libraries ,
35+ // TODO remove this when ready to publish it
3336 publish / skip := true )
37+ .dependsOn(core % " compile->compile;test->test" )
3438
3539lazy val docs = project
3640 .enablePlugins(ProjectAutoPlugin , AkkaParadoxPlugin , ParadoxSitePlugin , PreprocessPlugin , PublishRsyncPlugin )
0 commit comments