diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-20 22:09:38 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-27 19:56:13 -0400 |
commit | bba2abe7ee38b8903822a07578c46466923d13ed (patch) | |
tree | a357fb8def6f58a9ea9a37411f3f5640dcb525fe /stage2/plugins.scala | |
parent | d2f8cade709b7d55a93e18592b6e38247d648ca9 (diff) | |
download | cbt-bba2abe7ee38b8903822a07578c46466923d13ed.tar.gz cbt-bba2abe7ee38b8903822a07578c46466923d13ed.tar.bz2 cbt-bba2abe7ee38b8903822a07578c46466923d13ed.zip |
start modularizing cbt into libraries
this extracts certain parts of cbt into stand-alone libraries, which can
be published to maven and used outside of cbt.
This also adds scalariform for these parts of the code.
This slows down cbt’s own build a lot because of the number of projects
involved! So we’ll follow this by a bunch of performance tweak commits.
Diffstat (limited to 'stage2/plugins.scala')
-rw-r--r-- | stage2/plugins.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/stage2/plugins.scala b/stage2/plugins.scala new file mode 100644 index 0000000..eca28f0 --- /dev/null +++ b/stage2/plugins.scala @@ -0,0 +1,17 @@ +package cbt +class plugins( implicit context: Context ) { + // TODO: move this out of the OO + private def plugin( dir: String ) = DirectoryDependency( context.cbtHome / "plugins" / dir ) + final lazy val googleJavaFormat = plugin( "google-java-format" ) + final lazy val proguard = plugin( "proguard" ) + final lazy val sbtLayout = plugin( "sbt_layout" ) + final lazy val scalafix = plugin( "scalafix" ) + final lazy val scalafmt = plugin( "scalafmt" ) + final lazy val scalaJs = plugin( "scalajs" ) + final lazy val scalapb = plugin( "scalapb" ) + final lazy val scalariform = plugin( "scalariform" ) + final lazy val scalaTest = plugin( "scalatest" ) + final lazy val sonatypeRelease = plugin( "sonatype-release" ) + final lazy val uberJar = plugin( "uber-jar" ) + final lazy val wartremover = plugin( "wartremover" ) +} |