summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Visualize Plan (#404)Joseph K. Strauss2018-08-085-28/+144
| | | | | | | | | | | | | | * 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
* don't pass in entered args from as remoteArgs too (#403)John Duffell2018-08-081-1/+1
|
* Update 2 - Configuring Mill.mdLi Haoyi2018-08-051-1/+1
|
* Add support for Dotty projects (#397)Guillaume Martres2018-08-0514-162/+250
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Abstract over the scala compiler organization * Support using a locally published compiler Publishing locally with sbt means publishing ivy-style, which uses a different naming convention than maven, we now handle both cases. * Add minimal support for Dotty projects * Rewrite scalalib.Dep, introduce scalalib.CrossVersion Instead of Dep being a trait with three cases (Java/Scala/Point), it is now a case class where the cross field is an instance of the CrossVersion trait which has three cases (Constant/Binary/Full). This is more versatile since it allows for non-empty constant suffixes which will be used to implement withDottyCompat in the next commit. It's also a cleaner separation of concerns. We also deduplicate various pieces of codes that computed the artifact name: this is now always handled in Dep and CrossVersion. * Add simple way to use Scala 2 deps in a Dotty project This is similar to the withDottyCompat method in the sbt-dotty plugin. * Turn off the Dotty test on Java >= 9
* Add documentation for ScalaPB module (#398)David Gregory2018-08-031-0/+51
|
* Fix bug with 'u' at the beginning of path (#384)Joseph K. Strauss2018-08-031-2/+1
|
* Add ScalaPB integration (#395)David Gregory2018-08-0110-5/+331
| | | | | | | | * Add ScalaPB integration * Update ci scripts with new scalapblib module * Move ScalaPB integration to contrib module
* Add doc on excluding Scala library from assembly (#396)Manu Zhang2018-08-011-0/+14
|
* update installation instructions for 0.2.6Li Haoyi2018-07-301-2/+2
|
* 0.2.60.2.6Li Haoyi2018-07-301-0/+9
|
* Fix bullets in manual (#394)Joseph K. Strauss2018-07-301-3/+4
|
* Make hot compilation 2x faster by properly reusing classloaders (#393)Guillaume Martres2018-07-281-19/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | So far, Mill was caching ScalaInstance which contains a classloader but this is not enough: Zinc creates its own classloader by combining the ScalaInstance classloader with the path to the compiler-bridge. Zinc takes care of caching this classloader in each instance of ScalaCompiler. We can take advantage of this by caching an instance of Compilers since it contains everything we want to cache (ScalaCompiler and ScalaInstance). This significantly reduces the amount of classloading that happens at each compilation step, as measured by running: export _JAVA_OPTIONS="-XX:+UnlockDiagnosticVMOptions -XX:+TraceClassLoading -XX:+TraceClassUnloading" mill -i foo.compile Then looking at the output of `out/mill-worker-1/logs` while adding a new line in a source file in `foo` and running `mill -i foo.compile` again. The speedup is going to depend on the project, but I measured a ~2x improvement when running on the Mill build `time(core.compile())` and `rm -rf out/core/compile/` in a loop until results stabilized. See also the results that were obtained when a very similar issue was fixed in sbt itself: https://github.com/sbt/sbt/pull/2754
* Plugins do not belong on the compiler classpath (#391)Guillaume Martres2018-07-271-17/+3
| | | They will be classloaded by the compiler itself based on -Xplugin.
* Upgrade Zinc and fix over-compilation (#390)Guillaume Martres2018-07-276-12/+20
| | | | | | | | | | | | | | | | | | | | | | | | * Remove dead code * Upgrade zinc to 1.1.7, avoid hardcoding the version * Fix over-compilation with Zinc `upstreamCompileOutput` needs to contain the CompileOutput of all recursive dependencies, otherwise Zinc gets confused when a classfile from one of these recursive dependency is used, resulting in over-compilation. No tests because I don't know how to write one, but this can be observed manually: 1. mill scalajslib.compile 2. Add an empty line to ScalaModule.scala 3. mill scalajslib.compile Before this commit, the last compilation ended up compiling one file in scalalib (as expected), then every file in scalajslib. After this commit, nothing in scalajslib is recompiled, as expected.
* Avoid duplicating ArgSig instantiation inside Router.scala macro-generated codeLi Haoyi2018-07-261-6/+15
|
* 0.2.50.2.5Li Haoyi2018-07-223-3/+31
| | | | | | tweak-readme reduce polling frequency of BackgroundWrapper
* add JavaModule#runBackground, to allow a task to kick off processes to run ↵Li Haoyi2018-07-217-19/+150
| | | | in the background that only die when the task is re-run
* tweak docsLi Haoyi2018-07-181-8/+11
|
* improve error messages for scala native test suiteLi Haoyi2018-07-182-11/+82
|
* WIP: Scala native (#206)Andrew Richards2018-07-1813-5/+843
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add scala-native PR#1143 as submodule * first pass at integrating scala-native build into mill including worker/bridge * add the native libraries to the compile and run classpath * sssshhh don't be so noisy * update scala-native to latest build WIP * update mill to latest scala-native build-api code * add test interface from scala-native this code is not published ornot published at the correct scala version so copy it in for now * implement tests for scala-native very messy at the moment also correct bridge version as much as possible with out a scala-native release * update to scala-native/master scala-native #1143 now merged * Remove scala-native submodule * updates for scala-native 0.3.7 release * fixes after rebase * make test framework agnostic and tidy dependencies * add robust method of getting JVM classpath for running tests support for multiple test frameworks tidy up * rebase fixes for 0.2.0 * add SbtNativeModule and tidy * rebase fixes * fix building of compile / run Classpath (via transitiveIvyDeps) better method of loading JVM test frameworks * add tests for build, run, utest, scalatest * move native tests into it own trait which can be extended/overidden * change release mode to a sealed trait instead of boolean * add logLevel to ScalaNativeModule and plumb in propagate release and log levels to test projects * use test-runner from scala-native instead of including project source add ability easily compile against scala-native snapshots * add some docs * update to 0.3.8
* add --disable-ticker, handle --color correctly (#379)Anton Sviridov2018-07-149-25/+49
|
* Issue #314; port sbt-updates to mill (#340)Guillaume Galy2018-07-1415-0/+943
| | | | | | | | | | | | | | | | | | | | | | | | | | * Implement basic dependency resolution * Implement basic dependency versions resolution (Maven only) * refactor dependency updates code * add resolution of updated dependencies * remove dependency on locally-built coursier * dependency updates output formatting * Add 'allowPreRelease' option * start adding tests * Add more tests * Add documentation * Cleanup code * rewrite version parser to use fastparse
* Merge branch 'master' of github.com:lihaoyi/mill0.2.4Li Haoyi2018-07-064-5/+48
|\
| * Add scoop as installation option for Windows (#377)Martin Mauch2018-06-281-0/+6
| |
| * Add scala JS version suffix to ivy deps for published JS ivy.xml (#376)Julian Michael2018-06-252-4/+10
| |
| * Add Docker instructions (#369)Martin Mauch2018-06-101-0/+7
| |
| * Correct Unmanaged Jars snippet (#371)mcallisto2018-06-101-1/+1
| | | | | | The Unmanaged Jars snippet currently shown is not working, updated with correct solution as per closed issue #361.
| * doc formattingrockjam2018-06-101-1/+1
| |
| * add docs section about assembly rulesrockjam2018-06-101-0/+24
| |
* | 0.2.4Li Haoyi2018-07-062-2/+12
|/
* Merge branch 'master' of github.com:lihaoyi/millLi Haoyi2018-06-0922-255/+381
|\
| * Allow configuration of JavaModule and ScalafmtModule scala workers (#367)aosagie2018-06-082-2/+2
| |
| * fix download url typo (#366)Alexey Pozdnyakov2018-06-081-1/+1
| |
| * Fixed typos, wordings, formatted examples (#365)Sakib Hadžiavdić2018-06-068-223/+219
| |
| * Allow configuration of TestRunner's ScalaWorkerModule (#364)aosagie2018-06-062-3/+3
| |
| * Allow hyphens in module and task names (#362)Joseph K. Strauss2018-06-0612-27/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | avoid duplicating core scala libraries during artifact resolution to fix ↵Li Haoyi2018-06-093-4/+13
|/ | | | https://github.com/lihaoyi/mill/issues/368
* add mill plan to the docsLi Haoyi2018-06-031-4/+27
|
* update-docsLi Haoyi2018-06-031-2/+2
|
* fix-linkLi Haoyi2018-06-021-3/+3
|
* 0.2.30.2.3Li Haoyi2018-06-025-5/+1247
|
* fix #233 add append and exclude rules to assembly (#309)Nikolay Tatarinov2018-06-0110-63/+457
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Improve Intellij Idea support (#351)Olivier Mélois2018-05-304-27/+90
| | | | | | | | | | | | | | | | | | | | | | | | | * Improve Intellij Idea support Improves the Intellij Idea support in various ways : * Cherrypicks the idea conf that needs deleting rather than deleting the whole .idea directory. That directory contains elements of configuration like VCS reference that were annoying to set again every time mill regenerated idea config. * Attempts to retrieve libraries that the build depends on by inspecting the classloader of the top module * Attempts at grouping jars and sources together in order to have both in the same idea files, which appears to give better jump to definition * Hacks the library names for the libraries the build depends on, in order to match Intellij's ammonite support and not show red to the user about the library that has successfuly been resolved. Also allows to jump to the library sources from the magic import. * Remove un-necessary filters * Avoid Agg throwing because of duplicated build libraries * Removing hardcoded version from SBT idea module names
* Fix MILL_CLASSPATH for Windows (#354)Joseph K. Strauss2018-05-302-18/+35
| | | | | | | | | | | | | | | | | | | * Use comma as separator in MILL_CLASSPATH There is no need to use environment-specific separator, especially since - other variables are using commas anyway, and - it is not sent to any system-level command * Fix whitespace * Use MILL_CLASSPATH for Windows * Use vm options file for client on windows * Remove overzealous distinct * Clean up unnecessary ceremony
* Check for availability of Java compiler. (#353)Daniel Kullmann2018-05-281-0/+5
| | | | Throws an exception with a sensible error message when the Java compiler is not available.
* move graphviz interactions onto a single worker thread to satisfy J2V8 ↵Li Haoyi2018-05-253-23/+52
| | | | limitation
* use a custom, compact format for serializing PathRefs to JSONLi Haoyi2018-05-251-2/+18
|
* bump ammonite version for proper compilation cache invalidation in Java 9+Li Haoyi2018-05-251-1/+1
|
* 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-2516-256/+465
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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