Commit Graph

17847 Commits

Author SHA1 Message Date
Alexandre Archambault f24a71f2fc
Add missing Ivy attributes in dependencies of published artifacts
Fixes https://github.com/alexarchambault/coursier/issues/237
2016-04-28 23:17:11 +02:00
Alexandre Archambault 869d57c2f4
Tidying 2016-04-28 23:17:07 +02:00
Alexandre Archambault bf919d4fc1
Nasty bug
Occurring randomly :-| - hard to unit test...
2016-04-28 21:19:41 +02:00
Alexandre Archambault 5b1165b79e
Add notes about maven model 2016-04-28 21:19:37 +02:00
Martin Duhem ed0f2af66b Fix warning with Scala 2.11
We get a warning about the exhaustivity check, but the warning
disappears if we increase the maximum recursion depth.
2016-04-27 11:09:00 +02:00
Martin Duhem 65adc869d4 Implement static launcher for sbt
This is a combination of 13 commits. I squashed these 13 commits to make
forward porting those changes easier, since some commit undo the changes
of other commits.

The PRs that include these changes can be found at
https://github.com/sbt/sbt/pull/2564 and
https://github.com/sbt/sbt/pull/2576.

Static launcher, get bridge sources from resources

This commit introduces a new "static" launcher that does not use Ivy to
gather all the artifacts that it requires, but rather expect them to be
immediately available.

To be able to use sbt without Internet access, we add a new
`ComponentCompiler` that is able to retrieve the bridge sources from the
resources on classpath and compile it.

Fix classpath issues in static launcher

The launcher defines a top classloader that willbe used by all
`ScalaInstance`s. Previously, this top classloader had a parent that
contained the scala library 2.10, which prevented the correct
compilation of the compiler bridge for scala 2.11.

Also, we no longer need the scala-reflect JAR.

Tests for FakeResolver

Add `scala-reflect.jar` to JARs of `StaticScalaProvider`

It turns out we need to have `scala-reflect.jar` on classpath to compile
the compiler bridge for the static scala instance of the launcher.

Comply to Ivy's specification in `FakeResolver`

Remove `CompilerBridgeProvider` and `ResourceBridgeProvider`

It turns out that we can leverage the`FakeResolver` that has been
implemented to use with the static launcher, and resolve a "fake
compiler bridge" using it, rather than copying it from the resources.

This also has the advantage of not requiring to change the build
definition.

Fix NPE in FakeResolver

Add compiler bridge sources to fake resolver

This allows sbt to resolve the compiler bridge sources when using the
static launcher

Don't hardcode sbt version in static launcher

Add scala compiler and library to fake resolver

This allows us to still resolve them if we have no other resolver
configured.

Add `RepositoriesParser`

This parser is used by the static launcher to parse the definition of
resolvers that override the build resolvers.

Support repositories override in static launcher

The static launcher will now parse user-defined repositories like the
usual launcher does.

Specifically, the static launcher now uses the following configuration:

 - `sbt.boot.directory`: specifies the boot directory that sbt will use.
   Defaults to `~/.sbt/boot`.
 - `sbt.override.build.repos`: indicate whether we want to override the
   build resolvers. Defaults to false.
 - `sbt.repository.config`: specifies the path to the files that
   contains repositories definition. Defaults to
   `${sbt.boot.directory}/repositories`.

