diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-11 13:27:24 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-11 13:27:24 -0500 |
commit | f890b14098a588fb4e016afc6932edf89f8ef1f7 (patch) | |
tree | 6ea3269fdfadab3ac4317ed67dfb3c2e07ac3c87 /build | |
parent | e760ee9e4c4c3b3f39e2bb2dfd47d2b142e12a53 (diff) | |
download | cbt-f890b14098a588fb4e016afc6932edf89f8ef1f7.tar.gz cbt-f890b14098a588fb4e016afc6932edf89f8ef1f7.tar.bz2 cbt-f890b14098a588fb4e016afc6932edf89f8ef1f7.zip |
extract re-usable parts of cbt’s own build into Shared plugin
Diffstat (limited to 'build')
-rw-r--r-- | build/build.scala | 26 | ||||
-rw-r--r-- | build/build/build.scala | 7 |
2 files changed, 16 insertions, 17 deletions
diff --git a/build/build.scala b/build/build.scala index b4a39ea..4114bc5 100644 --- a/build/build.scala +++ b/build/build.scala @@ -1,6 +1,12 @@ import cbt._ +import cbt_internal._ + +class Build(val context: Context) extends Shared{ + override def name: String = "cbt" + override def version: String = ??? + override def description: String = "Fast, intuitive Build Tool for Scala" + override def inceptionYear: Int = 2015 -class Build(val context: Context) extends Publish{ // FIXME: somehow consolidate this with cbt's own boot-strapping from source. override def dependencies = { super.dependencies ++ Resolver(mavenCentral).bind( @@ -9,22 +15,8 @@ class Build(val context: Context) extends Publish{ ScalaDependency("org.scala-lang.modules","scala-xml","1.0.5") ) } + override def sources = Seq( "nailgun_launcher", "stage1", "stage2", "compatibility" - ).map(d => projectDirectory ++ ("/" + d)) - - def groupId: String = "org.cvogt" - - def version: String = "0.9" - override def name: String = "cbt" - - // Members declared in cbt.Publish - def description: String = "Fast, intuitive Build Tool for Scala" - def developers: Seq[cbt.Developer] = Nil - def inceptionYear: Int = 2016 - def licenses: Seq[cbt.License] = Seq( License.Apache2 ) - def organization: Option[cbt.Organization] = None - def scmConnection: String = "" - def scmUrl: String = "" - def url: java.net.URL = new java.net.URL("http://github.com/cvogt/cbt/") + ).map( projectDirectory / _ ).flatMap( _.listFiles ) } diff --git a/build/build/build.scala b/build/build/build.scala new file mode 100644 index 0000000..313b2b5 --- /dev/null +++ b/build/build/build.scala @@ -0,0 +1,7 @@ +package cbt_build.cbt.build +import cbt._ +class Build(val context: Context) extends CbtInternal{ + override def dependencies = ( + super.dependencies :+ cbtInternal.shared + ) +} |