aboutsummaryrefslogtreecommitdiff
path: root/stage2
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #138 from cvogt/chrisJan Christopher Vogt2017-02-224-8/+7
|\ | | | | various changes
| * a few hopefully simplifying rewirings in the implicitsChristopher Vogt2017-02-222-6/+4
| |
| * include sonatypeSnapshots in `cbt tools resolve`Christopher Vogt2017-02-221-1/+1
| |
| * minor: wrap dependencies in scaffold in () for hoped ease of useChristopher Vogt2017-02-221-1/+2
| |
* | Merge pull request #356 from cvogt/discover-subbuildsJan Christopher Vogt2017-02-224-11/+25
|\ \ | | | | | | treat subdirectores as subbuilds via cmd line
| * | treat subdirectores as subbuilds via cmd lineChristopher Vogt2017-02-224-11/+25
| |/
* | support cleaning more than just targetChristopher Vogt2017-02-222-6/+8
| |
* | allow plugins to access essential pluginsChristopher Vogt2017-02-221-1/+2
|/
* fix srcJar path. Was wronly absolute fs path. Now relative.Christopher Vogt2017-02-192-8/+16
|
* top-level instead of anonymous classesChristopher Vogt2017-02-192-2/+4
| | | | | to allow these to work with the dynamic configuration features .copy and DynamicOverride
* the word class was duplicated since .show changedChristopher Vogt2017-02-191-1/+1
|
* allow git dependencies on sub buildsChristopher Vogt2017-02-191-3/+11
|
* support DirectoryDependency on sub builds of a multi project buildsChristopher Vogt2017-02-182-8/+30
|
* allow DirectoryDependencies on BuildBuildsChristopher Vogt2017-02-183-4/+16
| | | | | | | | | 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-184-71/+53
| | | | | | | | | | | | | 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.
* fix changed nameChristopher Vogt2017-02-151-1/+1
|
* add package to generated Build in build.scala and in-package discoveryChristopher Vogt2017-02-152-9/+24
| | | | | | | | | | | This should allow for build to add other builds to their dependencies and interact with them in a type-safe way. And ever regardless it seems like good practice to never have the same class existing in the same package or the top-level package even if they don’t end up on the same classpath. This might also help make stack traces easier to understand. Also improve error messages for mistakes with the build class, e.g. constructor, super classes, etc.
* add package to generated Main.scala to avoid classpath weirdnessesChristopher Vogt2017-02-153-13/+82
| | | | | caused by multiple root package Main classes from different subproject or test projects ending up on the same classpath
* add typed constants for build directory and file and use them everywhereChristopher Vogt2017-02-153-11/+13
|
* 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-1410-37/+34
| | | | | 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
* add support for compiling .java files to Dotty pluginChristopher Vogt2017-02-131-3/+28
|
* fix dotty runtime dependency and expose some more config staticallyChristopher Vogt2017-02-131-10/+11
|
* easier setting of projectDirectory in sub-buildsChristopher Vogt2017-02-135-11/+11
| | | | | by replacing context.projectDirectory by workingDirectory and using it as the default but allowing it to being overridden
* multi-project build example using a single build fileChristopher Vogt2017-02-131-1/+1
|
* Add support for nested builds and use it to replace cross compilationChristopher Vogt2017-02-133-14/+19
| | | | | | | | 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.
* make sure jar, tests and main classes use the right directoriesChristopher Vogt2017-02-133-7/+8
|
* support for flat classloader and enhanced resources exampleChristopher Vogt2017-02-131-3/+22
|
* omit classpath when classpath is empty (= no dependencies, only jdk)Christopher Vogt2017-02-112-15/+14
|
* upgrade dotty and detach logic from inheritanceChristopher Vogt2017-02-111-19/+24
|
* fix merge-conflict in Frege pluginChristopher Vogt2017-02-101-26/+27
|
* Merge pull request #333 from cvogt/custom-dottyJan Christopher Vogt2017-02-101-6/+7
|\ | | | | Support custom Dotty compiler
| * Support custom Dotty compilerChristopher Vogt2017-02-091-6/+7
| |
* | Merge pull request #314 from cvogt/fix-update-bugsJan Christopher Vogt2017-02-1010-107/+89
|\| | | | | better caching and change propagation fixing link-time errors
| * let Stage1 handle Stage2 exit codeChristopher Vogt2017-02-092-3/+7
| |
| * idempotent change propagationChristopher Vogt2017-02-099-55/+56
| | | | | | | | | | | | using lastModified instead of a non-idempotent needsUpdate flag this fixes a bug where dependees would not be rebuilt if cbt exited or was killed after dependencies were already rebuilt.
| * memoize task results across classes within a single runChristopher Vogt2017-02-099-45/+23
| |
| * make full dependencies available to compile instead of only classpathChristopher Vogt2017-02-011-6/+5
| | | | | | | | | | this will make it possible to access lastModified times and cache them in the following commits
| * replace flawed concurrent hashmap cache with consistent replacementChristopher Vogt2017-02-011-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The concurrent hashmap approach to classloader caching was flawed. Assume you have two concurrently running builds A and B and projects P2 and P3 depending on project P1. And assume a time sequence where A compiles P1, then compiles P2, then P1’s sources change, then B compiles P1, then A compiles P3. At the end P2 and P3 will have different versions of P1 as their parent classloaders. This is inconsistent. The easiest way to work around this is making sure only one thread is changing the classloader cache during it’s entire run. This would mean either no concurrency or what we have done here, which is letting threads work on a copy of the cache and replace the original cache in the end using an atomic operation. This means the thread that finishes last wins, but for caching that’s fine. Worst case some things aren’t cached in a concurrent execution. This change also means that we don’t need concurrent hashmaps for the classloader cache anymore since no two theads will access the same hashmap. We still need a concurrent hashmap for the class caches inside of the classloaders as multiple threads can access the same classloaders.
| * Merge separate hashmaps for persistent cache into oneChristopher Vogt2017-02-013-4/+3
| | | | | | | | | | | | | | This isn’t type-safe, but re-using that same hashmap for both keys and classloaders allows to reduce the number of members in Context. Also we can re-use the same hashMap for other things as well in the coming commits, e.g. timestamps.
| * Update early dependencies to new zincChristopher Vogt2016-11-291-1/+1
| |
* | Frege support.mchav2016-12-231-0/+136
| |
* | Moved source file filter to build.mchav2016-12-232-6/+6
|/
* Remove classifier from pom files.mchav2016-11-251-3/+3
|
* Merge pull request #313 from cvogt/chris3Jan Christopher Vogt2016-11-131-2/+5
|\ | | | | minor cleanups regarding Context
| * minor cleanups regarding ContextChristopher Vogt2016-11-131-2/+5
| |