From 750c9237df95a829da1fc771f20cc15e62380ce6 Mon Sep 17 00:00:00 2001 From: Allan Renucci Date: Mon, 28 Aug 2017 15:34:48 +0200 Subject: [PATCH] Don't hardcode sonatype resolvers --- project/Build.scala | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/project/Build.scala b/project/Build.scala index 0d087f3f586e..b19d86921be5 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -987,13 +987,12 @@ object Build { lazy val publishSettings = Seq( publishMavenStyle := true, isSnapshot := version.value.contains("SNAPSHOT"), - publishTo := { - val nexus = "https://oss.sonatype.org/" + publishTo := Some( if (isSnapshot.value) - Some("snapshots" at nexus + "content/repositories/snapshots") + Opts.resolver.sonatypeSnapshots else - Some("releases" at nexus + "service/local/staging/deploy/maven2") - }, + Opts.resolver.sonatypeStaging + ), publishArtifact in Test := false, homepage := Some(url(dottyGithubUrl)), licenses += ("BSD New",