aboutsummaryrefslogtreecommitdiff
path: root/stage2
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
| |
* | Remove dead code. It does not look like the elses are needed.Christopher Vogt2016-11-131-15/+5
| | | | | | | | Because BuildBuild is only created if there is a build folder.
* | fixes interacting with BuildBuilds from the cli and cleans up.Christopher Vogt2016-11-132-17/+11
| | | | | | | | | | Before this when doing `build/$ cbt dependencies` cbt would not show up because cbt would be using a BaseBuild, not a BuildBuild. Not it does.
* | small refactoring simplifying Stage2Christopher Vogt2016-11-131-7/+2
| |
* | minor refactoring using shorter namesChristopher Vogt2016-11-133-11/+14
|/
* Merge pull request #311 from cvogt/remove-dot-copyJan Christopher Vogt2016-11-133-9/+10
|\ | | | | reduce usage of .copy as preparation to replace it with newBuild
| * reduce usage of .copy as preparation to replace it with newBuildChristopher Vogt2016-11-133-9/+10
| |
* | Assert right build class. Fixes #174Christopher Vogt2016-11-132-1/+15
|/
* Remove version from context, we can now use dynamic overridesChristopher Vogt2016-11-093-6/+1
|
* Upgrade zinc to 0.3.12Christopher Vogt2016-11-091-1/+1
|
* Add support for dynamic re-configuration.Christopher Vogt2016-11-083-4/+31
| | | | | The exact precedence rule of override code vs original code may still need to be tweaked as we go along.
* this doesn't need managedContextChristopher Vogt2016-11-081-8/+9
|
* add context based task result cacheChristopher Vogt2016-11-082-0/+18
|
* filter out 'direct' meta task earlier from the argsChristopher Vogt2016-11-081-2/+1
|
* Add support for resources (still limited by CBT's classloader visibility)Christopher Vogt2016-11-031-1/+5
|
* web uitim-zh2016-10-281-0/+7
|
* Fix: non-existing git ref will now be tried to be fetched next timeChristopher Vogt2016-10-141-18/+30
| | | | | | | We had a problem where cbt cloned a repository, then tried to checkout the desired ref, but if it didn't exist would get stuck with that ref and never try again to fetch the correct one. This would lead to wrong versions of libraries and cbt being loaded for particular referenced refs
* add repl task to BaseBuildrockjam2016-10-052-9/+25
|
* Merge pull request #264 from cvogt/chris3Jan Christopher Vogt2016-10-041-1/+1
|\ | | | | Chris3
| * make BuildInterfaces an abstract class so it can have default valuesChristopher Vogt2016-10-031-1/+1
| | | | | | | | | | and it becomes slightly easier to maintain source compatibility between cbt versions
* | Merge pull request #261 from cvogt/simple-exampleJan Christopher Vogt2016-10-041-0/+4
|\ \ | |/ |/| Simple example
| * readmes explaining plugin folder rolesChristopher Vogt2016-09-291-0/+4
| |
* | Sonatype release plugin (#247)Nikolay Tatarinov2016-10-034-34/+13
| |