|
1 | | -enablePlugins(JavaAppPackaging) |
2 | | -enablePlugins(BuildInfoPlugin) |
3 | | -enablePlugins(GitVersioning) |
| 1 | +lazy val zioVersion = "2.0.0-RC5" |
| 2 | +lazy val gitCommitString = SettingKey[String]("gitCommit") |
4 | 3 |
|
5 | | -organization := "org.renci" |
| 4 | +lazy val commonSettings = Seq( |
| 5 | + organization := "org.geneontology", |
| 6 | + version := "2.2-SNAPSHOT", |
| 7 | + licenses := Seq("MIT license" -> url("https://opensource.org/licenses/MIT")), |
| 8 | + scalaVersion := "2.13.8", |
| 9 | + scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8"), |
| 10 | + javaOptions += "-Xmx8G" |
| 11 | +) |
6 | 12 |
|
7 | | -name := "relation-graph" |
| 13 | +lazy val publishSettings = Seq( |
| 14 | + Test / publishArtifact := false, |
| 15 | + publishMavenStyle := true, |
| 16 | + publishTo := { |
| 17 | + val nexus = "https://oss.sonatype.org/" |
| 18 | + if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots") |
| 19 | + else Some("releases" at nexus + "service/local/staging/deploy/maven2") |
| 20 | + }, |
| 21 | + pomExtra := <scm> |
| 22 | + <url>git@github.com:balhoff/relation-graph.git</url> |
| 23 | + <connection>scm:git:git@github.com:balhoff/relation-graph.git</connection> |
| 24 | + </scm> |
| 25 | + <developers> |
| 26 | + <developer> |
| 27 | + <id>balhoff</id> |
| 28 | + <name>Jim Balhoff</name> |
| 29 | + <email>balhoff@renci.org</email> |
| 30 | + </developer> |
| 31 | + </developers> |
| 32 | +) |
8 | 33 |
|
9 | | -version := "2.1.0" |
| 34 | +lazy val parentProject = project |
| 35 | + .in(file(".")) |
| 36 | + .settings(commonSettings) |
| 37 | + .settings(name := "relation-graph-project", publish / skip := true) |
| 38 | + .aggregate(core, cli) |
10 | 39 |
|
11 | | -licenses := Seq("MIT license" -> url("https://opensource.org/licenses/MIT")) |
12 | | - |
13 | | -scalaVersion := "2.13.8" |
14 | | - |
15 | | -scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8") |
16 | | - |
17 | | -javaOptions += "-Xmx8G" |
18 | | - |
19 | | -testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework") |
20 | | - |
21 | | -val gitCommitString = SettingKey[String]("gitCommit") |
22 | | - |
23 | | -gitCommitString := git.gitHeadCommit.value.getOrElse("Not Set") |
24 | | - |
25 | | -buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion, gitCommitString) |
26 | | - |
27 | | -buildInfoPackage := "org.renci.relationgraph" |
28 | | - |
29 | | -val zioVersion = "2.0.0-RC3" |
| 40 | +lazy val core = project |
| 41 | + .in(file("core")) |
| 42 | + .settings(commonSettings) |
| 43 | + .settings( |
| 44 | + name := "relation-graph", |
| 45 | + description := "relation-graph core", |
| 46 | + testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"), |
| 47 | + libraryDependencies ++= Seq( |
| 48 | + "dev.zio" %% "zio" % zioVersion, |
| 49 | + "dev.zio" %% "zio-streams" % zioVersion, |
| 50 | + "org.geneontology" %% "whelk-owlapi" % "1.1.1", |
| 51 | + "org.apache.jena" % "apache-jena-libs" % "4.4.0" exclude("org.slf4j", "slf4j-log4j12"), |
| 52 | + "com.typesafe.scala-logging" %% "scala-logging" % "3.9.4", |
| 53 | + "dev.zio" %% "zio-test" % zioVersion % Test, |
| 54 | + "dev.zio" %% "zio-test-sbt" % zioVersion % Test |
| 55 | + ) |
| 56 | + ) |
| 57 | + .settings(publishSettings) |
30 | 58 |
|
31 | | -libraryDependencies ++= { |
32 | | - Seq( |
33 | | - "dev.zio" %% "zio" % zioVersion, |
34 | | - "dev.zio" %% "zio-streams" % zioVersion, |
35 | | - "org.geneontology" %% "whelk-owlapi" % "1.1.1", |
36 | | - "com.outr" %% "scribe-slf4j" % "3.8.2", |
37 | | - "com.github.alexarchambault" %% "case-app" % "2.0.6", |
38 | | - "org.apache.jena" % "apache-jena-libs" % "4.4.0" exclude ("org.slf4j", "slf4j-log4j12"), |
39 | | - "dev.zio" %% "zio-test" % zioVersion % Test, |
40 | | - "dev.zio" %% "zio-test-sbt" % zioVersion % Test |
| 59 | +lazy val cli = project |
| 60 | + .in(file("cli")) |
| 61 | + .enablePlugins(JavaAppPackaging) |
| 62 | + .enablePlugins(BuildInfoPlugin) |
| 63 | + .enablePlugins(GitVersioning) |
| 64 | + .settings(commonSettings) |
| 65 | + .dependsOn(core) |
| 66 | + .settings( |
| 67 | + name := "relation-graph-cli", |
| 68 | + executableScriptName := "relation-graph", |
| 69 | + publish / skip := true, |
| 70 | + libraryDependencies ++= Seq( |
| 71 | + "com.outr" %% "scribe-slf4j" % "3.8.2", |
| 72 | + "com.github.alexarchambault" %% "case-app" % "2.0.6" |
| 73 | + ), |
| 74 | + gitCommitString := git.gitHeadCommit.value.getOrElse("Not Set"), |
| 75 | + buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion, gitCommitString), |
| 76 | + buildInfoPackage := "org.renci.relationgraph" |
41 | 77 | ) |
42 | | -} |
|
0 commit comments