diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-29 07:03:27 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-29 07:03:27 -0400 |
commit | a9530f426abbf5dc005ff01ec94018c3c667edf1 (patch) | |
tree | 31d66878d9949c1d2cfc099c7a96a24bf318755d /stage2 | |
parent | 9d3c9e9087a6dc0a4445f9428e02f6e7612470c6 (diff) | |
download | cbt-a9530f426abbf5dc005ff01ec94018c3c667edf1.tar.gz cbt-a9530f426abbf5dc005ff01ec94018c3c667edf1.tar.bz2 cbt-a9530f426abbf5dc005ff01ec94018c3c667edf1.zip |
minor enhancements to Build template
Diffstat (limited to 'stage2')
-rw-r--r-- | stage2/Scaffold.scala | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/stage2/Scaffold.scala b/stage2/Scaffold.scala index d86903b..866e5da 100644 --- a/stage2/Scaffold.scala +++ b/stage2/Scaffold.scala @@ -26,17 +26,17 @@ trait Scaffold{ def createBuild( projectDirectory: File - ): Unit = { + ): Unit = { createFile(projectDirectory, "build/build.scala", s"""import cbt._ class Build(val context: Context) extends BaseBuild{ - /* override def dependencies = - super.dependencies ++ // don't forget super.dependencies here - Seq( + super.dependencies ++ // don't forget super.dependencies here for scala-library, etc. + Seq( // source dependency // DirectoryDependency( projectDirectory ++ "/subProject" ) ) ++ - Resolver( mavenCentral ).bind( + // 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" ) @@ -45,7 +45,6 @@ class Build(val context: Context) extends BaseBuild{ // "com.lihaoyi" %% "ammonite-ops" % "0.5.5" // "com.lihaoyi" % "ammonite-ops_2.11" % "0.5.5" ) - */ } """ ) |