Notes for sbt/sbt#2564 & sbt/sbt#2576
2016-04-27 10:14:47 +02:00
Alexandre Archambault 9072dacb0e Fix message 2016-04-27 01:12:33 +02:00
Alexandre Archambault 05c248df82 Safety check 2016-04-27 01:12:14 +02:00
Alexandre Archambault 641af2af91 Add simple-http-server project 2016-04-27 00:40:54 +02:00
Alexandre Archambault 44114ff0ed
Add release notes for 1.0.0-M11-1 2016-04-26 23:37:46 +02:00
eugene yokota d5fbe99bdd Merge pull request #2543 from eed3si9n/wip/project_dsl
[sbt 1.0] Reduce sbt.Project(...) params and make settings(...) lazy
2016-04-25 10:35:39 -04:00
Eugene Yokota f4792f77d6 Fix tests 2016-04-25 05:45:48 -04:00
Eugene Yokota f6ff1f916c Rename sbt.Plugin => sbt.internal.OldPlugin 2016-04-25 05:09:39 -04:00
Eugene Yokota a20da88a45 Reduce parameters from sbt.Project.apply 2016-04-25 04:26:30 -04:00
Alexandre Archambault 6010d1bfbf Merge pull request #238 from jalaziz/cross-versioned-excludes
Add cross version support with excludeDependencies
2016-04-24 19:07:58 +02:00
Alexandre Archambault 8be490ca99 Update launcher 2016-04-22 16:54:34 +02:00
Alexandre Archambault 926cd12937 Set version to 1.0.0-SNAPSHOT 2016-04-22 16:50:50 +02:00
Alexandre Archambault 5691c0e5ea
Set version to 1.0.0-M11-1 2016-04-22 16:46:30 +02:00
Alexandre Archambault 114c9331fa Merge pull request #240 from alexarchambault/topic/classloader-isolation-proguard
Isolate coursier from the launched app even if coursier is proguarded
2016-04-22 16:22:57 +02:00
Alexandre Archambault 7266e8c025
Isolate coursier from the launched app even if coursier is proguarded
Confuses scala.util.Properties.versionNumberString from the launched app
in particular - apps launched with scala 2.11.7 end up with this method
returning 2.11.8...
2016-04-22 16:07:54 +02:00
Jameel Al-Aziz 4d3f9e2041
Add cross version support with excludeDependencies 2016-04-22 03:05:03 -07:00
Alexandre Archambault d2984cc51b
Update description in notes 2016-04-20 16:21:55 +02:00
Alexandre Archambault d332264c6c
Add release notes for 1.0.0-M11 2016-04-20 16:21:49 +02:00
eugene yokota 33208eae79 Merge pull request #38 from gkossakowski/scripted-logging
Scripted logger logs everything
2016-04-19 16:47:38 -04:00
Alexandre Archambault ed631ca8b2
Updates for 1.0.0-M11 2016-04-19 22:13:21 +02:00
Alexandre Archambault 5b2f74c4eb Merge pull request #234 from joriscode/master
Fix single typo in README.md
2016-04-19 19:33:36 +02:00
joriscode 7c801cc89b Fix single typo in README.md 2016-04-19 10:10:52 +02:00
Alexandre Archambault 5cc0ddd8f9
Set version to 1.0.0-SNAPSHOT 2016-04-19 00:46:37 +02:00
Alexandre Archambault f19fe6fdf7 Set version to 1.0.0-M11 2016-04-18 09:52:16 +02:00
Alexandre Archambault 3aa76db277 Merge pull request #230 from alexarchambault/topic/hack
Temporary hack
2016-04-18 02:04:06 +02:00
Alexandre Archambault e5be2c4c2c
Temporary hack
to minimize the chance of two different Artifact to have the same URL -
these are handled well by the cache if the corresponding URL has not
been downloaded yet, and result in one download locking the file for the
others
2016-04-18 00:29:45 +02:00
Alexandre Archambault 51fefe5c29 Merge pull request #229 from alexarchambault/topic/extra-repos
Extra repos aliases, minor other things
2016-04-17 23:33:55 +02:00
Alexandre Archambault 241cf866a0
Switch to case-app 1.0.0-RC2, remove the need for two -- ...
...to specify user arguments with the launch command
2016-04-17 22:24:39 +02:00
Alexandre Archambault bbe9ec5a21
Minor adjustment of build config 2016-04-17 22:24:31 +02:00
Alexandre Archambault 5f6caefff6
Add support for shorter syntax for Typesafe and Bintray repositories 2016-04-17 22:24:28 +02:00
Alexandre Archambault 00aaf8e1ac
Factor default Ivy pattern 2016-04-17 22:24:26 +02:00
Alexandre Archambault 4f423e95d6 Merge pull request #228 from alexarchambault/topic/proguard-fix
Fix
2016-04-17 21:47:21 +02:00
Alexandre Archambault b5b7f7714f
Fix
Have IsolatedClassLoader get preserved by proguard (1.0.0-M10 regression)
2016-04-17 20:44:36 +02:00
Alexandre Archambault 15d2afb264 Merge pull request #227 from alexarchambault/topic/plugin-minor-fix
Small fix
2016-04-16 18:15:58 +02:00
Alexandre Archambault 5dac114ba4
Small fix
Should make updateSbtClassifiers not fail if some javadoc or source JARs
cannot be found.
2016-04-16 15:16:52 +02:00
Alexandre Archambault 258a4a5ce2 Merge pull request #225 from alexarchambault/topic/fix-bootstrap
Put back bootstrap.jar in proguarded launcher
2016-04-13 09:51:25 +02:00
Alexandre Archambault 6ac53946ab
Put back bootstrap.jar in proguarded launcher 2016-04-13 00:34:26 +02:00
Alexandre Archambault 14682fc703
Cleaning 2016-04-13 00:34:19 +02:00
Grzegorz Kossakowski 479546fd4c Merge pull request #37 from gkossakowski/scripted-tests-order
Run scripted tests in the alphabetical order
2016-04-12 20:16:51 +02:00
Grzegorz Kossakowski 9f9ac3a9cc Scripted logger logs everything
Do not filter any logging in scripted logger by setting the log level to
Debug.
The caller of ScriptedRunner passes a logger and decides the level of
logging it wants to receive. Scripted shouldn't filter anything.
2016-04-12 20:14:10 +02:00
Alexandre Archambault 903a4b119e Merge pull request #224 from alexarchambault/topic/updates
Various updates (README mostly)
2016-04-11 12:18:45 +02:00
Alexandre Archambault 96ba7c72d6
Switch to case-app 1.0.0-RC1 2016-04-11 01:53:00 +02:00
Alexandre Archambault 28ec3bac03
Add Scala doc badge to README 2016-04-11 01:49:15 +02:00
Alexandre Archambault f27f67c3de
Add @paulp's demo to README 2016-04-11 01:49:08 +02:00
Alexandre Archambault 756f2740f7
Minor clarification of README sections 2016-04-11 01:49:06 +02:00