Skip to content

Commit

Permalink
refactor sbt maven settings
Browse files Browse the repository at this point in the history
  • Loading branch information
shuttie committed Jun 18, 2021
1 parent e7d9efc commit ca51ad0
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import Deps._

name := "featury"

version := "0.0.1-SNAPSHOT"
version := "0.1"

lazy val shared = Seq(
organization := "io.findify",
scalaVersion := "2.12.14",
//scalacOptions ++= Seq("-feature", "-deprecation"),
version := "0.0.1-SNAPSHOT",
version := "0.1",
organization := "io.findify"
)

lazy val mavenSettings = Seq(
publishMavenStyle := true,
publishTo := sonatypePublishToBundle.value,
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
Expand All @@ -26,29 +28,43 @@ lazy val shared = Seq(

scalaVersion := "2.12.14"

lazy val core = (project in file("core")).settings(shared: _*)
lazy val core = (project in file("core")).settings(shared: _*).settings(mavenSettings: _*)

lazy val flink = (project in file("flink"))
.settings(shared: _*)
.settings(mavenSettings: _*)
.dependsOn(core % "test->test;compile->compile")
.dependsOn(rocksdb % "test->test;compile->compile")

lazy val api = (project in file("api"))
.settings(shared: _*)
.settings(mavenSettings: _*)
.dependsOn(core % "test->test;compile->compile")
.dependsOn(redis % "test->test;compile->compile")
.dependsOn(cassandra % "test->test;compile->compile")

lazy val redis = (project in file("connector/redis"))
.settings(shared: _*)
.settings(mavenSettings: _*)
.dependsOn(core % "test->test;compile->compile")

lazy val cassandra = (project in file("connector/cassandra"))
.settings(shared: _*)
.settings(mavenSettings: _*)
.dependsOn(core % "test->test;compile->compile")

lazy val rocksdb = (project in file("connector/rocksdb"))
.settings(shared: _*)
.settings(mavenSettings: _*)
.dependsOn(core % "test->test;compile->compile")

lazy val root = (project in file("."))
.aggregate(core, flink, api, redis, cassandra, rocksdb)
.settings(
name := "Featury"
)
.settings(shared: _*)

sonatypeProfileName := "io.findify"

usePgpKeyHex("6CFDF5062176DE9FB05578013C45A82BD53DADD4")

0 comments on commit ca51ad0

Please sign in to comment.