Commit Graph

17940 Commits

Author SHA1 Message Date
Eugene Yokota f5cf8ef4a8 Adjust scripted test to sbt 1 2017-04-04 16:32:02 -04:00
Lars Hupel b20b8a0b18 test case for package target check 2017-04-04 16:29:06 -04:00
Lars Hupel da7d03ed48 avoid deleting the target of `makeJar` if it's not a file 2017-04-04 16:28:50 -04:00
Eugene Yokota bb258f42a6 Maven version range improvement
Previously, when the dependency resolver (Ivy) encountered a Maven version range such as `[1.3.0,)`
it would go out to the Internet to find the latest version.
This would result to a surprising behavior where the eventual version keeps changing over time
*even when there's a version of the library that satisfies the range condition*.

This changes to some Maven version ranges would be replaced with its lower bound
so that when a satisfactory version is found in the dependency graph it will be used.
You can disable this behavior using the JVM flag `-Dsbt.modversionrange=false`.

Fixes #2954
Ref #2291 / #2953
2017-04-04 16:22:28 -04:00
Guillaume Martres 2283c68031 Automatically choose proper compiler bridge for dotty
Before this commit, using dotty in your sbt project required to add:
  scalaCompilerBridgeSource := ("ch.epfl.lamp" % "dotty-sbt-bridge" %
    scalaVersion.value % "component").sources()
in your build.sbt. We might as well automatically do this, this reduces
the boilerplate for using dotty in your project to:
  scalaOrganization := "ch.epfl.lamp"
  scalaVersion := "0.1.1-SNAPSHOT"
  scalaBinaryVersion := "2.11" // dotty itself is only published as a
                               // 2.11 artefact currently
2017-04-04 14:49:32 -04:00
eugene yokota 728e57827f Merge pull request #79 from eed3si9n/fport/2897
[fport] OverrideScalaMediator, dotty nightly builds
2017-04-04 11:09:25 -07:00
Guillaume Martres 0561c12d19 Fix support for published dotty nightly builds
Dotty nightly builds are published to maven, so they end up in
configuration "default", not "compile". We still need to look into
"compile" when dotty is published locally.

