Commit Graph

4771 Commits

Author SHA1 Message Date
Eugene Yokota 02c433cc2d more notes 2017-03-11 02:35:48 -05:00
Eugene Yokota 6f3e756871 bump to sbt-giter8-resolver 0.1.3 2017-03-11 01:12:54 -05:00
Eugene Yokota bf8e49edbd launcher 1.0.1 2017-03-11 00:41:00 -05:00
Eugene Yokota fa51689820 0.13.14 notes 2017-03-11 00:39:31 -05:00
eugene yokota 1efe482d4a Merge pull request #3001 from dwijnand/fishbone-to-guide
Avoid missleading, link the syntax migration guide
2017-03-10 20:29:35 -08:00
Dale Wijnand 347323bb98
Avoid missleading, link the syntax migration guide
Fixes #2818
2017-03-10 11:29:44 +00:00
Dale Wijnand 59030cf6f0 Merge pull request #2999 from eed3si9n/wip/bump_jline
JLine 2.14.3
2017-03-10 10:58:44 +00:00
Eugene Yokota 48a4ff327f JLine 2.14.3
Fixes #1855
See also https://github.com/jline/jline2/issues/127
2017-03-09 15:01:50 -05:00
eugene yokota cc19d51f1d Merge pull request #2961 from ekrich/wip13/fix-2551
Fix #2551: scripted mode ignores quotation
2017-03-09 14:44:59 -05:00
Dale Wijnand bce9679ce7 Merge pull request #2993 from eed3si9n/wip/offline_boot
[sbt 0.13] Add local-preloaded repo
2017-03-08 17:27:00 +00:00
Eugene Yokota 0500959003 Add local-preloaded repo 2017-03-08 09:00:22 -05:00
eugene yokota a3d776c1c9 Merge pull request #2996 from dwijnand/stay-in-shell
Notify & enable users to stay in the warm shell
2017-03-07 13:16:41 -05:00
Dale Wijnand e75ebb86b6
Try communicating in actual English 2017-03-07 13:56:05 +00:00
Dale Wijnand 1c614fd699
Instruct how to get into interactive mode directly 2017-03-07 13:30:56 +00:00
Dale Wijnand 019f92dc93
Switch from log.info and !!! to log.warn
Good idea, Lars. Thanks.
2017-03-07 13:01:44 +00:00
Dale Wijnand b53d8c4433
Notify & enable users to stay in the warm shell
Notify & enable users to stay in sbt's shell on the warm JVM by hitting
[ENTER] while sbt is running.

Looks like this; first I run 'sbt about', then I hit [ENTER]:

    $ sbt about
    [info] !!! Executing in batch mode !!! For better performance, hit [ENTER] to remain in the sbt shell

    [info] Loading global plugins from /Users/dnw/.dotfiles/.sbt/0.13/plugins
    [info] Loading project definition from /s/t/project
    [info] Set current project to t (in build file:/s/t/)
    [info] This is sbt 0.13.14-SNAPSHOT
    [info] The current project is {file:/s/t/}t 0.1.0-SNAPSHOT
    [info] The current project is built against Scala 2.12.1
    [info] Available Plugins: sbt.plugins.IvyPlugin, sbt.plugins.JvmPlugin, sbt.plugins.CorePlugin, sbt.plugins.JUnitXmlReportPlugin, sbt.plugins.Giter8TemplatePlugin
    [info] sbt, sbt plugins, and build definitions are using Scala 2.10.6
    >
    >

Fixes #2987
2017-03-07 12:36:34 +00:00
Dale Wijnand 0130e97d0e Merge pull request #2972 from haochi/0.13
Backport #2941 to 0.13.x
2017-03-06 16:02:25 +00:00
Dale Wijnand 7e35049ce7 Merge pull request #2959 from eed3si9n/wip/lowerbound
[sbt 0.13] Maven version range improvement
2017-03-06 15:42:40 +00:00
Haochi Chen f2ff94f0f3 Backport #2941 to 0.13.x 2017-02-23 02:24:22 -03:00
Eric K Richardson 8a78de1ff3 Merge branch '0.13' into wip13/fix-2551 2017-02-14 10:05:15 -05:00
ekrich d74b24db42 Fix #2551: scripted mode ignores quotation 2017-02-14 09:55:27 -05:00
Eugene Yokota 54564ba7ce 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-02-10 04:00:04 -05:00
eugene yokota b6466624a8 Merge pull request #2943 from eed3si9n/backport/generators
[sbt 0.13] Support sourceGenerators += Def.task { ... }
2017-02-07 12:26:54 -05:00
eugene yokota 18f0e56e9d Merge pull request #2952 from dwijnand/notes
Touch up and add missing notes for 0.13.14
2017-02-06 16:55:50 -05:00
Dale Wijnand 9e67e0afba
Add notes for .triggeredBy/.storeAs/etc fix 2017-02-06 10:24:15 +00:00
Dale Wijnand c50f7b5c6b
Add notes for preliminary compatbility with jdk 9 2017-02-06 10:24:12 +00:00
Dale Wijnand 3ff04f987c
Touch up exisiting 0.13.14 notes 2017-02-06 10:24:10 +00:00
Dale Wijnand 756151f555 Merge pull request #2951 from retronym/topic/java9
Preliminary compatibility with JDK 9
2017-02-05 14:56:21 +00:00
Jason Zaugg 265285e892 Future proof for java.xml.bind removal from Java 9 default classpath
JEP-201 describes the new modularized Java Standard Library in Java 9.
By default, java.xml.bind is no longer on the default classpath; it needs
to be added explicitly with a JVM option `--add-modules java.xml.bind`,
or with a dependency declaration in the module-info.java file if you
package your own code up as a Jigsaw module.

