summaryrefslogtreecommitdiff
path: root/main/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '561'0.3.9Li Haoyi2019-05-201-0/+8
|\
| * additional target which allows user to shut down background serverŁukasz Biały2019-02-251-0/+8
| |
* | Merge branch '609'Li Haoyi2019-05-201-3/+1
|\ \
| * | Downstream files overwrite upstream files on assemblyNathan Fischer2019-05-161-3/+1
| | | | | | | | | resolves #608
* | | Bump ammonite to 1.6.7 (#610)Li Haoyi2019-05-194-22/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bump ammonite to 1.6.7 * upgrade all the things * add scalaj-http shims for bootstrapping * wip * tweak-error-message * tweak coursier * .
* | | Added exit code to exception messageTobias Roeser2019-05-161-1/+1
|/ /
* | Don't initialize with all system propertiesTobias Roeser2019-05-031-5/+7
| |
* | Accept sysprops via cmdline and forward to mill serverTobias Roeser2019-05-035-76/+121
| | | | | | | | | | See https://github.com/lihaoyi/mill/issues/498 See https://github.com/lihaoyi/mill/issues/499
* | Reviewed exitCode handlingTobias Roeser2019-02-251-3/+7
|/ | | | Propagate server stop because of version change as exit code.
* Added fixmeTobias Roeser2019-02-241-0/+1
|
* Properly strip scaladoc end tagsTobias Roeser2019-02-111-0/+2
| | | | Fixes https://github.com/lihaoyi/mill/issues/451
* Added cmdline option -k/--keep-goingTobias Roeser2018-12-215-12/+29
| | | | See https://github.com/lihaoyi/mill/issues/477
* Fixed typo and added class linkTobias Roeser2018-12-201-2/+2
|
* Avoid unnecessary dependency downloading by providing fetches per cache ↵gehnaphore2018-12-201-5/+74
| | | | | | | | | | | | policy (#494) * Avoid unnecessary dependency downloading by providing fetches per cache policy; add ticker logging when they are downloading * Fix GenIdeaTests by making the Log context Option[]al * Add some comments * Rebase and resolve
* Generalize Zinc Worker (#514)Li Haoyi2018-12-185-7/+8
| | | | | | | | | | | | | | | | | | | | | | * Generalize Zinc worker - Compiler bridges can now be either pre-compiled or on-demand-compiled - Scala library/compiler jar discovery is now configurable - Zinc compiler cache is now configurable, rather than being hardcoded at n=1 * . * update constructor args * remove duplicate util/AggWrapper.scala file * fix * fix * fix * cleanup
* Added doc to version targetTobias Roeser2018-12-141-0/+4
|
* collapse boilerplate folder structure within src/ folders (#505)Li Haoyi2018-12-1213-0/+0
| | | | | | * collapse boilerplate folder structure within src/ folders * .
* First pass at splitting out worker-api from mill core. (#504)Li Haoyi2018-12-128-38/+19
| | | | | | | | | This reduces the {scala,scalajs,scalanative}-worker dependency from the entirety of Mill to a much narrower `mill.api` module. This reduces the amount of classpath pollution within these workers, should mean they're much faster to download the first time, and reduces the amount of random junk they would pull in if they were to be used outside of the Mill project. The interactions between the various *Modules and their *WorkerImpls has been narrowed down to the `*.api` modules, which only depend on other `*.api` modules. A lot of things have been moved around; user code is unlikely to break, but it's possible some will if it references classes that have been moved around. Forwarders have been left for the few internal classes that Mill uses in it's own `build.sc`, to support bootstrapping. Third-party code which breaks should be a straightforward to fix just by updating imports The `*.api` modules have minimal dependencies (mostly uPickle and os-lib) and minimal code. There is still a bunch of implementation code in there: some of it defining data-types that are commonly sent across the module/worker interface (`Agg`, `PathRef`, ...), and some of it just general helper functions that are needed both in modules and workers. The latter code isn't strictly API definitions, but for now is small enough it's not worth splitting into it's own module
* Added info about skipped mill server in `-i` cmdline optionTobias Roeser2018-12-101-1/+1
| | | | See https://github.com/lihaoyi/mill/issues/497
* bump Ammonite version0.3.5Li Haoyi2018-11-192-6/+4
|
* fix assembly path handling, swap out Jvm.scala's custom subprocess handling ↵Li Haoyi2018-11-051-100/+94
| | | | with os.proc
* WIP migrating over from `ammonite.ops` to `os` module.Li Haoyi2018-11-059-115/+104
| | | | __.compile works, haven't run tests yet
* Added new cmdline option --debug,-d to enable debug logTobias Roeser2018-10-303-7/+21
|
* Added additional debug log channel (default: log-file only)Tobias Roeser2018-10-303-3/+5
|
* Add createJar() ScalaDocJim Lawson2018-10-281-0/+13
|
* Add a filter parameter (default true for all files) to createJar().Jim Lawson2018-10-281-2/+4
| | | | Add createJar() filter test.
* Include scaladoc as part of mill inspect (#435)Li Haoyi2018-09-206-6/+50
|
* Remove useless type parameters for {Test,}Evaluator (#416)Guillaume Martres2018-09-154-26/+26
| | | | | | * Remove useless type parameters for {Test,}Evaluator * Update Evaluator.scala
* Fix shutdown hook failures in tests (#422)aosagie2018-09-021-7/+10
| | | | | | * Remove duplication from ClassLoader.create * Prevent closing of context class loader in tests so that shutdown hooks can run
* Fix incremental compilation when a Scala project depends on a Java project ↵Guillaume Martres2018-08-251-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#414) * Upgrade ammonite to 1.1.2-30-53edc31 This is mainly to get https://github.com/lihaoyi/Ammonite/pull/851 which should reduce the amount of unnecessary work done by incremental compilation in the Mill build. This requires some code changes since this means we now depend on a more recent version of coursier, as a side-effect this means that we do not depend on scalaz anymore. Also use the same ammonite version in the Mill build and in ScalaModule#ammoniteReplClasspath. Also remove an incorrect dependency in the caffeine integration test. This was always wrong but did not start failing until this commit, probably due to dependencies appearing in a different order on the classpath. * Rename ScalaWorker to ZincWorker Starting with the next commit, it will be used in Java-only projects too, so the name is misleading. * Upgrade to Zinc 1.2.1 * Fix incremental compilation when a Scala project depends on a Java project Before this commit, JavaModule#compile simply called javac unconditionally, thus generating new classfiles every time. But if a Scala project depends on a Java project, this will throw off the incremental compilation algorithm which will unnecessarily recompile files. To avoid this we now use Zinc to compile Java projects too (as a bonus this means that Java compilation becomes incremental). This required some refactoring in ZincWorkerImpl to be able to compile stuff without having to pass Scala-specific options. The issue solved by this commit could be reproduced by running in the Mill repository: $ mill main.compile $ mill -i @ main.compile() and observing that before this commit, the `main.compile()` call ended up recompiling code.
* Make the REPL evaluator accessible from the REPL itself (#413)Guillaume Martres2018-08-221-1/+1
| | | | This makes it easier to hack on Mill using Mill itself, the evaluator is available using `replApplyHandler.evaluator`
* Make visualizePlan work with external modules (#406)Joseph K. Strauss2018-08-101-27/+16
|
* Visualize Plan (#404)Joseph K. Strauss2018-08-082-25/+63
| | | | | | | | | | | | | | * Make necessary import changes * Refactor to allow calling internally w/o println * Refactor to allow multiple visualize modes * Add new visualizaPlan grap entire plan * Remove and alphabetize imports * Document visualizePlan
* Fix bug with 'u' at the beginning of path (#384)Joseph K. Strauss2018-08-031-2/+1
|
* add JavaModule#runBackground, to allow a task to kick off processes to run ↵Li Haoyi2018-07-212-14/+23
| | | | in the background that only die when the task is re-run
* add --disable-ticker, handle --color correctly (#379)Anton Sviridov2018-07-144-5/+24
|
* Allow hyphens in module and task names (#362)Joseph K. Strauss2018-06-062-11/+9
| | | | | | | | | | | | | | | | | * Allow bacticked tasks * Prevent stack overflow * Test for illegal bacticked identifiers * Filter out illegal backticked identifiers The only legal identifiers are aplanumeric, unserscore (_), and hyphens (-). * Remove unused method that is invalid * Document valid characters for module/task names
* fix #233 add append and exclude rules to assembly (#309)Nikolay Tatarinov2018-06-012-45/+162
| | | | | | | | | | | | | | | | | | | | | | | | * fix #233 add append and exclude rules to assembly * handle existing files and concatenation when file already exists in assembly * add assembly tests for append rules * tests for append patterns * tests for exclude patterns * make append algorithm use single map with fold over classpathIterator * move assembly rules logic to method * move grouping method to Assembly object, make assemblyRules Seq[_] rather than T[Seq[_]] * add test cases for when there are no rules * keep default parameter in createAssembly not to break CI * add one more reference.conf entry to tests
* move graphviz interactions onto a single worker thread to satisfy J2V8 ↵Li Haoyi2018-05-253-23/+52
| | | | limitation
* move VisualizeModule out into it's own ExternalModule; for some reason it ↵Li Haoyi2018-05-252-7/+15
| | | | wasn't getting picked up in the build discovery before
* Add a `visualize` command to render portions of the build graph as SVG (#349)Li Haoyi2018-05-255-30/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Transitive reduction of visualized graph via jgrapht now works ``` out/dev/launcher/dest/run -i visualize __.compile _ out/dev/launcher/dest/run -i visualize core.__ ``` * Move test running logic from scalaworker into scalalib This is to try and reduce the size of the classpath we are passing to the test runner subprocess, in an attempt to fix the command-line-too-long errors we're getting in Appveyor. Now the test runner subprocess should no longer need Zinc or all of it's transitive dependencies * - Break out `GraphvizTools` into a separate Mill module, to avoid bloating the main jar and try to shorten the `MILL_SCALA_WORKER` classpath being sent to scalajslib.test (which is blowing up on windows as the CLI command is too long) - Move the meat of `resolveDependencies` from `scalalib` to `main`, to support resolving mill modules - DRY up resolution of mill modules in `Util.millProjectModule` * fix mill module resolution * Tweaks to try and make zinc work again... * Tweak `Module#reflect` to try and make it happy with `visualize` module... * fix integration test classpath * move visualization into it's own module
* fixtestsLi Haoyi2018-05-221-2/+2
|
* Migrate `ProxyOutputStream` to the `main.client` module, add unit/fuzz tests ↵Li Haoyi2018-05-221-23/+0
| | | | to make sure it works
* optimize output streaming to allow batch writesLi Haoyi2018-05-221-14/+22
|
* 0.2.20.2.2Li Haoyi2018-05-201-1/+0
|
* Preserve caches between interactive and client/server mode (#342)Li Haoyi2018-05-191-0/+1
| | | | We were incorrectly duplicating the JDK classpath as part of the application classpath when we spawned the Mill server from the Mill client. This makes the transmission of application classpath to the Mill server explicit via an environment variable, so we don't end up including random things from the client classloader hierarchy that we didn't expect
* WIP keep mill server alive if you Ctrl-C during --watch (#339)Li Haoyi2018-05-193-36/+67
| | | | | | | | * wip * Clean up more resources in the Mill client after every command * catch and ignore SIGINT in Mill server to make it survive Ctrl-C on the client
* Allow shebang with launcherUniversalScript (#338)Matthew de Detrich2018-05-181-1/+3
|
* [WIP] Fixes #227; add `mill clean` (#315)Guillaume Galy2018-05-162-1/+111
| | | | | | | | | | | | | | | | * Adding clean as a default task * [WIP] Improve 'clean' paths resolution * Improve clean targets resolution mechanism * fix error on clean all * update "clean all" to keep all 'out/mill-*' paths * fix cross module resolution in clean task * Add documentation for "clean" task
* don't fail command when there is no build.sc file in directory. Lets the ↵Nikolay Tatarinov2018-05-071-3/+8
| | | | user to run basic mill commands (#307)