You can test this using https://github.com/smarter/dotty-example-project
by updating the sbt version used in project/build.properties and by
replacing "0.1.1-SNAPSHOT" by a nightly version like
"0.1.1-20170109-be64643-NIGHTLY" in build.sbt
2017-04-04 14:01:42 -04:00
Guillaume Martres 45288b5f80 Avoid NullPointerException in sbt.ScalaOverrideTest 2017-04-04 13:18:46 -04:00
Guillaume Martres 9375c88a8b OverrideScalaMediator: fix bootstrapping a Scala compiler
Fixes #2867, #2896
2017-04-04 13:18:32 -04:00
eugene yokota e4489a3923 Merge pull request #76 from dwijnand/drop-out-X
Drop (out-X) from the log output
2017-04-04 09:52:51 -07:00
eugene yokota 0a9dd9678d Merge pull request #3069 from dwijnand/rollback-runnerTask
Switch Defaults.runnerTask back to a setting
2017-04-04 09:50:17 -07:00
Alexandre Archambault d9519a2e30 Merge pull request #484 from coursier/topic/spark-submit-artifact-types
Get both jar and bundle artifacts from spark-submit command
2017-04-04 17:14:00 +02:00
Alexandre Archambault 7e414c1d6b Merge pull request #480 from coursier/topic/no-directory-listing-fallback
Add fallback if directory listings are not available
2017-04-04 16:40:19 +02:00
Alexandre Archambault a62fb9a85f Get both jar and bundle artifacts from spark-submit command
For the JAR list passed to spark.yarn.jars. The bundle ones are missing since 1.0.0-M15-2 else.
2017-04-04 16:37:51 +02:00
Dale Wijnand d088d16d78
Drop (out-X) from the log output
Fixes sbt/sbt#3056
2017-04-04 14:15:01 +01:00
Alexandre Archambault b54438c1ba Add fallback if directory listings are not available 2017-04-04 14:45:06 +02:00
Dale Wijnand c9ba9502a7
Work-around actions/depends-on failure 2017-04-04 13:41:11 +01:00
Dale Wijnand 4a6feb2b23
Switch Defaults.runnerTask back to a setting
I believe this was an unintentional change in
74cfbd4a9c.
2017-04-04 11:48:45 +01:00
Dale Wijnand 1020405d64 Merge pull request #3068 from dwijnand/kill-settingsSet
Kill settingsSets
2017-04-04 11:32:37 +01:00
eugene yokota 40f6c4d01b Merge pull request #3066 from eed3si9n/wip/testing
[sbt 1.0] Proof-of-concept testing events
2017-04-04 03:31:33 -07:00
Eugene Yokota 2a1d8fb9e7 Expose TestResult 2017-04-04 05:22:23 -04:00
Dale Wijnand 101187a3be
Kill settingsSets
Fixes #2617
2017-04-04 08:38:44 +01:00
Eugene Yokota 596dc62d7e util 1.0.0-M21 2017-04-04 02:39:33 -04:00
eugene yokota 9b0818f49a Merge pull request #78 from dwijnand/expose-rich-update-report
Expose RichUpdateReport & DependencyFilter
2017-04-03 22:02:13 -07:00
Dale Wijnand 7ca327fc08
Migrate actions/depends-on to fix it
Seems following the deprecation warning info and the website
documentation and avoiding the BuildCommon inputTask method avoids
whatever problem was causing it to fail... Strange.. but ok?
2017-04-03 17:34:18 +01:00
Dale Wijnand 7d5dd9999d
Remove some code duplication between TaskInstance and MultiInTask 2017-04-03 17:34:17 +01:00
Dale Wijnand 7cd285f1b0
Copy all attributes for all methods in SingleInTask
For when := is used over <<= for 'triggeredBy', 'runBefore', etc..
2017-04-03 17:34:17 +01:00
Dale Wijnand 570ef0a379
Fix runBefore with := 2017-04-03 17:34:16 +01:00
Dale Wijnand 88ded6cb21
Fix triggeredBy with :=
Fixes #1444
2017-04-03 17:34:15 +01:00
Alexandre Archambault 375eeca48b Merge pull request #385 from coursier/topic/extra
Stuff
2017-04-03 17:13:20 +02:00
Alexandre Archambault 7c68e3cd5e Merge pull request #478 from coursier/topic/tweak-spark-submit
Tweak spark-submit command options
2017-04-03 16:12:03 +02:00
Alexandre Archambault e7f74dda0d Tweak spark-submit command options 2017-04-03 15:19:09 +02:00
Alexandre Archambault 3afc3433ba Use https repo 2017-04-03 14:43:08 +02:00
Dale Wijnand 1afe7114e8
Expose RichUpdateReport enrichment 2017-04-03 12:39:52 +01:00
Dale Wijnand 723abc945f
Overload RichUpdateReport#select instead of using default args 2017-04-03 12:39:39 +01:00
Dale Wijnand cbdbf23127
Expose RichUpdateReport & DependencyFilter
Fixes #42
2017-04-03 12:39:39 +01:00
Alexandre Archambault 3b717f8be0 Merge pull request #473 from coursier/topic/contributing-guide
Add CONTRIBUTING guide
2017-04-03 10:13:33 +02:00
Alexandre Archambault 8c08ead018 Merge pull request #477 from coursier/topic/enable-sbt-plugin-hack-by-default
Enable sbt plugin hack in Maven repo paths by default
2017-04-03 10:10:05 +02:00
Alexandre Archambault 9194853749 More loose main class detection
Makes it find the main class of scalafmt
2017-04-03 10:09:33 +02:00
Alexandre Archambault 62d3ed307a Remove cli=true from scaladex query
Makes it not find lihaoyi/Ammonite in particular
2017-04-03 10:09:33 +02:00
Guillaume Massé c332d4f46e scaladex cli api change & use scalaVersion from options
* Scaladex was updated to allow developers to specify cli artifact. It
  will only return projects and artifacts with cli enable
2017-04-03 10:09:33 +02:00
Alexandre Archambault e8af9e7aba Parallelize scaladex lookups 2017-04-03 10:09:33 +02:00
Alexandre Archambault f29e74126d Cache scaladex lookups 2017-04-03 10:09:33 +02:00
Alexandre Archambault 1380d7a741 Quick & dirty scaladex lookup 2017-04-03 10:09:33 +02:00
Eugene Yokota 622ebfd000 Switch to using util's JValueFormats 2017-04-03 03:41:45 -04:00
Dale Wijnand add9bd2f4d Merge pull request #74 from eed3si9n/wip/json
Store JSON into ObjectEvent
2017-04-03 08:35:56 +01:00
Eugene Yokota 069104b989 Bump up log4j2 to 2.8.1 2017-04-03 03:22:47 -04:00
Eugene Yokota 1dab826ffd Store JValue into ObjectEvent 2017-04-03 03:22:33 -04:00
Eugene Yokota e21c78ebb0 Move JValue format here 2017-04-03 03:22:04 -04:00
Eugene Yokota 94a2e6cb12 Fix directory name 2017-04-03 03:21:14 -04:00