aboutsummaryrefslogtreecommitdiff
path: root/stage2/BasicBuild.scala
Commit message (Collapse)AuthorAgeFilesLines
* propagate scala versions into aliased dependenciesChristopher Vogt2017-04-021-2/+2
| | | | | not necessary for plugins yet, but will be when we allow choosing your scala version for build files
* type-safe aliases for portsChristopher Vogt2017-04-011-1/+2
|
* make .scala sources 2.12 compatibleChristopher Vogt2017-04-011-2/+2
|
* scalatest plugin for 2.12 (and move most code from plugin into library)Christopher Vogt2017-03-301-1/+1
|
* performance: cache moduleKey and make it’s string concat quickerChristopher Vogt2017-03-271-1/+1
|
* cache friendly equality for buildsChristopher Vogt2017-03-271-0/+7
|
* start modularizing cbt into librariesChristopher Vogt2017-03-271-7/+4
| | | | | | | | | | 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.
* Unify reflectively loading builds from directories.Christopher Vogt2017-03-201-14/+1
| | | | | | | | | | THis is mostly cleanup and a little bit feature. Before it was done partially in 3 places, BuildBuild, loadRoot and GitDependency. Now DirectoryDependencies also support referencing sub-builds. Also introduce scalariform for the first few files of cbt's core code :).
* better error than NullPointerException when directory does not existChristopher Vogt2017-03-191-2/+2
|
* Get rid of the hacky "essential" plugins separationChristopher Vogt2017-03-191-3/+3
| | | | | | | Let’s keep move them back into stage2 again instead for reduction of complexity, cbt build speed and convenience of fewer manual dependencies. And for that let cbt just include eval from the start.
* fix file watching for realChristopher Vogt2017-03-121-20/+9
| | | | | | | last file watching update didn’t work well enough. This now - rips out barbary watch service as it seems buggy crashing the jvm - make cbt exclusively write files to watch to a file - uses fswatch instead watching all files in that file
* Merge pull request #415 from cvogt/completionsJan Christopher Vogt2017-03-121-1/+3
|\ | | | | rename taskNames to complete and pass in current readline buffer in fish for zsh and bash this still needs to be done. Also interpreting the buffer to complete the current command
| * rename taskNames to complete and pass in current readline buffer in fishChristopher Vogt2017-03-121-1/+3
| | | | | | | | | | for zsh and bash this still needs to be done. Also interpreting the buffer to complete the current command
* | make changes in builds trigger recompilation of projectsChristopher Vogt2017-03-121-1/+1
|/
* revamp loop featureChristopher Vogt2017-03-121-1/+19
| | | | | | | | | | | | | | | | | | | | | now CBT and builds pass their file names to the current build via the context. The build then simply blocks until any file changes. Then it returns with a special exit code, which the bash script picks up and restarts CBT. Thats works well for looping over project files. It works less well for looping over builds and CBT itself. For this a build has to success once, so that the .cbt-loop.tmp file exists. Then looping works for cbt and builds, but the file list is not updated in case of compile errors, etc. Fixes - https://github.com/cvogt/cbt/issues/406 - https://github.com/cvogt/cbt/issues/405 - https://github.com/cvogt/cbt/issues/202 - https://github.com/cvogt/cbt/issues/50 - https://github.com/cvogt/cbt/issues/22 We should improve for 1.0 in https://github.com/cvogt/cbt/issues/419 to handle looping over build files and cbt itself smarter.
* Make GitDependency and DirectoryDependency simply return Build objectsChristopher Vogt2017-03-111-1/+1
|
* more concise runMain in more placesChristopher Vogt2017-03-091-3/+2
|
* avoid non-existent directory warningChristopher Vogt2017-03-091-1/+1
|
* fix scala2 repl not workingChristopher Vogt2017-03-061-2/+3
|
* minor refactoringsChristopher Vogt2017-03-061-8/+5
|
* support resolving unsigned dependenciesChristopher Vogt2017-03-061-2/+2
|
* return Seq[URL] from publish task and \n separate Seqs in std outChristopher Vogt2017-03-061-1/+1
|
* fix package bugChristopher Vogt2017-03-061-1/+1
|
* separate type-safe proguard wrapper into self-contained libraryChristopher Vogt2017-03-041-3/+10
| | | | also make logic to maintain auto-generated sections re-usable
* handle trying to package / publish with no source files via exceptionChristopher Vogt2017-03-041-0/+4
| | | | this saves us from having to do conditionals in several places
* do not print () when evalingChristopher Vogt2017-03-041-1/+1
|
* define central publish tasks, so multiple trait can add to itChristopher Vogt2017-03-031-0/+2
|
* add capture_args macro for type-safe embedding of stringly typed apisChristopher Vogt2017-03-011-0/+1
|
* introduce libraries helper objectChristopher Vogt2017-03-011-0/+4
|
* jar / doc refactorChristopher Vogt2017-02-281-0/+8
| | | | | | - split out manifest and scaladoc logic - refactor lib calls from inheritance layer - only strip project directory prefix from individually specified files
* human readable toString for BuildsChristopher Vogt2017-02-271-0/+1
|
* move default sourceFileFilter into lib for less OO couplingChristopher Vogt2017-02-271-1/+1
|
* use `name` instead of `projectName` as it is more universal and theChristopher Vogt2017-02-271-1/+1
| | | | term `project` is probably going away in cbt.
* turn `test` into a subproject for easy access to test’s tasksChristopher Vogt2017-02-271-10/+16
|
* `cbt help` like `git help` instead of `cbt usage`Christopher Vogt2017-02-271-1/+1
|
* Merge pull request #356 from cvogt/discover-subbuildsJan Christopher Vogt2017-02-221-2/+3
|\ | | | | treat subdirectores as subbuilds via cmd line
| * treat subdirectores as subbuilds via cmd lineChristopher Vogt2017-02-221-2/+3
| |
* | support cleaning more than just targetChristopher Vogt2017-02-221-1/+3
|/
* support DirectoryDependency on sub builds of a multi project buildsChristopher Vogt2017-02-181-3/+4
|
* allow DirectoryDependencies on BuildBuildsChristopher Vogt2017-02-181-0/+5
| | | | | | | | | this fixes a bug where finalBuild would over eagerly go down all the way down to the outermost build instead of stopping at the one requested. Now it checks the new argument and stops there. This is necessary to allow having one build depend on another build in order to embed it in a type-safe way and have access to it’s tasks.
* simplify and add features to reflective task lookup codeChristopher Vogt2017-02-181-5/+6
| | | | | | | | | | | | | Code is much simpler now. Now cbt sub-tasks are separated by . instead of spaces to unify the syntax with method calls Scala. Also the reflective code now works not only on builds but any kind of values, so zero argument members of any types of return values can simply be called. This is also a large step towards detangling the reflective lookup from cbt and turning it into a fully fletched shell to Scala "native" call solution.
* add typed constants for build directory and file and use them everywhereChristopher Vogt2017-02-151-2/+2
|
* a (probably insufficient) attempt at detecting task cache conflictsChristopher Vogt2017-02-141-0/+18
|
* minor whitespace and name changesChristopher Vogt2017-02-141-3/+4
|
* allow overwriting test with nested buildChristopher Vogt2017-02-141-1/+1
|
* support flatClassLoader and run at Dependency levelChristopher Vogt2017-02-141-28/+2
|
* implicitly pass classloader, might make code easierChristopher Vogt2017-02-141-6/+5
| | | | | and prepares for allowing `run` and `runFlat` at Dependency instead of Build level
* use target directory rather than projectDirectory as caching keyChristopher Vogt2017-02-131-1/+1
| | | | | | makes more sense as multiple projects with the same projectDirectory but different sources and targets can make sense e.g. for sbt directory structure, etc
* easier setting of projectDirectory in sub-buildsChristopher Vogt2017-02-131-2/+2
| | | | | by replacing context.projectDirectory by workingDirectory and using it as the default but allowing it to being overridden
* Add support for nested builds and use it to replace cross compilationChristopher Vogt2017-02-131-2/+3
| | | | | | | | command which was previously hard-coded This will allow multi-project builds, too but we should first fix caching across instances and GitDependencies on sub-builds within other repositories.