diff options
author | Jakob Odersky <jakob@odersky.com> | 2018-08-24 14:37:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-24 14:37:50 -0700 |
commit | 31e2cdd834c3be3d59bc23ee2c4eff7874d80159 (patch) | |
tree | fb8044a9f6dcaf27b43d4c7add2e4f70911487bd /src/main/scala/xyz/driver/core/core.scala | |
parent | df1a2f7fcbdd85ac84162cf8eae8cdb6bb25cbb5 (diff) | |
download | driver-core-31e2cdd834c3be3d59bc23ee2c4eff7874d80159.tar.gz driver-core-31e2cdd834c3be3d59bc23ee2c4eff7874d80159.tar.bz2 driver-core-31e2cdd834c3be3d59bc23ee2c4eff7874d80159.zip |
Upgrade sbt-settings to major version 2 (#201)
This will affect development workflow: instead of running `sbt
release` to tag and publish a new version, the release process is now
as follows:
1. Create a git tag on a revision that should be published. The tag
must be in the format `v[0-9].*`
2. Push the tag to GitHub `git push --tags`
3. CI will build that tag and publish the resulting binary to our
artifactory
Since the new sbt settings do not enable advanced or risky language
features globally anymore (such as higher kinds, reflective calls and
implicit conversions), the other changes in this PR either import
language features locally or refactor the code to avoid using them
entirely.
Diffstat (limited to 'src/main/scala/xyz/driver/core/core.scala')
-rw-r--r-- | src/main/scala/xyz/driver/core/core.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/scala/xyz/driver/core/core.scala b/src/main/scala/xyz/driver/core/core.scala index 72237b9..a654e85 100644 --- a/src/main/scala/xyz/driver/core/core.scala +++ b/src/main/scala/xyz/driver/core/core.scala @@ -7,9 +7,12 @@ import xyz.driver.core.rest.errors.ExternalServiceException import scala.concurrent.{ExecutionContext, Future} -package object core { +// TODO: this package seems too complex, look at all the features we need! +import scala.language.reflectiveCalls +import scala.language.higherKinds +import scala.language.implicitConversions - import scala.language.reflectiveCalls +package object core { def make[T](v: => T)(f: T => Unit): T = { val value = v |