1- import com .softwaremill .SbtSoftwareMillCommon .commonSmlBuildSettings
2- import com .softwaremill .Publish .ossPublishSettings
3-
4- val scala2_12 = " 2.12.15"
1+ val scala2_12 = " 2.12.18"
52val scala2_13 = " 2.13.8"
63val scala2 = List (scala2_12, scala2_13)
74
8- lazy val commonSettings = commonSmlBuildSettings ++ ossPublishSettings ++ Seq (
9- organization := " com.softwaremill.akka-http- session" ,
5+ lazy val commonSettings = Seq (
6+ organization := " app.softnetwork. session" ,
107 versionScheme := Some (" early-semver" )
118)
129
10+ val akkaHttpSession = " 0.7.0"
1311val akkaHttpVersion = " 10.2.7"
1412val akkaVersion = " 2.6.18"
1513val json4sVersion = " 4.0.4"
@@ -21,41 +19,8 @@ val scalaTest = "org.scalatest" %% "scalatest" % "3.2.11" % "test"
2119
2220lazy val rootProject = (project in file(" ." ))
2321 .settings(commonSettings : _* )
24- .settings(publish / skip := true , name := " akka-http-session" , scalaVersion := scala2_13)
25- .aggregate(core.projectRefs ++ jwt.projectRefs ++ example.projectRefs ++ javaTests.projectRefs ++ tapir.projectRefs: _* )
26-
27- lazy val core = (projectMatrix in file(" core" ))
28- .settings(commonSettings : _* )
29- .settings(
30- name := " core" ,
31- libraryDependencies ++= Seq (
32- " com.typesafe.akka" %% " akka-http" % akkaHttpVersion,
33- akkaStreams % " provided" ,
34- " com.typesafe.akka" %% " akka-http-testkit" % akkaHttpVersion % " test" ,
35- akkaStreamsTestkit,
36- " com.typesafe.scala-logging" %% " scala-logging" % " 3.9.4" ,
37- " org.scalacheck" %% " scalacheck" % " 1.15.4" % " test" ,
38- scalaTest
39- )
40- )
41- .jvmPlatform(scalaVersions = scala2)
42-
43- lazy val jwt = (projectMatrix in file(" jwt" ))
44- .settings(commonSettings : _* )
45- .settings(
46- name := " jwt" ,
47- libraryDependencies ++= Seq (
48- " org.json4s" %% " json4s-jackson" % json4sVersion,
49- " org.json4s" %% " json4s-ast" % json4sVersion,
50- " org.json4s" %% " json4s-core" % json4sVersion,
51- akkaStreams % " provided" ,
52- scalaTest
53- ),
54- // generating docs for 2.13 causes an error: "not found: type DefaultFormats$"
55- Compile / doc / sources := Seq .empty
56- )
57- .jvmPlatform(scalaVersions = scala2)
58- .dependsOn(core)
22+ .settings(publish / skip := true , name := " tapir-http-session" , scalaVersion := scala2_13)
23+ .aggregate(core.projectRefs ++ example.projectRefs: _* )
5924
6025lazy val example = (projectMatrix in file(" example" ))
6126 .settings(commonSettings : _* )
@@ -71,37 +36,23 @@ lazy val example = (projectMatrix in file("example"))
7136 )
7237 )
7338 .jvmPlatform(scalaVersions = scala2)
74- .dependsOn(tapir, jwt )
39+ .dependsOn(core )
7540
76- lazy val javaTests = (projectMatrix in file(" javaTests " ))
41+ lazy val core = (projectMatrix in file(" core " ))
7742 .settings(commonSettings : _* )
7843 .settings(
79- name := " javaTests" ,
80- Test / testOptions := Seq (Tests .Argument (TestFrameworks .JUnit , " -a" )), // required for javadsl JUnit tests
81- crossPaths := false , // https://github.com/sbt/junit-interface/issues/35
82- publishArtifact := false ,
44+ name := " core" ,
8345 libraryDependencies ++= Seq (
84- akkaStreams % " provided " ,
46+ " com.softwaremill.akka-http-session " %% " core " % akkaHttpSession excludeAll ExclusionRule (organization = " com.typesafe.akka " ) ,
8547 " com.typesafe.akka" %% " akka-http" % akkaHttpVersion,
48+ akkaStreams % " provided" ,
49+ " com.softwaremill.sttp.tapir" %% " tapir-core" % tapirVersion,
50+ " com.softwaremill.sttp.tapir" %% " tapir-akka-http-server" % tapirVersion excludeAll ExclusionRule (organization = " com.typesafe.akka" ),
8651 " com.typesafe.akka" %% " akka-http-testkit" % akkaHttpVersion % " test" ,
8752 akkaStreamsTestkit,
88- " junit" % " junit" % " 4.13.2" % " test" ,
89- " com.github.sbt" % " junit-interface" % " 0.13.3" % " test" ,
90- scalaTest
91- )
92- )
93- .jvmPlatform(scalaVersions = scala2)
94- .dependsOn(core, jwt)
95-
96- lazy val tapir = (projectMatrix in file(" tapir" ))
97- .settings(commonSettings : _* )
98- .settings(
99- name := " tapir" ,
100- libraryDependencies ++= Seq (
10153 " com.typesafe.scala-logging" %% " scala-logging" % " 3.9.4" ,
102- " com.softwaremill.sttp.tapir " %% " tapir-core " % tapirVersion ,
103- " com.softwaremill.sttp.tapir " %% " tapir-akka-http-server " % tapirVersion excludeAll ExclusionRule (organization = " com.typesafe.akka " )
54+ " org.scalacheck " %% " scalacheck " % " 1.15.4 " % " test " ,
55+ scalaTest
10456 )
10557 )
10658 .jvmPlatform(scalaVersions = scala2)
107- .dependsOn(core % " compile->compile;test->test" )
0 commit comments