Skip to content

Commit 633412a

Browse files
committed
Bring back common settings to the root project
1 parent 12e10c6 commit 633412a

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

build.sbt

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ val scala2 = List(scala2_12, scala2_13)
88
val scala2And3 = List(scala2_12, scala2_13, scala3)
99

1010
lazy val commonSettings = commonSmlBuildSettings ++ ossPublishSettings ++ Seq(
11-
organization := "com.softwaremill.akka-http-session",
1211
versionScheme := Some("early-semver")
1312
)
1413

@@ -21,12 +20,19 @@ val akkaStreamsTestkit = "com.typesafe.akka" %% "akka-stream-testkit" % akkaStre
2120
val scalaTest = "org.scalatest" %% "scalatest" % "3.2.16" % "test"
2221

2322
lazy val rootProject = (project in file("."))
23+
.settings(akkaCommonSettings: _*)
2424
.settings(publish / skip := true, name := "akka-http-session-root", scalaVersion := scala2_13)
2525
.aggregate(core.projectRefs ++ jwt.projectRefs ++ example.projectRefs ++ javaTests.projectRefs ++
2626
pekkoCore.projectRefs ++ pekkoJwt.projectRefs ++ pekkoExample.projectRefs ++ pekkoJavaTests.projectRefs: _*)
2727

28+
//
29+
30+
lazy val akkaCommonSettings = commonSettings ++ Seq(
31+
organization := "com.softwaremill.akka-http-session"
32+
)
33+
2834
lazy val core = (projectMatrix in file("core"))
29-
.settings(commonSettings: _*)
35+
.settings(akkaCommonSettings: _*)
3036
.settings(
3137
name := "core",
3238
libraryDependencies ++= Seq(
@@ -41,7 +47,7 @@ lazy val core = (projectMatrix in file("core"))
4147
.jvmPlatform(scalaVersions = scala2)
4248

4349
lazy val jwt = (projectMatrix in file("jwt"))
44-
.settings(commonSettings: _*)
50+
.settings(akkaCommonSettings: _*)
4551
.settings(
4652
name := "jwt",
4753
libraryDependencies ++= Seq(
@@ -58,7 +64,7 @@ lazy val jwt = (projectMatrix in file("jwt"))
5864
.dependsOn(core)
5965

6066
lazy val example = (projectMatrix in file("example"))
61-
.settings(commonSettings: _*)
67+
.settings(akkaCommonSettings: _*)
6268
.settings(
6369
publishArtifact := false,
6470
libraryDependencies ++= Seq(
@@ -72,7 +78,7 @@ lazy val example = (projectMatrix in file("example"))
7278
.dependsOn(core, jwt)
7379

7480
lazy val javaTests = (projectMatrix in file("javaTests"))
75-
.settings(commonSettings: _*)
81+
.settings(akkaCommonSettings: _*)
7682
.settings(
7783
name := "javaTests",
7884
Test / testOptions := Seq(Tests.Argument(TestFrameworks.JUnit, "-a")), // required for javadsl JUnit tests
@@ -93,9 +99,8 @@ lazy val javaTests = (projectMatrix in file("javaTests"))
9399

94100
// Pekko build
95101

96-
lazy val pekkoCommonSettings = commonSmlBuildSettings ++ ossPublishSettings ++ Seq(
97-
organization := "com.softwaremill.pekko-http-session",
98-
versionScheme := Some("early-semver")
102+
lazy val pekkoCommonSettings = commonSettings ++ Seq(
103+
organization := "com.softwaremill.pekko-http-session"
99104
)
100105

101106
val pekkoHttpVersion = "1.0.0"

0 commit comments

Comments
 (0)