diff options
author | Jan Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-10 02:03:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-10 02:03:11 -0500 |
commit | de12007cc8907d98f183e65f50f2f9b4700894c3 (patch) | |
tree | 33336ec59695402abbd0153eaff540843642744c /stage1/cbt.scala | |
parent | 11d01cbd4900ebdddff585f0f6bbae24eb3ed012 (diff) | |
parent | 3b56ccd0b7737c5b29f55ab169de49fb6709770f (diff) | |
download | cbt-de12007cc8907d98f183e65f50f2f9b4700894c3.tar.gz cbt-de12007cc8907d98f183e65f50f2f9b4700894c3.tar.bz2 cbt-de12007cc8907d98f183e65f50f2f9b4700894c3.zip |
Merge pull request #304 from cvogt/chris4
various
Diffstat (limited to 'stage1/cbt.scala')
-rw-r--r-- | stage1/cbt.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/stage1/cbt.scala b/stage1/cbt.scala index c08a5f3..bf82556 100644 --- a/stage1/cbt.scala +++ b/stage1/cbt.scala @@ -5,6 +5,11 @@ import java.net._ import java.util.concurrent.ConcurrentHashMap object `package`{ + implicit class TypeInferenceSafeEquals[T](value: T){ + /** if you don't manually upcast, this will catch comparing different types */ + def ===(other: T) = value == other + } + val mavenCentral = new URL("https://repo1.maven.org/maven2") val jcenter = new URL("https://jcenter.bintray.com") def bintray(owner: String) = new URL(s"https://dl.bintray.com/$owner/maven") // FIXME: url encode owner @@ -30,6 +35,9 @@ object `package`{ } implicit class BuildInterfaceExtensions(build: BuildInterface){ import build._ + // TODO: if every build has a method triggers a callback if files change + // then we wouldn't need this and could provide this method from a + // plugin rather than hard-coding trigger files stuff in cbt def triggerLoopFiles: Seq[File] = triggerLoopFilesArray.to def crossScalaVersions: Seq[String] = crossScalaVersionsArray.to } |