Skip to content

Commit

Permalink
Merge pull request #943 from sbt/wip/nightly
Browse files Browse the repository at this point in the history
Use Bintray for nightly
  • Loading branch information
eed3si9n committed Nov 15, 2020
2 parents 6bcaba0 + b680726 commit 757a0ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
9 changes: 1 addition & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ ThisBuild / organization := "org.scala-sbt"
ThisBuild / licenses := List(("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0")))
ThisBuild / scalafmtOnCompile := !(Global / insideCI).value
ThisBuild / Test / scalafmtOnCompile := !(Global / insideCI).value
ThisBuild / bintrayPackage := "zinc"
ThisBuild / bintrayPackage := sys.env.get("BINTRAY_PACKAGE").getOrElse("zinc")
ThisBuild / scmInfo := Some(
ScmInfo(url("https://github.com/sbt/zinc"), "git@github.com:sbt/zinc.git")
)
Expand All @@ -77,13 +77,6 @@ ThisBuild / developers := List(
Developer("jvican", "Jorge Vicente Cantero", "@jvican", url("https://github.com/jvican")),
Developer("Duhemm", "Martin Duhem", "@Duhemm", url("https://github.com/Duhemm")),
)
ThisBuild / publishTo := {
val old = (ThisBuild / publishTo).value
sys.props.get("sbt.build.localmaven") match {
case Some(path) => Some(MavenCache("local-maven", file(path)))
case _ => old
}
}
ThisBuild / pomIncludeRepository := (_ => false) // drop repos other than Maven Central from POM
ThisBuild / mimaPreviousArtifacts := Set.empty
// limit the number of concurrent test so testQuick works
Expand Down
3 changes: 2 additions & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import sbt._, Keys._
import sbt.contraband.ContrabandPlugin.autoImport._

object Dependencies {
def nightlyVersion: Option[String] = sys.props.get("sbt.build.version")
def nightlyVersion: Option[String] =
sys.env.get("BUILD_VERSION") orElse sys.props.get("sbt.build.version")

val scala210 = "2.10.7"
val scala211 = "2.11.12"
Expand Down
4 changes: 3 additions & 1 deletion project/HouseRulesPlugin.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package zincbuild

import sbt._
import Keys._
import bintray.BintrayPlugin
Expand All @@ -12,7 +14,7 @@ object HouseRulesPlugin extends AutoPlugin {

lazy val baseBuildSettings: Seq[Def.Setting[_]] = Seq(
bintrayOrganization := Some("sbt"),
bintrayRepository := "maven-releases",
bintrayRepository := sys.env.get("BINTRAY_REPOSITORY").getOrElse("maven-releases"),
)

lazy val baseSettings: Seq[Def.Setting[_]] = Seq(
Expand Down

0 comments on commit 757a0ea

Please sign in to comment.