diff options
-rw-r--r-- | test/library-test/Foo.scala | 4 | ||||
-rw-r--r-- | test/library-test/build/build.scala | 21 |
2 files changed, 25 insertions, 0 deletions
diff --git a/test/library-test/Foo.scala b/test/library-test/Foo.scala new file mode 100644 index 0000000..75c0780 --- /dev/null +++ b/test/library-test/Foo.scala @@ -0,0 +1,4 @@ +package lib_test +object Foo{ + def bar = "Hello, Foo Bar" +} diff --git a/test/library-test/build/build.scala b/test/library-test/build/build.scala new file mode 100644 index 0000000..a6e61af --- /dev/null +++ b/test/library-test/build/build.scala @@ -0,0 +1,21 @@ +import cbt._ + +// cbt:https://github.com/cvogt/cbt.git#1f4f6097d3ca682d6fd20a7cc6dd277832350827 +class Build(val context: Context) extends BaseBuild{ + override def dependencies = + super.dependencies ++ // don't forget super.dependencies here for scala-library, etc. + Seq( + // source dependency + // DirectoryDependency( projectDirectory ++ "/subProject" ) + ) ++ + // pick resolvers explicitly for individual dependencies (and their transitive dependencies) + Resolver( mavenCentral, sonatypeReleases ).bind( + // CBT-style Scala dependencies + // ScalaDependency( "com.lihaoyi", "ammonite-ops", "0.5.5" ) + // MavenDependency( "com.lihaoyi", "ammonite-ops_2.11", "0.5.5" ) + + // SBT-style dependencies + // "com.lihaoyi" %% "ammonite-ops" % "0.5.5" + // "com.lihaoyi" % "ammonite-ops_2.11" % "0.5.5" + ) +} |