From 8d920cd69a28a6c4fa84c2407eef766b5f96919b Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Fri, 10 Jun 2016 13:41:02 -0700 Subject: Use sonatype to deploy artifacts --- Documentation/manual.md | 4 +--- project/FlowBuild.scala | 12 ++++++++++-- project/plugins.sbt | 6 +++--- 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 := { 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") -- cgit v1.2.3