summaryrefslogtreecommitdiff
path: root/scalalib/test
Commit message (Collapse)AuthorAgeFilesLines
* fix #233 add append and exclude rules to assembly (#309)Nikolay Tatarinov2018-06-016-12/+284
| | | | | | | | | | | | | | | | | | | | | | | | * 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-303-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-182-0/+35
|
* fix GenIdeaImpl test modules (#312)Guillaume Galy2018-05-062-3/+3
| | | fix the syntax for the test output and resource folders
* Scalafmt support (#308)Nikolay Tatarinov2018-05-064-0/+125
| | | | | | | | | | | | | | | | | | | | * 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-203-1/+25
| | | | | | | | * 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-083-3/+3
| | | | Fixes https://github.com/lihaoyi/mill/issues/279
* Properly support test frameworks which spawn child tasksLi Haoyi2018-04-083-0/+60
| | | | Needed to fix https://github.com/lihaoyi/mill/issues/286
* Enable JUnit testing, via sbt-test-interface, for `JavaModule`sLi Haoyi2018-04-086-14/+80
|
* 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-082-0/+37
| | | | 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-073-0/+75
|
* 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
* try to fix classloading issues on runLocal and test with java 9 (#255)Nikolay Tatarinov2018-03-251-1/+8
| | | | | | | | | | * fix class loading for inprocess in java 9 * always add rt jar in case of java 9 * move all custom classloading logic into mill.util.ClassLoader * add comments explaining parent class loader changes and comment in tests pointing to original issue
* use Cache.default to determine coursier location(fixes tests on my OS X)rockjam2018-03-243-5/+4
|
* Support scala milestone releases (with fixes for 2.13.0-M3) (#247)Nikolay Tatarinov2018-03-202-1/+7
| | | | | | | | | | * return full scala version for milestone releases * complete support for scala 2.13.0-M2 * match 2.13 milestone releases for compiler bridge sources * add hello world test case for scala 2.13.0-M3
* Changes to make {clientserver,main,scalalib,scalajslib}.test work under Java ↵Robby2018-03-101-2/+2
| | | | | | | | | | 9 (#217) * Append "exported rt.jar" when creating URLClassLoader. * Disabled tests involving Scala 2.10 & 2.11 and nashorn. * Use java.net.URLClassLoader.
* fix optional xml tags in POM (#198)Nikolay Tatarinov2018-03-061-0/+199
|
* Add out/{module_name} as a content root in generated IntelliJ project (#196)Jeremy Apthorp2018-03-051-0/+1
|
* Bugfix/version contol (#192)Guillaume Massé2018-03-031-0/+74
| | | | | | * Fix several issues in VersionControl & add Test * Move VersionControl to it's own file
* Split out `upstreamAssembly` from `assembly`Li Haoyi2018-03-031-18/+6
| | | | Also re-write `Jvm.createAssembly` to allow incremental assembly construction. This should allow much faster assembly creation in the common case where upstream dependencies do not change
* Add dsl for SCM (now called VersionControl) (#168)Guillaume Massé2018-02-281-4/+2
| | | The scm url syntax is a source of confusion for developper. I added VersionControl.github() to simplify this process. We can add other common VersionControl url scheme like Bazar, etc.
* Add predefined licenses from spdx (#144)Guillaume Massé2018-02-261-3/+1
| | | | | | * Add predefined licenses from spdx * Fix License usages
* Update scala-library-2.12.4-sources.jar.xmlLi Haoyi2018-02-241-2/+2
|
* Update scala-library-2.12.4.jar.xmlLi Haoyi2018-02-241-2/+2
|
* Allow specifying classifiers in ivy deps (#159)Jeremy Apthorp2018-02-241-0/+7
|
* GenIdea updates including a fix for #147 (#149)Andrew Richards2018-02-213-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | * extract JDK version so you don't have to keep resetting it * give modules a base path looks much nicer in IntelliJ - the module is now in bold * exclude sbt target directories stops sbt artifacts appearing in search * Fix #147 - add IntelliJ scala library * exclude root sbt project and target folders from IJ search * only resort to full long path names for jars if the name is a duplicate duplicates are hard to find unless you are pulling the same thing from different repos (therefore different path) * update GenIdea tests * tidy GenIdea
* fix-testsLi Haoyi2018-02-212-5/+5
|
* Add unit test for main method discoveryLi Haoyi2018-02-176-9/+58
|
* Discover main class(es) via zincajrnz2018-02-161-4/+27
|
* fix GenIdea testsLi Haoyi2018-02-1110-68/+8
|
* attempt to fix publishAllLi Haoyi2018-02-071-1/+1
|
* allow Result.Failure to take a valueLi Haoyi2018-02-042-6/+6
|
* Fix testsLi Haoyi2018-02-041-8/+3
|
* Make use of `CrossScalaModule` in `HelloWorldTests`Li Haoyi2018-02-037-99/+141
| | | | Also standardize the `HelloWorldTests` onto the typical project layout, where the module of interest is nested within a top-level `BaseModule`
* fix scalalib testsLi Haoyi2018-02-033-110/+110
|