Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumps sbt-org-policies plugin version #76

Merged
merged 1 commit into from
Apr 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@ script:
after_success:
- sbt ++$TRAVIS_SCALA_VERSION coverageReport
- bash <(curl -s https://codecov.io/bash) -t 744f05ba-f905-4468-aef1-f5016fc2909d
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
sbt ++$TRAVIS_SCALA_VERSION publishSigned;
fi
- sbt ++$TRAVIS_SCALA_VERSION orgAfterCISuccess
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Changelog
=============
# Changelog

## 2017/04/03 - Version 0.14.0

Expand Down
9 changes: 3 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ lazy val root = (project in file("."))
.dependsOn(github4sJVM, github4sJS, scalaz, docs)
.aggregate(github4sJVM, github4sJS, scalaz, docs)
.settings(noPublishSettings: _*)
.settings(Seq(coverageFailOnMinimum := false))
.settings(coverageFailOnMinimum := false)

lazy val github4s = (crossProject in file("github4s"))
.settings(moduleName := "github4s")
.enablePlugins(AutomateHeaderPlugin)
.enablePlugins(BuildInfoPlugin)
.settings(
buildInfoKeys := Seq[BuildInfoKey](
Expand All @@ -26,8 +25,7 @@ lazy val github4s = (crossProject in file("github4s"))
.jsSettings(jsDeps: _*)

lazy val github4sJVM = github4s.jvm
lazy val github4sJS = github4s.js
.settings(Seq(coverageFailOnMinimum := false))
lazy val github4sJS = github4s.js.settings(coverageFailOnMinimum := false)

lazy val docs = (project in file("docs"))
.dependsOn(scalaz)
Expand All @@ -40,6 +38,5 @@ lazy val docs = (project in file("docs"))
lazy val scalaz = (project in file("scalaz"))
.settings(moduleName := "github4s-scalaz")
.settings(scalazDependencies: _*)
.settings(Seq(coverageFailOnMinimum := false))
.settings(coverageFailOnMinimum := false)
.dependsOn(github4sJVM)
.enablePlugins(AutomateHeaderPlugin)
21 changes: 8 additions & 13 deletions project/ProjectPlugin.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import com.typesafe.sbt.site.jekyll.JekyllPlugin.autoImport._
import de.heikoseeberger.sbtheader.HeaderKey.headers
import de.heikoseeberger.sbtheader.license.Apache2_0
import microsites.MicrositesPlugin.autoImport._
import sbt.Keys._
import sbt._
import sbt.{Def, _}
import sbtorgpolicies.OrgPoliciesPlugin.autoImport._
import sbtorgpolicies._
import sbtorgpolicies.model._
Expand Down Expand Up @@ -39,8 +37,8 @@ object ProjectPlugin extends AutoPlugin {
%%("circe-parser"),
%%("base64"),
%%("circe-parser"),
%%("scalatest") % "test",
"org.mockito" % "mockito-core" % "2.7.19" % "test",
%%("scalatest") % "test",
%("mockito-core") % "test",
compilerPlugin(%%("paradise") cross CrossVersion.full)
))

Expand All @@ -52,30 +50,27 @@ object ProjectPlugin extends AutoPlugin {
)
)

lazy val jsDeps = Seq(libraryDependencies += %%("roshttp"))
lazy val jsDeps: Def.Setting[Seq[ModuleID]] = libraryDependencies += %%("roshttp")

lazy val docsDependencies = libraryDependencies += %%("scalatest")
lazy val docsDependencies: Def.Setting[Seq[ModuleID]] = libraryDependencies += %%("scalatest")

lazy val scalazDependencies = Seq(libraryDependencies += %%("scalaz-concurrent"))
lazy val scalazDependencies: Def.Setting[Seq[ModuleID]] = libraryDependencies += %%(
"scalaz-concurrent")
}

override def projectSettings =
override def projectSettings: Seq[Def.Setting[_]] =
Seq(
name := "github4s",
description := "Github API wrapper written in Scala",
startYear := Option(2016),
resolvers += Resolver.sonatypeRepo("snapshots"),
orgLicenseSetting := sbtorgpolicies.model.MITLicense,
scalaVersion := scalac.`2.12`,
crossScalaVersions := "2.10.6" :: scalac.crossScalaVersions,
scalaOrganization := "org.scala-lang",
scalacOptions ++= (scalaBinaryVersion.value match {
case "2.10" => Seq("-Xdivergence211")
case _ => Nil
}),
headers := Map(
"scala" -> Apache2_0("2016-2017", "47 Degrees, LLC. <http://www.47deg.com>")
),
// This is necessary to prevent packaging the BuildInfo with
// sensible information like the Github token. Do not remove.
mappings in (Compile, packageBin) ~= { (ms: Seq[(File, String)]) =>
Expand Down
3 changes: 1 addition & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
resolvers += Resolver.sonatypeRepo("snapshots")
addSbtPlugin("com.47deg" % "sbt-org-policies" % "0.3.1")
addSbtPlugin("com.47deg" % "sbt-org-policies" % "0.4.0")