summaryrefslogtreecommitdiff
path: root/scalalib/src
Commit message (Collapse)AuthorAgeFilesLines
* collapse boilerplate folder structure within src/ folders (#505)Li Haoyi2018-12-1234-0/+0
| | | | | | * collapse boilerplate folder structure within src/ folders * .
* First pass at splitting out worker-api from mill core. (#504)Li Haoyi2018-12-1212-141/+75
| | | | | | | | | 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
* bump ammonite versionLi Haoyi2018-12-111-1/+1
|
* Add Gitlab to VersionControl (#489)Leonard Ehrenfried2018-12-071-2/+9
|
* bump Ammonite version0.3.5Li Haoyi2018-11-192-2/+2
|
* 0.3.4Li Haoyi2018-11-061-1/+1
|
* fix assembly path handling, swap out Jvm.scala's custom subprocess handling ↵Li Haoyi2018-11-053-9/+9
| | | | with os.proc
* WIP migrating over from `ammonite.ops` to `os` module.Li Haoyi2018-11-0513-135/+121
| | | | __.compile works, haven't run tests yet
* Merge branch 'master' of github.com:lihaoyi/millLi Haoyi2018-11-021-1/+2
|\
| * Added additional debug log channel (default: log-file only)Tobias Roeser2018-10-301-1/+2
| |
* | Fix https://github.com/lihaoyi/mill/issues/475Li Haoyi2018-11-022-3/+14
|/
* 0.3.20.3.2Li Haoyi2018-10-201-1/+1
|
* Allow use of inferred main classes when building self-executing assembliesLi Haoyi2018-10-191-1/+1
|
* 0.3.00.3.0Li Haoyi2018-10-181-1/+1
|
* bump ammonite version againLi Haoyi2018-10-181-1/+1
|
* bump Ammonite versionLi Haoyi2018-10-182-14/+14
|
* Merge branch 'master' of github.com:lihaoyi/millLi Haoyi2018-10-184-5/+13
|\
| * Configure Idea project generator per module (#458)Tobias Roeser2018-10-092-2/+9
| | | | | | | | | | | | | | | | * Sketched how to skip some projects from Idea project generator * Better trait comment * Moved skipIdea flag into JavaModule
| * fix for allowing subgroups of a given staging profile (#441)Brandon Elam Barker2018-10-051-1/+2
| |
| * Re-order `publishAll` arguments to get rarely used `signed` arg out of the wayLi Haoyi2018-09-201-2/+2
| |
* | .Li Haoyi2018-10-182-15/+18
|/ | | | | | fix docjar tests now it no longer fails with an exception docJar works again, now mill clean __.docJar && mill __.docJar goes from 413s to 47s on the mill repo
* Include scaladoc as part of mill inspect (#435)Li Haoyi2018-09-202-6/+204
|
* Dedicated scalaDoc plugins and options (#433)Guillaume Grossetie2018-09-191-4/+11
| | | | | | * Dedicated scalaDoc plugins and options * Use T{} for consistency
* Remove useless type parameters for {Test,}Evaluator (#416)Guillaume Martres2018-09-153-10/+10
| | | | | | * Remove useless type parameters for {Test,}Evaluator * Update Evaluator.scala
* don't compile hidden files. fixes #402 (#428)Nikolay Tatarinov2018-09-051-1/+2
|
* Fix shutdown hook failures in tests (#422)aosagie2018-09-021-1/+2
| | | | | | * Remove duplication from ClassLoader.create * Prevent closing of context class loader in tests so that shutdown hooks can run
* Fix paths for ivy-style repos in grepJar (#412)Guillaume Martres2018-08-262-4/+8
|
* Update GenIdeaImpl.scalaLi Haoyi2018-08-251-1/+1
|
* Fix incremental compilation when a Scala project depends on a Java project ↵Guillaume Martres2018-08-257-85/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#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.
* more terminology fixesLi Haoyi2018-08-221-1/+1
|
* Better use of forkWorkingDirLi Haoyi2018-08-131-6/+6
|
* move forkWorkingDir from TestModule onto JavaModule so it can apply to ↵Li Haoyi2018-08-131-4/+4
| | | | run/runBackground
* Update JavaModule.scalaLi Haoyi2018-08-121-3/+1
|
* don't pass in entered args from as remoteArgs too (#403)John Duffell2018-08-081-1/+1
|
* Add support for Dotty projects (#397)Guillaume Martres2018-08-054-139/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Upgrade Zinc and fix over-compilation (#390)Guillaume Martres2018-07-275-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* add JavaModule#runBackground, to allow a task to kick off processes to run ↵Li Haoyi2018-07-212-0/+68
| | | | in the background that only die when the task is re-run
* add --disable-ticker, handle --color correctly (#379)Anton Sviridov2018-07-141-0/+1
|
* Issue #314; port sbt-updates to mill (#340)Guillaume Galy2018-07-1411-0/+544
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add scala JS version suffix to ivy deps for published JS ivy.xml (#376)Julian Michael2018-06-252-4/+10
|
* Merge branch 'master' of github.com:lihaoyi/millLi Haoyi2018-06-093-5/+5
|\
| * Allow configuration of JavaModule and ScalafmtModule scala workers (#367)aosagie2018-06-082-2/+2
| |
| * Allow configuration of TestRunner's ScalaWorkerModule (#364)aosagie2018-06-062-3/+3
| |
* | avoid duplicating core scala libraries during artifact resolution to fix ↵Li Haoyi2018-06-092-3/+12
|/ | | | https://github.com/lihaoyi/mill/issues/368
* fix #233 add append and exclude rules to assembly (#309)Nikolay Tatarinov2018-06-011-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | * 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-301-18/+87
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* 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.
* Add a `visualize` command to render portions of the build graph as SVG (#349)Li Haoyi2018-05-254-147/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Solves #345 : optional signing (#346)Olivier Mélois2018-05-232-18/+28
| | | | | | | | | | | * Solves 345 : optional signing * Made gpgPassphrase optional for publishing * Added a flag to remove signing of published artifacts altogether * Handle optional value using null as default param better than using empty string as default param.
* Upgrade Ammonite.Robby2018-05-191-1/+1
|