This commit traps the linkage error and (reflectively) uses the
java.util.Base64, which is the recommended way to encode/decode
since 1.8.
2017-02-04 22:23:02 -07:00
Jason Zaugg 3ad3f87212 Future proof against removal of java.ext.dirs in Java 9
This is the start of an effort to make SBT 0.13.x compatible
with JDK 9.

The system property java.ext.dirs no longer exists now that
JEP-220 has removed the extension and endorsed classpath
facilities. It is also forbidden to manually set this to
an empty string from the command line.

This commit treats the absense of this property as an
empty extension classpath.
2017-02-04 22:14:51 -07:00
Eugene Yokota 70a2878dbc Adds an Append instance that extracts taskValue
This adds a macro-level hack to support += op for sourceGenerators and resourceGenerators using RHS of Initialize[Task[Seq[File]]].
When the types match up, the macro now calls `.taskValue` automatically.
2017-01-22 23:44:48 -05:00
eugene yokota 33e7cbc907 Merge pull request #2908 from dwijnand/fix-triggeredBy
Fix triggeredBy/storeAs/etc using :=. Fixes #1444
2017-01-13 13:57:38 -05:00
Dale Wijnand 486c3c3167
Work-around actions/depends-on failure 2017-01-13 14:27:31 +00:00
Dale Wijnand c6d3bbacfa
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-01-13 14:26:54 +00:00
Dale Wijnand 011d0e8489
Remove some code duplication between TaskInstance and MultiInTask 2017-01-13 14:26:54 +00:00
Dale Wijnand 936dda6297
Copy all attributes for all methods in SingleInTask
For when := is used over <<= for 'triggeredBy', 'runBefore', etc..
2017-01-13 14:26:54 +00:00
Dale Wijnand 2404d609ce
Fix runBefore with := 2017-01-13 14:26:53 +00:00
Dale Wijnand 9bad462f7a
Fix triggeredBy with :=
Fixes #1444
2017-01-13 14:26:53 +00:00
eugene yokota e851cfc893 Merge pull request #2902 from smarter/auto-dotty-bridge
Automatically choose proper compiler bridge for dotty
2017-01-11 17:51:38 -05:00
eugene yokota 55efa89ca3 Merge pull request #2903 from smarter/fix/dotty-nightlies
Fix support for published dotty nightly builds
2017-01-11 11:01:27 -05:00
Guillaume Martres 3c6db1ce5d 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-01-11 16:06:45 +01:00
Guillaume Martres 709cfc96f9 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-01-10 21:40:49 +01:00
Dale Wijnand 10b71ef1c4 Merge pull request #2897 from smarter/fix/scala-bootstrap
OverrideScalaMediator: fix bootstrapping a Scala compiler
2017-01-09 13:36:08 +00:00
Guillaume Martres 47148f3fde snapshot-resolution: add a sleep to ensure timestamp change
This test suddenly started failing for no reason at line 25, adding this
sleep seems to have fixed that. Every other publish was preceded by a
sleep in this test, so this makes some sense.
2017-01-09 03:52:00 +01:00
Guillaume Martres c76832fbc7 Avoid NullPointerException in sbt.ScalaOverrideTest 2017-01-09 01:15:08 +01:00
Guillaume Martres 89d5e96ed0 Add testcase for scala bootstrap
Before the previous commit, this failed with:
[error] (*:update) java.lang.IllegalArgumentException: a module is not
authorized to depend on itself: org.foo#scala-library;2.99.0
2017-01-08 23:03:18 +01:00
Guillaume Martres 0d0476eaa9 OverrideScalaMediator: fix bootstrapping a Scala compiler
Fixes #2867, #2896
2017-01-08 22:08:25 +01:00
eugene yokota c223dccb54 Merge pull request #2854 from ashleymercer/0.13-junit-skipped
JUnitXmlTestsListener now correctly flags ignored, skipped and pending tests
2016-11-30 18:03:04 -05:00
eugene yokota 5141a4524a Merge pull request #2855 from eed3si9n/wip/buildkey_fix
Add build-level keys to the tab completion
2016-11-30 14:00:51 -05:00
Eugene Yokota 00bab7b743 Add build-level keys to the tab completion
Fixes #2460
Fixes #2851
Ref #2707, #2708, #2469

Unlike the previous attempts at fixing the handling of build-level
keys, this change does not change the main parsing logic, which uses
`getKey` to retrieve the key from the key map.
The fact that shell worked pre-0.13.11 means that the parsing was ok.

What this changes is just the "example" keys supplied to the parser so
the tab completion works.
2016-11-30 02:33:05 -05:00