Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #138 from cvogt/chris | Jan Christopher Vogt | 2017-02-22 | 4 | -8/+7 |
|\ | | | | | various changes | ||||
| * | a few hopefully simplifying rewirings in the implicits | Christopher Vogt | 2017-02-22 | 2 | -6/+4 |
| | | |||||
| * | include sonatypeSnapshots in `cbt tools resolve` | Christopher Vogt | 2017-02-22 | 1 | -1/+1 |
| | | |||||
| * | minor: wrap dependencies in scaffold in () for hoped ease of use | Christopher Vogt | 2017-02-22 | 1 | -1/+2 |
| | | |||||
* | | Merge pull request #356 from cvogt/discover-subbuilds | Jan Christopher Vogt | 2017-02-22 | 4 | -11/+25 |
|\ \ | | | | | | | treat subdirectores as subbuilds via cmd line | ||||
| * | | treat subdirectores as subbuilds via cmd line | Christopher Vogt | 2017-02-22 | 4 | -11/+25 |
| |/ | |||||
* | | support cleaning more than just target | Christopher Vogt | 2017-02-22 | 2 | -6/+8 |
| | | |||||
* | | allow plugins to access essential plugins | Christopher Vogt | 2017-02-22 | 1 | -1/+2 |
|/ | |||||
* | fix srcJar path. Was wronly absolute fs path. Now relative. | Christopher Vogt | 2017-02-19 | 2 | -8/+16 |
| | |||||
* | top-level instead of anonymous classes | Christopher Vogt | 2017-02-19 | 2 | -2/+4 |
| | | | | | to allow these to work with the dynamic configuration features .copy and DynamicOverride | ||||
* | the word class was duplicated since .show changed | Christopher Vogt | 2017-02-19 | 1 | -1/+1 |
| | |||||
* | allow git dependencies on sub builds | Christopher Vogt | 2017-02-19 | 1 | -3/+11 |
| | |||||
* | support DirectoryDependency on sub builds of a multi project builds | Christopher Vogt | 2017-02-18 | 2 | -8/+30 |
| | |||||
* | allow DirectoryDependencies on BuildBuilds | Christopher Vogt | 2017-02-18 | 3 | -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 code | Christopher Vogt | 2017-02-18 | 4 | -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 name | Christopher Vogt | 2017-02-15 | 1 | -1/+1 |
| | |||||
* | add package to generated Build in build.scala and in-package discovery | Christopher Vogt | 2017-02-15 | 2 | -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 weirdnesses | Christopher Vogt | 2017-02-15 | 3 | -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 everywhere | Christopher Vogt | 2017-02-15 | 3 | -11/+13 |
| | |||||
* | a (probably insufficient) attempt at detecting task cache conflicts | Christopher Vogt | 2017-02-14 | 1 | -0/+18 |
| | |||||
* | minor whitespace and name changes | Christopher Vogt | 2017-02-14 | 1 | -3/+4 |
| | |||||
* | allow overwriting test with nested build | Christopher Vogt | 2017-02-14 | 1 | -1/+1 |
| | |||||
* | support flatClassLoader and run at Dependency level | Christopher Vogt | 2017-02-14 | 1 | -28/+2 |
| | |||||
* | implicitly pass classloader, might make code easier | Christopher Vogt | 2017-02-14 | 10 | -37/+34 |
| | | | | | and prepares for allowing `run` and `runFlat` at Dependency instead of Build level | ||||
* | use target directory rather than projectDirectory as caching key | Christopher Vogt | 2017-02-13 | 1 | -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 plugin | Christopher Vogt | 2017-02-13 | 1 | -3/+28 |
| | |||||
* | fix dotty runtime dependency and expose some more config statically | Christopher Vogt | 2017-02-13 | 1 | -10/+11 |
| | |||||
* | easier setting of projectDirectory in sub-builds | Christopher Vogt | 2017-02-13 | 5 | -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 file | Christopher Vogt | 2017-02-13 | 1 | -1/+1 |
| | |||||
* | Add support for nested builds and use it to replace cross compilation | Christopher Vogt | 2017-02-13 | 3 | -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 directories | Christopher Vogt | 2017-02-13 | 3 | -7/+8 |
| | |||||
* | support for flat classloader and enhanced resources example | Christopher Vogt | 2017-02-13 | 1 | -3/+22 |
| | |||||
* | omit classpath when classpath is empty (= no dependencies, only jdk) | Christopher Vogt | 2017-02-11 | 2 | -15/+14 |
| | |||||
* | upgrade dotty and detach logic from inheritance | Christopher Vogt | 2017-02-11 | 1 | -19/+24 |
| | |||||
* | fix merge-conflict in Frege plugin | Christopher Vogt | 2017-02-10 | 1 | -26/+27 |
| | |||||
* | Merge pull request #333 from cvogt/custom-dotty | Jan Christopher Vogt | 2017-02-10 | 1 | -6/+7 |
|\ | | | | | Support custom Dotty compiler | ||||
| * | Support custom Dotty compiler | Christopher Vogt | 2017-02-09 | 1 | -6/+7 |
| | | |||||
* | | Merge pull request #314 from cvogt/fix-update-bugs | Jan Christopher Vogt | 2017-02-10 | 10 | -107/+89 |
|\| | | | | | better caching and change propagation fixing link-time errors | ||||
| * | let Stage1 handle Stage2 exit code | Christopher Vogt | 2017-02-09 | 2 | -3/+7 |
| | | |||||
| * | idempotent change propagation | Christopher Vogt | 2017-02-09 | 9 | -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 run | Christopher Vogt | 2017-02-09 | 9 | -45/+23 |
| | | |||||
| * | make full dependencies available to compile instead of only classpath | Christopher Vogt | 2017-02-01 | 1 | -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 replacement | Christopher Vogt | 2017-02-01 | 1 | -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 one | Christopher Vogt | 2017-02-01 | 3 | -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 zinc | Christopher Vogt | 2016-11-29 | 1 | -1/+1 |
| | | |||||
* | | Frege support. | mchav | 2016-12-23 | 1 | -0/+136 |
| | | |||||
* | | Moved source file filter to build. | mchav | 2016-12-23 | 2 | -6/+6 |
|/ | |||||
* | Remove classifier from pom files. | mchav | 2016-11-25 | 1 | -3/+3 |
| | |||||
* | Merge pull request #313 from cvogt/chris3 | Jan Christopher Vogt | 2016-11-13 | 1 | -2/+5 |
|\ | | | | | minor cleanups regarding Context | ||||
| * | minor cleanups regarding Context | Christopher Vogt | 2016-11-13 | 1 | -2/+5 |
| | |