Skip to content

Commit

Permalink
Merge pull request #493 from tgodzik/bintray
Browse files Browse the repository at this point in the history
Migrate to evilplot hosted on sonatype
  • Loading branch information
tgodzik authored May 6, 2021
2 parents 179c110 + 5de085e commit 1e7af97
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def isScala212(v: Option[(Long, Long)]): Boolean = v.exists(_._1 == 2) && v.exis
def isScala211(v: Option[(Long, Long)]): Boolean = v.exists(_._1 == 2) && v.exists(_._2 == 11)
def isScala3(v: Option[(Long, Long)]): Boolean = v.exists(_._1 == 3)

val isScala213 = Def.setting {
VersionNumber(scalaVersion.value).matchesSemVer(SemanticSelector(">=2.13"))
val isScala212 = Def.setting {
VersionNumber(scalaVersion.value).matchesSemVer(SemanticSelector("2.12.x"))
}

val isScala3 = Def.setting {
Expand Down Expand Up @@ -233,8 +233,8 @@ lazy val testsInput = project
def scala212LibraryDependencies(deps: List[ModuleID]) =
List(
libraryDependencies ++= {
if (isScala213.value || isScala3.value) Nil
else deps
if (isScala212.value) deps
else Nil
}
)
val tests = project
Expand Down Expand Up @@ -291,10 +291,9 @@ lazy val unit = project
publish / skip := true,
crossScalaVersions --= scala3,
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.10.3"),
resolvers += Resolver.bintrayRepo("cibotech", "public"),
scala212LibraryDependencies(
List(
"com.cibo" %% "evilplot" % "0.6.3"
"io.github.cibotech" %% "evilplot" % "0.8.1"
)
),
libraryDependencies ++= List(
Expand Down Expand Up @@ -374,10 +373,9 @@ lazy val docs = project
!scalaVersion.value.startsWith("2.12") ||
(ThisBuild / version).value.endsWith("-SNAPSHOT"),
mdocAutoDependency := false,
resolvers += Resolver.bintrayRepo("cibotech", "public"),
libraryDependencies ++= List(
"org.scala-sbt" % "sbt" % sbtVersion.value,
"com.cibo" %% "evilplot" % "0.6.3"
"io.github.cibotech" %% "evilplot" % "0.8.1"
),
watchSources += (ThisBuild / baseDirectory).value / "docs",
Global / cancelable := true,
Expand Down

0 comments on commit 1e7af97

Please sign in to comment.