-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
om
committed
Jun 16, 2017
1 parent
54f88a0
commit 6ca336b
Showing
3 changed files
with
34 additions
and
42 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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import sbt.Keys._ | ||
|
||
val buildSettings = Defaults.coreDefaultSettings ++ Seq( | ||
organization:="com.github.a2mz", | ||
name := "microspark", | ||
version := "1.2", | ||
// version := "1.3", | ||
version in ThisBuild := "$releaseVersion", | ||
scalacOptions ++= Seq(), | ||
scalaVersion := "2.12.2", | ||
crossScalaVersions := Seq("2.12.2", "2.11.10"), | ||
scalaVersion in ThisBuild := "2.12.2", | ||
crossScalaVersions in ThisBuild := Seq("2.12.2", "2.11.10"), | ||
publishMavenStyle := true, | ||
libraryDependencies ++= { | ||
val akkaVersion = "10.0.7" | ||
|
@@ -23,47 +25,12 @@ val buildSettings = Defaults.coreDefaultSettings ++ Seq( | |
"-deprecation") | ||
) | ||
|
||
lazy val publishSettings = Seq( | ||
publishTo := Some( | ||
if (isSnapshot.value) | ||
Opts.resolver.sonatypeSnapshots | ||
else | ||
Opts.resolver.sonatypeStaging | ||
)) | ||
|
||
//lazy val publishSettings = Seq( | ||
// pomExtra := ( | ||
// <url>https://github.com/a2mz/microspark</url> | ||
// <licenses> | ||
// <license> | ||
// <name>Apache 2.0</name> | ||
// <url>http://www.apache.org/licenses/</url> | ||
// <distribution>repo</distribution> | ||
// </license> | ||
// </licenses> | ||
// <scm> | ||
// <url>[email protected]:a2mz/microspark.git</url> | ||
// <connection>scm:[email protected]:a2mz/microspark.git</connection> | ||
// </scm> | ||
// <developers> | ||
// | ||
// <developer> | ||
// <id>om</id> | ||
// <name>Morozov Oleksandr</name> | ||
// <url>https://www.linkedin.com/in/oleksandr-morozov-77281711/</url> | ||
// </developer> | ||
// </developers> | ||
// ), | ||
// publishTo := { | ||
// val nexus = "https://oss.sonatype.org/" | ||
// if (version.value.toLowerCase.endsWith("snapshot")) | ||
// Some("snapshots" at nexus + "content/repositories/snapshots") | ||
// else | ||
// Some("staging" at nexus + "service/local/staging/deploy/maven2") | ||
// } | ||
//) | ||
|
||
|
||
lazy val root = project | ||
.in(file(".")) | ||
.settings(buildSettings) | ||
.settings(publishSettings) | ||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.5") |
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 |
---|---|---|
|
@@ -15,4 +15,28 @@ scmInfo := Some( | |
) | ||
developers := List( | ||
Developer(id="om", name="Morozov Oleksandr", email="[email protected]", url=url("https://github.com/a2mz")) | ||
) | ||
publishTo := Some( | ||
if (isSnapshot.value) | ||
Opts.resolver.sonatypeSnapshots | ||
else | ||
Opts.resolver.sonatypeStaging | ||
) | ||
|
||
//addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.5") | ||
import ReleaseTransformations._ | ||
|
||
releaseProcess := Seq[ReleaseStep]( | ||
checkSnapshotDependencies, | ||
inquireVersions, | ||
runClean, | ||
runTest, | ||
setReleaseVersion, | ||
commitReleaseVersion, | ||
tagRelease, | ||
ReleaseStep(action = Command.process("publishSigned", _), enableCrossBuild = true), | ||
setNextVersion, | ||
commitNextVersion, | ||
ReleaseStep(action = Command.process("sonatypeReleaseAll", _), enableCrossBuild = true), | ||
pushChanges | ||
) |