diff options
Diffstat (limited to 'examples/resources-example/build')
-rw-r--r-- | examples/resources-example/build/build.scala | 21 | ||||
-rw-r--r-- | examples/resources-example/build/build/build.scala | 20 |
2 files changed, 4 insertions, 37 deletions
diff --git a/examples/resources-example/build/build.scala b/examples/resources-example/build/build.scala index aec5d79..b95863d 100644 --- a/examples/resources-example/build/build.scala +++ b/examples/resources-example/build/build.scala @@ -1,21 +1,8 @@ import cbt._ -class Build(val context: Context) extends BaseBuild{ - /* +class Build(val context: Context) extends DynamicOverrides{ override def dependencies = - super.dependencies ++ // don't forget super.dependencies here - Seq( - // source dependency - DirectoryDependency( projectDirectory ++ "/subProject" ) - ) ++ - Resolver( mavenCentral ).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" + super.dependencies ++ // don't forget super.dependencies here for scala-library, etc. + Seq( + DirectoryDependency( projectDirectory ++ "/parent" ) ) - */ - override def resourceClasspath = super.resourceClasspath ++ ClassPath(Seq(projectDirectory ++ "/my-resources")) } diff --git a/examples/resources-example/build/build/build.scala b/examples/resources-example/build/build/build.scala deleted file mode 100644 index f700060..0000000 --- a/examples/resources-example/build/build/build.scala +++ /dev/null @@ -1,20 +0,0 @@ -import cbt._ -class Build(val context: Context) extends BuildBuild{ - /* - override def dependencies = - super.dependencies ++ // don't forget super.dependencies here - Seq( - // source dependency - DirectoryDependency( projectDirectory ++ "/subProject" ) - ) ++ - Resolver( mavenCentral ).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" - ) - */ -} |