Skip to content

Commit

Permalink
chore: Remove CassandraLauncher (#1054)
Browse files Browse the repository at this point in the history
* chore: Remove CassandraLauncher

* remove multi-jvm plugin
  • Loading branch information
patriknw authored Sep 27, 2023
1 parent 6fe256b commit 6ed1e6d
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 1,115 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ This is the process for committing code into main. There are of course exception
## Running the tests

The tests rely on a Cassandra instance running locally on port 9042. A docker-compose file is
provided in the root of the project to start this with `docker-compose up -d cassandra`
provided in the root of the project to start this with `docker-compose up -d cassandra-latest`

## Pull Request Requirements

Expand Down
30 changes: 2 additions & 28 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,48 +13,22 @@ lazy val root = project
.in(file("."))
.enablePlugins(Common, ScalaUnidocPlugin)
.disablePlugins(SitePlugin)
.aggregate(core, cassandraLauncher)
.aggregate(core)
.settings(name := "akka-persistence-cassandra-root", publish / skip := true)

lazy val dumpSchema = taskKey[Unit]("Dumps cassandra schema for docs")
dumpSchema := (core / Test / runMain).toTask(" akka.persistence.cassandra.PrintCreateStatements").value

lazy val core = project
.in(file("core"))
.enablePlugins(Common, AutomateHeaderPlugin, MultiJvmPlugin)
.dependsOn(cassandraLauncher % Test)
.enablePlugins(Common, AutomateHeaderPlugin)
.settings(
name := "akka-persistence-cassandra",
libraryDependencies ++= Dependencies.akkaPersistenceCassandraDependencies,
Compile / packageBin / packageOptions += Package.ManifestAttributes(
"Automatic-Module-Name" -> "akka.persistence.cassandra"))
.configs(MultiJvm)
.settings(Scala3.settings)

lazy val cassandraLauncher = project
.in(file("cassandra-launcher"))
.enablePlugins(Common)
.settings(
name := "akka-persistence-cassandra-launcher",
Compile / managedResourceDirectories += (cassandraBundle / target).value / "bundle",
Compile / managedResources += (cassandraBundle / assembly).value)
.settings(Scala3.settings)

// This project doesn't get published directly, rather the assembled artifact is included as part of cassandraLaunchers
// resources
lazy val cassandraBundle = project
.in(file("cassandra-bundle"))
.enablePlugins(Common, AutomateHeaderPlugin)
.settings(
name := "akka-persistence-cassandra-bundle",
crossPaths := false,
autoScalaLibrary := false,
libraryDependencies += ("org.apache.cassandra" % "cassandra-all" % "3.11.3")
.exclude("commons-logging", "commons-logging"),
dependencyOverrides += "com.github.jbellis" % "jamm" % "0.3.3", // See jamm comment in https://issues.apache.org/jira/browse/CASSANDRA-9608
assembly / target := target.value / "bundle" / "akka" / "persistence" / "cassandra" / "launcher",
assembly / assemblyJarName := "cassandra-bundle.jar")

// Used for testing events by tag in various environments
lazy val endToEndExample = project
.in(file("example"))
Expand Down
1 change: 0 additions & 1 deletion cassandra-launcher/.gitignore

This file was deleted.

Loading

0 comments on commit 6ed1e6d

Please sign in to comment.