Commit Graph

17940 Commits

Author SHA1 Message Date
Eugene Yokota bd792c3bb8 Fixes #1616. Fixes the "latest snapshot" chain resolver
The "latest snapshot" chain resolver was assuming that there's at least
one artifact per module. I think that was the root cause of #1616.
2016-01-17 18:53:06 +00:00
Eugene Yokota 33ae444041 Bump up ivy to 2.3.0-sbt-39ece6f17e1af62c2e89a9d88b59c0c3aad56145
Ref sbt/ivy#21
2016-01-17 18:53:03 +00:00
Eugene Yokota 409d1a7f4e Fixes #1514. Enable latest SNAPSHOT option by default
to check all resolvers to find the latest snapshot artifacts.
This behavior did not work well with Maven repositories where sbt was
failing to calculate the correct publication dates.
Now that #2075 fixes the Maven integration issue we should enable this
flag back again.

The build user can opt out by:

    updateOptions := updateOptions.value.withLatestSnapshots(false)
2016-01-17 18:49:46 +00:00
Eugene Yokota 54fa9dd416 Improve warning message 2016-01-17 18:37:23 +00:00
Eugene Yokota eef906e09a Fixes #1827. Adds withInterProjectFirst to update option.
withInterProjectFirst when set to true will prioritize inter-project
resolver over all other resolver and Ivy cache.
This aimed to workaround the fact that on Maven Test configuration is
considered private, and thus project dependency with `test->test`
configuration may not under some condition. The condition is when
someone resolves `x:y:1.0` and you have a subproject named and
versioned exactly that, and some other subproject tries to depend on
it. This happens when the project does not change the version number on
the Github.
2016-01-17 18:37:23 +00:00
Eugene Yokota b705d4e998 Update warning message a bit. 2016-01-17 16:43:44 +00:00
Eugene Yokota 6fb70aedf1 Reproduce "configuration not public" on local test->test. #1827 2016-01-17 16:43:44 +00:00
Eugene Yokota 17397249ae Move intransitive warning to update. Ref #2127 2016-01-17 16:43:40 +00:00
Guillaume Martres a05218f5ac Make sbt aware of Dotty
This small set of changes, together with the compiler-bridge I wrote
(https://github.com/smarter/dotty-bridge) enables us to compile code
using Dotty in sbt, see https://github.com/smarter/dotty-example-project
for an example.

Partial forward port of #2344.
2016-01-17 16:37:22 +00:00
Guillaume Martres 368866bce9 Make sbt aware of Dotty
This small set of changes, together with the compiler-bridge I wrote
(https://github.com/smarter/dotty-bridge) enables us to compile code
using Dotty in sbt, see https://github.com/smarter/dotty-example-project
for an example.

Partial forward port of sbt/sbt#2344.
2016-01-17 16:35:41 +00:00
Grzegorz Kossakowski f34085e31e Upgrade Scala version in scripted tests
Both continuations and macro-config set scalaVersion explicitly but since
sbt relies now on Scala 2.10 it's not needed anymore. In particular, we
can upgrade continuations to 2.10 which makes it easier to work with Java
8.
2016-01-17 16:27:54 +00:00
Alexandre Archambault de1fddec26 Add limitations and roadmap sections in README 2016-01-17 16:35:36 +01:00
Alexandre Archambault 7f0b322368 Add point about no global lock in README 2016-01-17 16:30:56 +01:00
Dale Wijnand e80029a868 Merge pull request #2373 from dwijnand/fport/scala-version
FPORT: Bumping Scala version to 2.10.6.
2016-01-17 15:26:32 +00:00
Eugene Yokota e31d8a7a0c FPORT: Bumping Scala version to 2.10.6.
Forward-port of #2311.
2016-01-17 02:38:40 +00:00
Dale Wijnand 706b7b9d37 Merge pull request #2381 from dwijnand/1.0/add-sbt-mima
Add sbt-mima. Fixes #2037.
2016-01-17 02:37:20 +00:00
Dale Wijnand 0429fc82b0 Add sbt-mima. Fixes #2037. 2016-01-16 23:12:17 +00:00
eugene yokota b0ca6f797e Merge pull request #17 from dwijnand/fport/make-JCenter-opt-in
FPORT: Make Make JCenter opt in
2016-01-16 15:00:21 -05:00
eugene yokota ad59b31c35 Merge pull request #2380 from dwijnand/fport/add-sbt-ivy-snapshots-to-launchconfig
FPORT: Include sbt-ivy-snapshots to launchconfig
2016-01-16 14:54:51 -05:00
eugene yokota ae2c5f1d12 Merge pull request #2379 from dwijnand/fport/release-notes-for-name-hashing-private-members
FPORT: Release notes for name hashing private members fix
2016-01-16 14:54:39 -05:00
eugene yokota 291059a72b Merge pull request #2378 from dwijnand/use-ivyConfiguration-in-updateSbtClassifiers-in-compilers-to-fetch-compiler-bridge-sources
FPORT: Adds bootIvyConfiguration to grab compiler bridge source. Fixes #2336
2016-01-16 14:54:27 -05:00
eugene yokota c88f439291 Merge pull request #2375 from dwijnand/fport/0.13.10-release-notes
FPORT: Release notes for 0.13.10
2016-01-16 14:52:05 -05:00
eugene yokota fbfb8ec04d Merge pull request #2374 from dwijnand/fport/disable-task-pre-port-checks
FPORT: Fixes #2302. Don't check pre and post conditions in sbt.Execute by default.
2016-01-16 14:51:45 -05:00
eugene yokota b72065c258 Merge pull request #2372 from dwijnand/update-sbt-plugins-in-1.0.x
FPORT: Upgrade sbt plugins. Fixes #2368
2016-01-16 14:50:34 -05:00
Eugene Yokota 01b46a6d6a Include sbt-ivy-snapshots to launchconfig
Forward-port of #2338.

Include sbt-ivy-snapshots to launchconfig
Prior to this change, the launchconfig for sbt was generated using
Transform's resource generator so releases would include
`typesafe-ivy-releases` repo, and snapshot releases would include
`typesafe-ivy-snapshots` and `sonatype-snapshots` repos in addition.
This is no longer useful since nightly builds are now published to
`sbt-ivy-snapshots` instead, which is backed by Bintray.

This removes the switching logic, so both `typesafe-ivy-releases` and
`sbt-ivy-snapshots` repos are always included into the launchconfig.
This removes the step of needing to download a launcher just to try the
nightly builds.
2016-01-16 16:52:12 +00:00
Dale Wijnand d514bea6cc FPORT: Release notes for name hashing private members fix
Forward-port of #2339.
2016-01-16 16:35:18 +00:00
Eugene Yokota 6c1b054249 Adds bootIvyConfiguration to grab compiler bridge source. Fixes #2336
Forward-port of #2337.

As described in #2336, I noticed that when using 0.13 nightly from
Bintray, sbt was unable to locate the compiler source.
Since `updateSbtClassifiers` is already set up to download sbt's own
sources, the `ivyConfiguration` should be reused. However, `compilers`
is a derived task, which is unable to depend on a scoped key.
To workaround this I had to create a new key called
`bootIvyConfiguration`. This should now use the metabuild's resolvers
to download the compiler bridge source.
2016-01-16 16:11:51 +00:00
Dale Wijnand f87eabdc98 FPORT: Make Make JCenter opt in
Forward-port of sbt/sbt#2335.
2016-01-16 15:44:55 +00:00
Eugene Yokota e3a2b94dd1 FPORT: Release notes for 0.13.10
Forward-port of #2315.
2016-01-16 12:41:07 +00:00
Johannes Rudolph 643361f7b1 FPORT: Fixes #2302. Don't check pre and post conditions in sbt.Execute by default.
Forward-port of #2303.

The checking code has bad run time characteristics and would need to be fixed
for large projects with deep task dependency chains.

The code in sbt.Execute has been in production for a long time so it seems safe
enough to drop the extra checks by default. To debug issues, you can set
`-Dsbt.execute.extrachecks=true` to revert to the old behavior.
2016-01-16 12:35:49 +00:00
Dale Wijnand de10d81f07 Upgrade sbt plugins. Fixes #2368
Cherry-picked 84cba9669c from branch 0.13 to 1.0.x

Tested manually:

  $ grep 'version.*:=' build.sbt
  version := "0.13.10-SNAPSHOT",
  $ git archive --prefix=sbt-0.13.10-SNAPSHOT/ -o ~/Desktop/sbt-0.13.10-SNAPSHOT.tgz HEAD
  $ cd ~/Desktop
  $ ls
  sbt-0.13.10-SNAPSHOT.tgz
  $ tar xfz sbt-0.13.10-SNAPSHOT.tgz
  $ cd sbt-0.13.10-SNAPSHOT/
  $ sbt info
  [info] Loading global plugins from /Users/dnw/.dotfiles/.sbt/0.13/plugins
  [info] Loading project definition from /Users/dnw/Desktop/sbt-0.13.10-SNAPSHOT/project
  [info] Updating {file:/Users/dnw/Desktop/sbt-0.13.10-SNAPSHOT/project/}sbt-0-13-10-snapshot-build...
  [info] Resolving org.fusesource.jansi#jansi;1.4 ...
  [info] Done updating.
  [warn] There may be incompatibilities among your library dependencies.
  [warn] Here are some of the libraries that were evicted:
  [warn]  * com.typesafe.sbt:sbt-site:0.8.1 -> 0.8.2
  [warn] Run 'evicted' to see detailed eviction warnings
  [info] Compiling 12 Scala sources to /Users/dnw/Desktop/sbt-0.13.10-SNAPSHOT/project/target/scala-2.10/sbt-0.13/classes...
  [info] This is sbt 0.13.9
  [info] The current project is {file:/Users/dnw/Desktop/sbt-0.13.10-SNAPSHOT/}sbtRoot 0.13.10-SNAPSHOT
  [info] The current project is built against Scala 2.10.6
  [info] Available Plugins: sbt.plugins.IvyPlugin, sbt.plugins.JvmPlugin, sbt.plugins.CorePlugin...
  [info] sbt, sbt plugins, and build definitions are using Scala 2.10.5
2016-01-16 12:19:09 +00:00
Alexandre Archambault 25ba1f9b72 Update README 2016-01-14 23:33:14 +01:00
Alexandre Archambault be107cd033 Update launcher 2016-01-14 23:31:42 +01:00
Alexandre Archambault 14bbec5182 Set version to 1.0.0-SNAPSHOT 2016-01-14 23:29:27 +01:00
Alexandre Archambault 2b99e03dfa Set version to 1.0.0-M4 2016-01-14 23:28:43 +01:00
Alexandre Archambault b7a0c62c25 Merge pull request #108 from alexarchambault/topic/ivy-cache
Add support for ~/.ivy2/cache as a repository
2016-01-14 09:52:10 +01:00
Alexandre Archambault f1bdef65e5 Merge pull request #107 from alexarchambault/topic/relative-cache-path
Fix cache getting confused if COURSIER_CACHE set to a relative path
2016-01-14 09:51:54 +01:00
Alexandre Archambault a8d5a2c4c9 Accept absent checksums by default
SHA-1 still checked first if present
2016-01-14 01:10:06 +01:00
Alexandre Archambault a9f3403520 Add support for ~/.ivy2/cache as a repository 2016-01-14 01:10:06 +01:00
Alexandre Archambault c476b08f32 Add support for Ivy repositories with different artifact / metadata
patterns
2016-01-14 00:42:10 +01:00
Alexandre Archambault da819fc69f Fix cache getting confused if COURSIER_CACHE set to a relative path 2016-01-14 00:02:58 +01:00
Alexandre Archambault a251e71190 Revert "Update Sonatype credentials config"
This reverts commit ca0fec50ca.
2016-01-13 23:07:01 +01:00
Alexandre Archambault 8a6dd8a6ba Merge pull request #106 from alexarchambault/topic/fix
Fix small glitch in SBT plugin output
2016-01-13 22:52:33 +01:00
Alexandre Archambault 51b3da8126 Fix small glitch in SBT plugin output 2016-01-13 20:48:21 +01:00
Alexandre Archambault 731ae75ed3 Merge pull request #105 from alexarchambault/topic/fix-plugin-output
Minor fix
2016-01-13 14:38:55 +01:00
Alexandre Archambault f655b432e0 Minor fix 2016-01-13 13:32:46 +01:00
Darren Bishop dc4a56c2e0 Updated the MS Windows SBT launcher script to get the same/similar behaviour for -jvm-debug as implemented in the *nix shell script launcher.
http://stackoverflow.com/questions/4150776/debugging-scala-code-with-simple-build-tool-sbt-and-intellij/28236830#28236830
2016-01-12 14:50:37 +00:00
Alexandre Archambault ca0fec50ca Update Sonatype credentials config 2016-01-12 00:06:24 +01:00
Alexandre Archambault 4d1f2b6797 Merge pull request #103 from alexarchambault/topic/bootstrap-isolation
Add support for ClassLoader isolation in generated bootstrap launchers
2016-01-11 23:56:59 +01:00
Alexandre Archambault 214e0f893e Disable unnecessary assertion 2016-01-11 21:20:55 +01:00