Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Commit

Permalink
sbt-compat is not exposed by the plugin (#690)
Browse files Browse the repository at this point in the history
* Fixes #689. Bumps scala&sbt versions

* Adds frees-rpc to the catalog

* Fixes missed scripted test
  • Loading branch information
juanpedromoreno authored Oct 20, 2017
1 parent 7a9a283 commit 3516c9c
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 21 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ language: scala

matrix:
include:
- scala: 2.12.3
- scala: 2.12.4
jdk: oraclejdk8
env:
- SBT_VERSION=1.0.1
- SBT_VERSION=1.0.2
- scala: 2.10.6
jdk: oraclejdk8
env:
Expand Down Expand Up @@ -33,7 +33,7 @@ after_success:
if grep -q "SNAPSHOT" version.sbt; then
sbt ^^$SBT_VERSION publish;
else
if [ "$SBT_VERSION" = "1.0.1" ]; then
if [ "$SBT_VERSION" = "1.0.2" ]; then
sbt ^^$SBT_VERSION orgUpdateDocFiles;
git reset --hard HEAD;
git clean -f;
Expand Down
4 changes: 2 additions & 2 deletions autocheck/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ lazy val `org-policies-auto-dep-check` = (project in file("."))
.settings(name := "org-policies-auto-dep-check")
.settings(noPublishSettings: _*)
.settings(Seq(
scalaVersion := "2.12.3",
crossScalaVersions := Seq("2.12.3"),
scalaVersion := "2.12.4",
crossScalaVersions := Seq("2.12.4"),
scalaOrganization := "org.scala-lang",
orgGithubSetting := GitHubSettings(
organization = "47deg",
Expand Down
2 changes: 2 additions & 0 deletions core/src/main/scala/sbtorgpolicies/libraries.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ object libraries {
"case-classy" -> "0.4.0",
"fetch" -> "0.7.0",
"freestyle" -> "0.4.0",
"frees-rpc" -> "0.1.0",
"github4s" -> "0.16.0",
"org-policies" -> sbtorgpolicies.BuildInfo.version,
"scheckToolbox" -> "0.2.2"
Expand Down Expand Up @@ -229,6 +230,7 @@ object libraries {
"frees-http-play" -> (("io.frees", "frees-http-play", v("freestyle"))),
"frees-logging" -> (("io.frees", "frees-logging", v("freestyle"))),
"frees-monix" -> (("io.frees", "frees-monix", v("freestyle"))),
"frees-rpc" -> (("io.frees", "frees-rpc", v("frees-rpc"))),
"frees-slick" -> (("io.frees", "frees-slick", v("freestyle"))),
"frees-tagless" -> (("io.frees", "frees-tagless", v("freestyle"))),
"frees-twitter-util" -> (("io.frees", "frees-twitter-util", v("freestyle"))),
Expand Down
6 changes: 3 additions & 3 deletions core/src/main/scala/sbtorgpolicies/model.scala
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ object model {

object sbtV {
val `0.13`: String = "0.13.16"
val `1.0`: String = "1.0.1"
val `1.0`: String = "1.0.2"

val crossSbtVersions: List[String] = List(`0.13`, `1.0`)
}
Expand All @@ -126,8 +126,8 @@ object model {

val `2.10`: String = "2.10.6"
val `2.11`: String = "2.11.11"
val `2.12`: String = "2.12.3"
val `2.13`: String = "2.13.0-M1"
val `2.12`: String = "2.12.4"
val `2.13`: String = "2.13.0-M2"

val latestScalaVersion: String = `2.12`

Expand Down
11 changes: 1 addition & 10 deletions project/ProjectPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,7 @@ object ProjectPlugin extends AutoPlugin {
organization := "com.47deg",
organizationName := "47 Degrees",
organizationHomepage := Some(url("http://47deg.com")),
crossScalaVersions := Seq(scalac.`2.12`),
resolvers += Resolver.url("dwijnand-sbt-plugins", url("https://dl.bintray.com/dwijnand/sbt-plugins/"))(
Resolver.ivyStylePatterns),
libraryDependencies += {
Defaults.sbtPluginExtra(
"com.dwijnand" % "sbt-compat" % "1.0.0",
(sbtBinaryVersion in pluginCrossBuild).value,
(scalaBinaryVersion in update).value
)
}
crossScalaVersions := Seq(scalac.`2.12`)
)

lazy val pluginSettings: Seq[Def.Setting[_]] = commonSettings ++ Seq(
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sbt.Resolver.sonatypeRepo

resolvers ++= Seq(sonatypeRepo("snapshots"), sonatypeRepo("releases"))
addSbtPlugin("com.47deg" % "sbt-org-policies" % "0.8.0")
addSbtPlugin("com.47deg" % "sbt-org-policies" % "0.8.2")
2 changes: 1 addition & 1 deletion src/sbt-test/sbtorgpolicies/valid-files/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: scala

scala:
- 2.11.11
- 2.12.3
- 2.12.4

jdk:
- oraclejdk8
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "0.8.3-SNAPSHOT"
version in ThisBuild := "0.8.3"

0 comments on commit 3516c9c

Please sign in to comment.