Skip to content

Commit

Permalink
Move settings outside of root project
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich committed Jul 14, 2021
1 parent b7450f3 commit c25e2f9
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,28 @@ ThisBuild / Test / scalacOptions += "-Yrangepos"

ThisBuild / githubWorkflowPublishTargetBranches := Seq()

ThisBuild / organization := "org.mdedetrich"
ThisBuild / homepage := Some(url("https://github.com/mdedetrich/webmodels"))
ThisBuild / scmInfo := Some(
ScmInfo(url("https://github.com/mdedetrich/webmodels"), "[email protected]:mdedetrich/webmodels.git")
)
ThisBuild / developers := List(
Developer("mdedetrich", "Matthew de Detrich", "[email protected]", url("https://github.com/mdedetrich"))
)
ThisBuild / licenses += ("BSD 2 Clause", url("https://opensource.org/licenses/BSD-2-Clause"))
ThisBuild / publishMavenStyle := true
ThisBuild / publishTo := sonatypePublishTo.value
ThisBuild / Test / publishArtifact := false
ThisBuild / pomIncludeRepository := (_ => false)
ThisBuild / scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) if n == 13 =>
flagsFor13
case Some((2, n)) if n == 12 =>
flagsFor12
}
}

lazy val root = project
.in(file("."))
.aggregate(webmodelsJS, webmodelsJVM)
Expand All @@ -43,26 +65,7 @@ lazy val root = project
lazy val webmodels = crossProject(JSPlatform, JVMPlatform)
.in(file("."))
.settings(
name := "webmodels",
organization := "org.mdedetrich",
homepage := Some(url("https://github.com/mdedetrich/webmodels")),
scmInfo := Some(ScmInfo(url("https://github.com/mdedetrich/webmodels"), "[email protected]:mdedetrich/webmodels.git")),
developers := List(
Developer("mdedetrich", "Matthew de Detrich", "[email protected]", url("https://github.com/mdedetrich"))
),
licenses += ("BSD 2 Clause", url("https://opensource.org/licenses/BSD-2-Clause")),
publishMavenStyle := true,
publishTo := sonatypePublishTo.value,
Test / publishArtifact := false,
pomIncludeRepository := (_ => false),
scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) if n == 13 =>
flagsFor13
case Some((2, n)) if n == 12 =>
flagsFor12
}
}
name := "webmodels"
)
.jvmSettings(
libraryDependencies ++= Seq(
Expand Down

0 comments on commit c25e2f9

Please sign in to comment.