-
Notifications
You must be signed in to change notification settings - Fork 6
Cross compile to SBT {0.13.16, 1.0.1} #510
Changes from 10 commits
c861543
c337cc9
b377007
60e543d
67c8558
167cc13
5b0b8c7
9a79cf0
55c1333
fc04375
b2c902e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version = 0.13.15 | ||
sbt.version = 1.0.1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
resolvers += Resolver.sonatypeRepo("snapshots") | ||
addSbtPlugin("com.47deg" % "sbt-org-policies" % sys.props("plugin.version")) | ||
addSbtPlugin("com.47deg" % "sbt-org-policies" % "0.6.0-SNAPSHOT") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should keep the environment variable |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ import com.github.marklister.base64.Base64._ | |
import github4s.Github | ||
import github4s.GithubResponses._ | ||
import github4s.free.domain._ | ||
// import sbt.io.IO | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The following import sbt.io._
import sbt.io.syntax._ and the equivalent are the just "notes" and would be the imports if we were using purely sbt 1.0. https://github.com/dwijnand/sbt-compat allows us to keep the equivalent sbt 0.13 imports. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 I think we could starting using those soon There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because of how 47deg-suhas:main suhas$ diff scala-2.10/sbtorgpolicies/io/io.scala scala-2.12/sbtorgpolicies/io/io.scala
24c24,25
< import sbt.{file, File}
---
> import sbt.io._
> import sbt.io.syntax._ I think we'll need to keep this until we stop supporting sbt 0.13. |
||
import sbt.IO | ||
import sbtorgpolicies.exceptions.{GitHubException, IOException, OrgPolicyException} | ||
import sbtorgpolicies.github.config._ | ||
|
@@ -281,7 +282,10 @@ class GitHubOps(owner: String, repo: String, accessToken: Option[String]) { | |
op.execE | ||
} | ||
|
||
def latestPullRequests(branch: String, inPath: String, message: String): Either[GitHubException, List[PullRequest]] = { | ||
def latestPullRequests( | ||
branch: String, | ||
inPath: String, | ||
message: String): Either[GitHubException, List[PullRequest]] = { | ||
|
||
def fetchLastCommit: Github4sResponse[Option[Commit]] = { | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might need to be
2.12.3
because sbt version in build.properties is1.0.1
, but we are compiling for 0.13.16 which requires2.10.6
. It might be a trial/error to see if one is faster than the other.