-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use sbt-sonatype plugin for release.
- Loading branch information
1 parent
ac7bd83
commit 9126c1e
Showing
3 changed files
with
16 additions
and
33 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
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 |
---|---|---|
|
@@ -12,48 +12,28 @@ lazy val commonSettings = Seq( | |
"-Ywarn-numeric-widen", | ||
"-Ywarn-unused", | ||
), | ||
homepage := Some(url("https://github.com/lomigmegard/akka-http-cors")), | ||
licenses := Seq("Apache 2" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt")), | ||
scmInfo := Some( | ||
ScmInfo( | ||
url("https://github.com/lomigmegard/akka-http-cors"), | ||
"scm:[email protected]:lomigmegard/akka-http-cors.git" | ||
) | ||
), | ||
developers := List( | ||
Developer(id="lomigmegard", name="Lomig Mégard", email="", url=url("https://lomig.ch")) | ||
), | ||
) | ||
|
||
lazy val publishSettings = Seq( | ||
publishMavenStyle := true, | ||
publishArtifact in Test := false, | ||
pomIncludeRepository := { _ => false }, | ||
|
||
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") | ||
}, | ||
|
||
pomExtra := { | ||
<url>https://github.com/lomigmegard/akka-http-cors</url> | ||
<licenses> | ||
<license> | ||
<name>Apache 2</name> | ||
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
</license> | ||
</licenses> | ||
<scm> | ||
<url>git@github.com:lomigmegard/akka-http-cors.git</url> | ||
<connection>scm:git:git@github.com:lomigmegard/akka-http-cors.git</connection> | ||
</scm> | ||
<developers> | ||
<developer> | ||
<id>lomigmegard</id> | ||
<name>Lomig Mégard</name> | ||
<url>https://lomig.ch</url> | ||
</developer> | ||
</developers> | ||
}, | ||
publishTo := sonatypePublishToBundle.value, | ||
) | ||
|
||
lazy val dontPublishSettings = Seq( | ||
//publishSigned := (()), | ||
publish := (()), | ||
publishLocal := (()), | ||
publishArtifact := false, | ||
skip in publish := true, | ||
) | ||
|
||
lazy val root = (project in file(".")) | ||
|
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.3.7") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.0") | ||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1") | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.2") |