summaryrefslogtreecommitdiff
path: root/scalalib/test/src
Commit message (Collapse)AuthorAgeFilesLines
* Properly support Dotty >= 0.18.1 (#682)Guillaume Martres2019-09-091-0/+15
| | | | Dotty now uses the 2.13 standard library, so `withDottyCompat` needs to use the correct suffix depending on the Dotty version.
* Initial module-specific extension support to GenIdea (#684)Tobias Roeser2019-09-051-0/+41
| | | | | | | | | | | | | | | * Initial module-specific extension support to GenIdea * Contribute Facets to JavaModule * Generate additional files under .idea directory * Introduced more generel Element result type and unit tests * Moved intellijModulePath into GenIdeaModule * Added unit test for GenIdea extension (Missed that previously)
* Use the binary version of the compiler bridge when available (#659)Guillaume R2019-07-251-0/+4
| | | | | | | | * Use the binary version of the compiler bridge when available, fix #591 This also eliminates #389 for Dotty 0.13.0-RC1 and more recent * Add test for Dotty 0.16
* Interpolates $MILL_VERSION in ivy imports (#649)Olivier Mélois2019-07-081-1/+2
| | | | | | | | | | | | | | | | | | | | * Interpolates $MILL_VERSION in ivy imports This overrides the default $ivy magic import by replacing the `$MILL_VERSION` string with mill's version, in order to facilitate the loading/update of contrib modules. Ammonite had to be bumped to 1.6.9 * Removed bloop import * AmmoniteExit import fix * Removed repl dep check * Removed problematic check * Made ammonite version override-able
* Update logic to check for Scala libraries when generating fake SBT librariesAndres Pipicello2019-06-281-2/+0
|
* Using mill source path instead of pwdAndres Pipicello2019-06-281-5/+5
|
* Changed GenIdeaTests to use ScriptTestSuiteAndres Pipicello2019-06-281-39/+21
|
* Merge branch '609'Li Haoyi2019-05-201-5/+5
|\
| * Downstream files overwrite upstream files on assemblyNathan Fischer2019-05-161-5/+5
| | | | | | resolves #608
* | Bump ammonite to 1.6.7 (#610)Li Haoyi2019-05-194-9/+14
|/ | | | | | | | | | | | | | | | * bump ammonite to 1.6.7 * upgrade all the things * add scalaj-http shims for bootstrapping * wip * tweak-error-message * tweak coursier * .
* Avoid unnecessary dependency downloading by providing fetches per cache ↵gehnaphore2018-12-201-1/+1
| | | | | | | | | | | | 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-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | * 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
* collapse boilerplate folder structure within src/ folders (#505)Li Haoyi2018-12-1211-2/+2
| | | | | | * collapse boilerplate folder structure within src/ folders * .
* First pass at splitting out worker-api from mill core. (#504)Li Haoyi2018-12-123-3/+3
| | | | | | | | | 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
* fix testsLi Haoyi2018-12-121-1/+1
|
* WIP migrating over from `ammonite.ops` to `os` module.Li Haoyi2018-11-054-83/+81
| | | | __.compile works, haven't run tests yet
* bump Ammonite versionLi Haoyi2018-10-181-3/+2
|
* .Li Haoyi2018-10-181-1/+1
| | | | | | 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
* Dedicated scalaDoc plugins and options (#433)Guillaume Grossetie2018-09-191-3/+100
| | | | | | * Dedicated scalaDoc plugins and options * Use T{} for consistency
* Remove useless type parameters for {Test,}Evaluator (#416)Guillaume Martres2018-09-152-8/+8
| | | | | | * Remove useless type parameters for {Test,}Evaluator * Update Evaluator.scala
* Fix incremental compilation when a Scala project depends on a Java project ↵Guillaume Martres2018-08-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#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.
* Add support for Dotty projects (#397)Guillaume Martres2018-08-051-5/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Issue #314; port sbt-updates to mill (#340)Guillaume Galy2018-07-143-0/+376
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* avoid duplicating core scala libraries during artifact resolution to fix ↵Li Haoyi2018-06-091-1/+1
| | | | https://github.com/lihaoyi/mill/issues/368
* fix #233 add append and exclude rules to assembly (#309)Nikolay Tatarinov2018-06-011-12/+259
| | | | | | | | | | | | | | | | | | | | | | | | * 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-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fixes #336: pass scalac options to ScalaDoc during docJar stage (#337)Anton Sviridov2018-05-181-0/+29
|
* Scalafmt support (#308)Nikolay Tatarinov2018-05-061-0/+105
| | | | | | | | | | | | | | | | | | | | * add scalafmt module, that formats all sources files on every run * scalafmt worker that internally chaches reformatted files * move jvm process call to helper method * use scala 2.12.4 to resolve scalafmt deps; check for config file existence; add quiet flags to scalafmt CLI * make a scalafmt worker a singleton * add tests for scalafmt module * add reformatAll command * tests for reformatAll command * add docs about scalafmt support
* Mark test module as test sources; change sbt module root (#298)Nikolay Tatarinov2018-04-201-0/+5
| | | | | | | | * mark test module as test sources * add test case for test module in GenIdea * fixes #201 change mill project path for sbt and maven tests
* avoid printing useless stacktraces when subprocess runs failLi Haoyi2018-04-171-5/+1
|
* fix testsLi Haoyi2018-04-101-2/+2
|
* Basic failure tests for `JavaModule`Li Haoyi2018-04-081-1/+26
|
* Rename `root` IDEA module to `mill-build` to avoid collisionsLi Haoyi2018-04-081-2/+2
| | | | Fixes https://github.com/lihaoyi/mill/issues/279
* Properly support test frameworks which spawn child tasksLi Haoyi2018-04-081-0/+36
| | | | Needed to fix https://github.com/lihaoyi/mill/issues/286
* Enable JUnit testing, via sbt-test-interface, for `JavaModule`sLi Haoyi2018-04-081-6/+37
|
* bump test case to 2.12.4 for java9 compatLi Haoyi2018-04-081-1/+1
|
* Fix #282 by passing plugins as arguments to scaladocjulianmichael2018-04-081-0/+32
| | | | Plus a couple tests to sanity check.
* update travis mill versionLi Haoyi2018-04-071-1/+1
|
* avoid recursionLi Haoyi2018-04-071-2/+0
|
* clean up JavaModule/ScalaModule interactions and consolidate extensions into ↵Li Haoyi2018-04-071-1/+5
| | | | new resolveFooDependency methods
* First unit tests for `JavaModule`Li Haoyi2018-04-071-0/+60
|
* Merge branch 'master' into restore-masterRobby2018-04-072-7/+44
|\ | | | | | | | | | | # Conflicts: # .travis.yml # scalalib/src/mill/scalalib/Dep.scala
| * basic support for version pinning (used by default for ↵Li Haoyi2018-04-061-0/+37
| | | | | | | | scala-library/compiler) and for typelevel scala
| * fix buildLi Haoyi2018-04-061-7/+7
| |
* | revive #254 and fix #268 (#274)Sheng Chen2018-04-023-3/+87
| |
* | revert #254 to fix bootstrapping https://github.com/lihaoyi/mill/issues/268Li Haoyi2018-04-013-87/+3
| |
* | fixes #173; use default(compile) configuration for deps as default (#270)Nikolay Tatarinov2018-04-011-0/+8
|/
* Merge branch 'master' of github.com:lihaoyi/millLi Haoyi2018-03-273-3/+87
|\
| * add exclusions and custom configuration to dependencies (#254)Sheng Chen2018-03-263-3/+87
| | | | | | | | | | | | * doc to address #187 and #246 * add exclusions and custom configuration to dependencies and tests
* | Ensure that transitive ivy jars are not directly aggregated under a module's ↵Li Haoyi2018-03-261-0/+25
|/ | | | | | `runClasspath`; only the ivy coordinates are aggregated, and every module resolves it's own set of ivy jars using coursier, which avoids duplicate jars entering the classpath through ivy Fixes https://github.com/lihaoyi/mill/issues/211