Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix building cbt as a cbt project | Christopher Vogt | 2016-04-29 | 7 | -11/+16 |
| | |||||
* | Add IntelliJ note to developer docs | Christopher Vogt | 2016-04-29 | 1 | -1/+4 |
| | |||||
* | Merge pull request #111 from cvogt/reproducible-builds | Jan Christopher Vogt | 2016-04-28 | 50 | -682/+1522 |
|\ | | | | | Reproducible builds | ||||
| * | Support recursively running tasks across all builds in transitive dependencies | Christopher Vogt | 2016-04-28 | 1 | -0/+48 |
| | | |||||
| * | Reproducible builds, composing different CBT version and various improvements | Christopher Vogt | 2016-04-28 | 42 | -570/+1237 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One large commit, because it is was hard to do these things in isolation or to separate them now. CBT now knows how to load other versions of itself - Support for reproducible builds (!), by providing a CBT git URL and hash to tie build to - Support for composing builds using different CBT versions (!) - introduce (in compatibility/) Java interfaces all CBT versions need to stay compatible with, so they can talk to each other. And put extension methods to these interfaces in cbt package object Class loading - add some sanity checks for class loading - improve class loader invalidation to fix bugs - implement caching in Java land class loaders. In particular to prevent the system class loader to repeatedly generate ClassNotFound exceptions in each sink of the class loader DAG for non JDK classes (meaning major speed up for projects with many classes). - getting rid of transient class loader cache unifying into "persistent" one instead (which is still wrong as invalidation eventually needs to invalidate entire sub graphs of the class loading DAG, not single class loaders. Seems like we'll have to abandon the hashmap based approach and tie caching to dependency objects) Other Caching - cache dependencies extracted from xml files, which was one major time killer, but invalidate cache when cbt changed (maven dependency user facing api needs simplification now!) - memorize last successful compile time in the file system rather than memory, to guard against unnecessary recompiling even across launches (or when using cbt direct) Structural improvements - Factor out ClassLoaderCache on Java land into its own class. - Port MultiClassLoader to Java land, to better compose classloaders in NailgunLauncher. - Remove many global constants and variables (in object paths and in NailgunLauncher) and pass them through instead. Needed for composing of builds. - move more code from resolver into Lib for less entanglement with classes (needed to compatibility interfaces) and better re-usability - remove canBeCached. Everything can be cached now, but we need to be careful about correct invalidation. - remove build announcing produced jars. We can add if ever needed. - change callNullary to return exit code instead of Unit as preparation for next commit introducing "recursive" ScalaTest - Makes ScalaTest support work (still a bit too inflexible, but mostly works well) | ||||
| * | Add debugging tips to the dev docs | Christopher Vogt | 2016-04-28 | 1 | -2/+13 |
| | | |||||
| * | move version numbers to Scala land (to reduce Java code size) | Christopher Vogt | 2016-04-28 | 2 | -6/+3 |
| | | |||||
| * | propagate time taken from bash script into logger | Christopher Vogt | 2016-04-28 | 3 | -4/+6 |
| | | |||||
| * | minor improvements to docs, imports, visibilities | Christopher Vogt | 2016-04-28 | 6 | -11/+13 |
| | | |||||
| * | add caching to CBTUrlClassLoader (so we can eventually wrap the system class ↵ | Christopher Vogt | 2016-04-28 | 1 | -1/+20 |
| | | | | | | | | loader into it to not produce multiple exceptions in a classloader tree, where a class is not in the systemclassloader) | ||||
| * | for better performance do not generate exceptions during class loading for ↵ | Christopher Vogt | 2016-04-28 | 3 | -5/+13 |
| | | | | | | | | control flow, but use null instead | ||||
| * | if compiler crashed, print commands to reproduce it outside of cbt | Christopher Vogt | 2016-04-28 | 1 | -14/+43 |
| | | |||||
| * | minor cleanup, better logging for downloads | Christopher Vogt | 2016-04-28 | 1 | -2/+3 |
| | | |||||
| * | print null as root class loader in URLClassLoader | Christopher Vogt | 2016-04-28 | 1 | -2/+2 |
| | | |||||
| * | only run tests if there are actually tests to run (useful for recursively ↵ | Christopher Vogt | 2016-04-28 | 2 | -14/+18 |
| | | | | | | | | running tests in nested projects) | ||||
| * | Build mixin with recommended settings | Christopher Vogt | 2016-04-28 | 1 | -1/+12 |
| | | |||||
| * | make cacheabilty of git dependency depend on cacheability of it's build. ↵ | Christopher Vogt | 2016-04-28 | 1 | -13/+16 |
| | | | | | | | | Also separate out regex, so we can use it to detect cbt version urls later | ||||
| * | from from File to Path directly | Christopher Vogt | 2016-04-28 | 1 | -2/+3 |
| | | |||||
| * | move soure file filterin logic into library for reusability | Christopher Vogt | 2016-04-28 | 2 | -8/+11 |
| | | |||||
| * | Make sonatype credentials customizable from Build class rather than hard coded | Christopher Vogt | 2016-04-28 | 2 | -11/+23 |
| | | |||||
| * | Wrong use of classifier | Christopher Vogt | 2016-04-28 | 1 | -1/+1 |
| | | |||||
| * | add commented out test case for resolving maven version ranges | Christopher Vogt | 2016-04-28 | 1 | -0/+3 |
| | | |||||
| * | remove dead code | Christopher Vogt | 2016-04-28 | 1 | -13/+0 |
| | | |||||
| * | Speedup transitiveDependencies computation by removing duplicate versions ↵ | Christopher Vogt | 2016-04-28 | 1 | -10/+19 |
| | | | | | | | | and doing less string processing | ||||
| * | add important comment | Christopher Vogt | 2016-04-28 | 1 | -2/+4 |
| | | |||||
| * | Do not check javac version (took > 0.1 seconds each time). This will lead to ↵ | Christopher Vogt | 2016-04-28 | 1 | -8/+14 |
| | | | | | | | | compile errors with java6, but those should be easy to google. | ||||
| * | compute logged times during startup as delta from beginning | Christopher Vogt | 2016-04-28 | 1 | -2/+15 |
| | | |||||
| * | this seems to fix some bug with nailgun not restarting fast enough | Christopher Vogt | 2016-04-28 | 1 | -0/+2 |
|/ | |||||
* | Merge pull request #108 from cvogt/resolver-fixes | Jan Christopher Vogt | 2016-04-08 | 2 | -8/+14 |
|\ | | | | | Allow substituting POM variables inside of strings, not only entire e… | ||||
| * | Allow substituting POM variables inside of strings, not only entire elements | Christopher Vogt | 2016-04-08 | 2 | -8/+14 |
|/ | |||||
* | Merge pull request #103 from cvogt/cross-compile | Jan Christopher Vogt | 2016-04-07 | 8 | -16/+54 |
|\ | | | | | cross building and automatic snaphot ids | ||||
| * | cross building and automatic snaphot ids | Christopher Vogt | 2016-04-07 | 8 | -16/+54 |
|/ | | | | | Adds support for cross building for multiple scala versions And for automatically appending -SNAPSHOT to the id, when publishing a snapshot. | ||||
* | Merge pull request #102 from cvogt/chris | Jan Christopher Vogt | 2016-04-07 | 15 | -81/+84 |
|\ | | | | | More classloading related fixes | ||||
| * | Fix stage2 classloader not being stored in transient cache | Christopher Vogt | 2016-04-07 | 4 | -11/+23 |
| | | | | | | | | | | and thus being re-created on second and subsequent runs. Also use classloader from cache for Builds rather than new one, which should properly make Build dependencies work. | ||||
| * | Temporarily cache classloaders for potentially changing files | Christopher Vogt | 2016-04-06 | 2 | -24/+26 |
| | | | | | | | | to avoid creating classloaders for the same files more than once, which leads to conflicts. | ||||
| * | Pass ClassLoaderCache from stage1 to stage2 instead of wrongly creating ↵ | Christopher Vogt | 2016-04-06 | 4 | -7/+9 |
| | | | | | | | | another one. This should improve behavior of transient cache. | ||||
| * | caching return values parameterized methods seems just wrong | Christopher Vogt | 2016-04-06 | 1 | -14/+3 |
| | | |||||
| * | Correctly interact with build in cwd instead of loading it's managed build ↵ | Christopher Vogt | 2016-04-06 | 9 | -25/+23 |
| | | | | | | | | in case of a BuildBuild. | ||||
| * | fix time shown by logger broken in f7b84e735e150578324caa0c4289404a033cd9b2 | Christopher Vogt | 2016-04-06 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #99 from cvogt/maven-repos | Jan Christopher Vogt | 2016-04-04 | 24 | -360/+474 |
|\ | | | | | Support for alternative maven resolvers | ||||
| * | remove completed or now irrelevant tasks from TODO list | Christopher Vogt | 2016-04-04 | 1 | -20/+1 |
| | | |||||
| * | Finally get rid of JDK 8 dependencies | Christopher Vogt | 2016-04-04 | 7 | -24/+19 |
| | | |||||
| * | Better error message when build folder does not contain Build class | Christopher Vogt | 2016-04-03 | 1 | -0/+2 |
| | | |||||
| * | Implement alternative resolvers | Christopher Vogt | 2016-04-03 | 15 | -191/+307 |
| | | | | | | | | | | | | | | | | | | | | | | | | This commit also - requires Dependencies to explicitly implement canBeCached - unifies some logic for dependency downloading - moves SBT-like dependency DSL into its own trait - error message showing build directory for exceptions in builds Not splitting this up in favor of faster progress to 1.0. The user facing API can probably be slightly improved using implicits inside of BasicBuild, but we can do that later. | ||||
| * | split launcher library functions into their own file | Christopher Vogt | 2016-04-02 | 5 | -114/+128 |
| | | |||||
| * | propagate info if cbt has changed across builds, so they can be re-compiled | Christopher Vogt | 2016-04-02 | 8 | -19/+19 |
| | | |||||
| * | remove jdk8 dependencies, force jdk7, remove unnecessary cache folders | Christopher Vogt | 2016-04-02 | 3 | -6/+12 |
|/ | |||||
* | Merge pull request #98 from cvogt/fix-resolver | Jan Christopher Vogt | 2016-04-02 | 2 | -6/+41 |
|\ | | | | | better error messages in case of messed up groupIds, artifactIds or v… | ||||
| * | better error messages in case of messed up groupIds, artifactIds or versions | Christopher Vogt | 2016-04-02 | 2 | -6/+41 |
|/ | |||||
* | Merge pull request #95 from cvogt/scaffold-BuildBuild | Jan Christopher Vogt | 2016-04-02 | 2 | -11/+25 |
|\ | | | | | support for scaffolding BuildBuild file |