Skip to content

Commit

Permalink
Update project publish settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ruippeixotog committed Apr 17, 2023
1 parent d62abca commit b4c7226
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,23 @@ lazy val config = project
)

lazy val commonSettings = Seq(
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
"Scalaz Bintray Repo" at "https://dl.bintray.com/scalaz/releases"
),
scalacOptions ++= baseScalacOptions ++ (CrossVersion
.partialVersion(scalaVersion.value) match {
case Some((2, scalaMajor)) if scalaMajor <= 12 =>
Seq("-Ypartial-unification")
case _ => Seq.empty[String]
}),
// format: off
resolvers ++= Resolver.sonatypeOssRepos("snapshots"),
resolvers += "Scalaz Bintray Repo" at "https://dl.bintray.com/scalaz/releases",

scalacOptions ++= baseScalacOptions ++
(CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, scalaMajor)) if scalaMajor <= 12 =>
List("-Ypartial-unification")
case _ =>
Nil
}),

scalafmtOnCompile := true,
Test / fork := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishMavenStyle := true,
Test / publishArtifact := false,
pomIncludeRepository := { _ => false },
licenses := Seq("MIT License" -> url("http://www.opensource.org/licenses/mit-license.php")),

homepage := Some(url("https://github.com/ruippeixotog/scala-scraper")),
licenses := Seq("MIT License" -> url("http://www.opensource.org/licenses/mit-license.php")),
scmInfo := Some(
ScmInfo(
url("https://github.com/ruippeixotog/scala-scraper"),
Expand All @@ -82,7 +77,12 @@ lazy val commonSettings = Seq(
),
developers := List(
Developer("ruippeixotog", "Rui Gonçalves", "[email protected]", url("http://www.ruippeixotog.net"))
)
),

publishMavenStyle := true,
Test / publishArtifact := false,
publishTo := sonatypePublishToBundle.value,
// format: on
)

// do not publish the root project
Expand Down

0 comments on commit b4c7226

Please sign in to comment.