-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move settings outside of root project
- Loading branch information
1 parent
b7450f3
commit c25e2f9
Showing
1 changed file
with
23 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
@@ -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( | ||
|