aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2016-06-10 13:41:02 -0700
committerJakob Odersky <jakob@odersky.com>2016-06-10 13:51:38 -0700
commit8d920cd69a28a6c4fa84c2407eef766b5f96919b (patch)
tree5bd382bd93f8a9f84b274ff73638af29de83fd7b
parent33dbedcf451db89b9d746b05612e6970d31b96db (diff)
downloadakka-serial-8d920cd69a28a6c4fa84c2407eef766b5f96919b.tar.gz
akka-serial-8d920cd69a28a6c4fa84c2407eef766b5f96919b.tar.bz2
akka-serial-8d920cd69a28a6c4fa84c2407eef766b5f96919b.zip
Use sonatype to deploy artifacts
-rw-r--r--Documentation/manual.md4
-rw-r--r--project/FlowBuild.scala12
-rw-r--r--project/plugins.sbt6
3 files changed, 14 insertions, 8 deletions
diff --git a/Documentation/manual.md b/Documentation/manual.md
index f3c5ac7..d1bd335 100644
--- a/Documentation/manual.md
+++ b/Documentation/manual.md
@@ -7,11 +7,9 @@ title: User Guide
{:toc}
# Getting Started
-Flow uses sbt as build system. To get started, add the Bintray jcenter resolver and include a dependency to flow in your project:
+Flow uses sbt as build system. To get started, include a dependency to flow in your project:
~~~scala
-resolvers += Resolver.jcenterRepo
-
libraryDependencies += "ch.jodersky" %% "flow-core" % "@version@"
~~~
diff --git a/project/FlowBuild.scala b/project/FlowBuild.scala
index 3a31723..a2e40aa 100644
--- a/project/FlowBuild.scala
+++ b/project/FlowBuild.scala
@@ -9,12 +9,20 @@ object FlowBuild extends Build {
lazy val commonSettings: Seq[Setting[_]] = Seq(
resolvers += Resolver.jcenterRepo,
- scalaVersion in ThisBuild := scalaVersions.head,
- crossScalaVersions in ThisBuild := scalaVersions.reverse,
+ scalaVersion := scalaVersions.head,
+ crossScalaVersions := scalaVersions.reverse,
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature", "-target:jvm-1.8"),
organization := "ch.jodersky",
licenses := Seq(("BSD New", url("http://opensource.org/licenses/BSD-3-Clause"))),
homepage := Some(url("https://jodersky.github.io/flow")),
+ publishMavenStyle := 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")
+ },
pomIncludeRepository := { _ => false },
pomExtra := {
<scm>
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 4eb4ab5..e994184 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -16,11 +16,11 @@ addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.3.3")
// Generate website content
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.0.0")
+// Publish to sonatype and sync with maven central
+addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")
+
// Automate release process
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.0")
// Usually a global plugin, made explicit to work with release automation
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
-
-// Usually a global plugin, made explicit to work with release automation
-addSbtPlugin("me.lessis" % "bintray-sbt" % "0.3.0")