summaryrefslogtreecommitdiff
path: root/scalalib/src/main/scala
Commit message (Collapse)AuthorAgeFilesLines
* Migrate most classpath-related code onto `Loose.OSet` abstraction, to ↵Li Haoyi2018-01-138-54/+65
| | | | enforce deduplication
* Break up scalalib/Module.scalaLi Haoyi2018-01-123-155/+174
|
* Allow `Cross`-builds to themselves be `Module`s so you can nest stuff insideLi Haoyi2018-01-121-0/+2
| | | | Also properly propagate `mainClass` into `assembly`
* Allow implicit `crossModule()` syntax to automatically find a set of ↵Li Haoyi2018-01-121-1/+20
| | | | cross-coordinates which are compatible with a given implicit resolver
* - Make `sources` and `resources` able to take multiple roots, so we can ↵Li Haoyi2018-01-121-20/+50
| | | | implement `CrossSbtModule` that works with `scala-2.10/` `scala-2.11/` etc. folders
* - Better error reporting in `ReplApplyHandler`Li Haoyi2018-01-121-4/+4
| | | | | - Logger now prints a newline when transitioning to ticker-mode, to avoid over-writing anything on the current line - Consolidate `scalalib.Module` logic around `assemblyClasspath`
* Properly close file inputstreams after hashing files, and eagerly close ↵Li Haoyi2018-01-111-0/+1
| | | | classloaders used for running tests
* Add generated sources target (#109)Minghao Liu2018-01-112-10/+29
| | | | | | | | | | | | * add generated source * naming * multiple content root * no message * fix output classes path
* Simplify `Evaluator.Mapping` and consolidate logic within the `Segments` ↵Li Haoyi2018-01-081-6/+4
| | | | data-type
* Generate the `Segments` list at definition time rather than discovery time, ↵Li Haoyi2018-01-071-3/+3
| | | | | | | | by propagating implicits throughout the tree of nested `mill.Module`s This currently adds some annoying boilerplate to the definition of cross/abstract modules, which can probably be removed using Macros. The `Segments` mapping generated by discovery is still present and used in a few places, though it will be removed
* Break out `Module.scala` from `Task.scala`Li Haoyi2018-01-071-1/+1
|
* First pass at implicitly propagating a `def basePath: Path` up the `Module` ↵Li Haoyi2018-01-071-3/+1
| | | | | | | | hierarchy, which each module receives and extends. One constraint is that now must define your abstract modules as `trait`s rather than `class`es, or otherwise add an implicit `ctx: ModuleCtx` parameter to your class definition. So far this lets us remove some explicit `basePath` definitions in `build.sc`. Proper handling of `basePath` in `CrossModule`s is future work
* Forward bulk output to `stderr` when `--show` is called, reserving `stdout` ↵Li Haoyi2018-01-051-0/+1
| | | | for the shown JSON blob
* Fix scalatest support (#101)Vadim Chelyshov2018-01-051-1/+1
| | | * Fix #99 - it's required to provide sbt.testing.Selector for scalatest
* First pass at a ticker-based progress logger to reduce the spamminess of the ↵Li Haoyi2018-01-042-2/+11
| | | | console
* fix idea... againLi Haoyi2018-01-041-1/+1
|
* First pass at providing new pretty-prints for build ↵Li Haoyi2018-01-031-1/+1
| | | | `Module`s/`Target`s/`Cross`s in the Mill REPL, making use of `sourcecode.*` values captured and definition-site and contextual information made available in the build `Mirror`
* Pipe in stdin and stderr. We still need to figure out a policy for how ↵Li Haoyi2018-01-012-4/+4
| | | | stderr/stdout map to the various `Logger` levels, but for now this shuts up the integration tests
* Properly handle `isModule` flag on `sbt.testing.FingerPrint`Li Haoyi2018-01-011-0/+3
|
* Make `HelloWorldTests` take an explicit output path so they are less ↵Li Haoyi2018-01-011-2/+4
| | | | | | sensitive to working directories Make `run` and `runMain` take option CLI args
* Properly set the context classloader inside `TestRunner`'s `ClassLoader`Li Haoyi2018-01-011-47/+54
|
* Make `forkArgs` work with `run` and `runMain`Li Haoyi2018-01-011-4/+14
|
* Split Acyclic/Jawn/BetterFiles tests into their own `integration/` test suite.Li Haoyi2018-01-013-9/+10
| | | | | | Those tests now download a snapshot of the relevant git repo rather than vendoring the files, and use a bare `build.sc` instead of having the build object be included in the test classpath. Tests pass using `sbt integration/test`, but `mill integration.test` still doesn't work
* Split out generic `T.input` tasks from the `T.source` helpers, allowing ↵Li Haoyi2017-12-311-6/+6
| | | | `T.source` to behave as before but `T.input` can be used for other things. Fixes https://github.com/lihaoyi/mill/issues/77
* - Convert `T.source` into a generic `Target` that flushes the cache every timeLi Haoyi2017-12-313-12/+9
| | | | | | - Prepare `T.ctx().base: Path` that `Task`s (including `T.source`) can use to find a "default" path for source files. - Simplify `Cacher`
* `Core` -> `core`, for consistency with SBT naming schemesLi Haoyi2017-12-3015-0/+1521
`ScalaPlugin` -> `scalalib`, to avoid confusion with Scala compiler plugins `ScalaModule` -> `module`, to be used via `scalalib.Module`, avoid unnecessary duplication in th name prefix `plugin` -> `moduledefs`, to more accurately describe what it does (since it includes `Cacher` as well)