Commit Graph

17940 Commits

Author SHA1 Message Date
Alexandre Archambault ce8fb17fd1 Remove sbt-release plugin 2016-01-27 11:45:36 +01:00
Alexandre Archambault d322745ea1 Add support for user-specified exclusions from CLI 2016-01-27 11:33:14 +01:00
Alexandre Archambault 0b5316fa52 Cleaning 2016-01-27 11:33:13 +01:00
Alexandre Archambault c9c6b39e49 Merge pull request #124 from alexarchambault/develop
Latest developments
2016-01-27 11:14:46 +01:00
Alexandre Archambault a9b205e741 Remove JDK 7 CI jobs 2016-01-26 18:16:55 +01:00
Alexandre Archambault 4299b83d8e Merge pull request #125 from alexarchambault/topic/proguard
Add standalone proguarded launcher
2016-01-26 18:16:15 +01:00
Alexandre Archambault 3d1beadea9 Slightly better error printing 2016-01-26 18:14:21 +01:00
Alexandre Archambault 8b2f3fcc04 Better error message on 404 Not Found
Fixes https://github.com/alexarchambault/coursier/issues/111
2016-01-26 18:14:21 +01:00
Alexandre Archambault 22fd372b0e Print exclusions in output
Fixes https://github.com/alexarchambault/coursier/issues/118
2016-01-26 18:14:20 +01:00
Alexandre Archambault 7330494873 Add support for Ivy latest revision syntax
Like 2.2.+ for [2.2.0,2.3.0)

Fixes https://github.com/alexarchambault/coursier/issues/104
2016-01-26 18:14:20 +01:00
Alexandre Archambault 061dbe2f91 Slightly different indentation in output 2016-01-26 18:14:20 +01:00
Alexandre Archambault bf7386a218 Print results of the resolution command on stdout and unindented
For easier piping to other processes
2016-01-26 18:14:20 +01:00
Alexandre Archambault a254b9c21c Add support for parent project POM properties
Fixes https://github.com/alexarchambault/coursier/issues/120
2016-01-26 18:14:20 +01:00
Alexandre Archambault e74984da5d Minor fix in tests 2016-01-26 18:14:20 +01:00
Alexandre Archambault 08312b9c2e Catch NoSuchMethodExceptions in launcher
Fixes https://github.com/alexarchambault/coursier/issues/76
2016-01-26 18:14:20 +01:00
Alexandre Archambault 58e6375c33 Add support for standalone launchers in bootstrap command 2016-01-26 18:14:20 +01:00
Alexandre Archambault 63d0d7d1c3 Fix help message 2016-01-26 18:14:20 +01:00
Alexandre Archambault 92e5917af6 Simplify ClassLoader isolation in launch command
No more SBT-inspired ClasspathFilter. It now just tries to find the ClassLoader that loaded coursier, and use the parent as a base to load the launched application.

Allows to remove the -b option of the bootstrap command, and remove BaseCommand (that was holding options common to all commands).
2016-01-26 18:14:20 +01:00
Alexandre Archambault 3e9a37edc3 Do not fetch artifacts with a classifier from Ivy repositories if not
asked to do so
2016-01-26 18:14:20 +01:00
Alexandre Archambault a45a70e8ef Switch to case-app 1.0.0-M2
Using shapeless.compat.Strict instead of shapeless.Lazy, that generates
less auxiliary classes
2016-01-26 16:56:31 +01:00
Martin Duhem 9bc50e558e Use scripted engine from sbt/util 2016-01-26 14:51:14 +01:00
Martin Duhem 149122ab4d Hide stacktrace upon failure on pending scripted test 2016-01-25 14:48:06 +01:00
Eugene Yokota cf0fef5a85 Inter-project dependency tracking. Fixes #2266
Adds `trackInternalDependencies` and `exportToInternal` settings. These
can be used to control whether to trigger compilation of a dependent
subprojects when you call `compile`. Both keys will take one of three
values: `TrackLevel.NoTracking`, `TrackLevel.TrackIfMissing`, and
`TrackLevel.TrackAlways`. By default they are both set to
`TrackLevel.TrackAlways`.

When `trackInternalDependencies` is set to `TrackLevel.TrackIfMissing`,
sbt will no longer try to compile internal (inter-project) dependencies
automatically, unless there are no `*.class` files (or JAR file when
`exportJars` is `true`) in the output directory. When the setting is
set to `TrackLevel.NoTracking`, the compilation of internal
dependencies will be skipped. Note that the classpath will still be
appended, and dependency graph will still show them as dependencies.
The motivation is to save the I/O overhead of checking for the changes
on a build with many subprojects during development. Here's how to set
all subprojects to `TrackIfMissing`.

    lazy val root = (project in file(".")).
      aggregate(....).
      settings(
        inThisBuild(Seq(
          trackInternalDependencies := TrackLevel.TrackIfMissing,
          exportJars := true
        ))
      )

The `exportToInternal` setting allows the dependee subprojects to opt
out of the internal tracking, which might be useful if you want to
track most subprojects except for a few. The intersection of the
`trackInternalDependencies` and `exportToInternal` settings will be
used to determine the actual track level. Here's an example to opt-out
one project:

    lazy val dontTrackMe = (project in file("dontTrackMe")).
      settings(
        exportToInternal := TrackLevel.NoTracking
      )
2016-01-25 13:56:17 +01:00
Eugene Yokota 8f88a35922 Adds CompatibilityWarningOptions. Fixes #2347
This addresses 0.13.10 regression, which currently warns users about
Maven incompatibility on a private configuration. This adds a config
class so the build user can control the level of the warning as well as
the target configuration to be monitored.
By default, we are only going to look at `Compile` and `Runtime`.
2016-01-25 12:11:56 +01:00
Alexandre Archambault e501b32f86 Add standalone proguarded launcher 2016-01-23 15:45:17 +01:00
eugene yokota 56666016e0 Merge pull request #101 from sbt/wip/99
Handle SBT_OPTS
2016-01-22 14:14:07 -05:00
Eugene Yokota cd57c59372 Workaround for travis-ci/travis-ci#5227 2016-01-21 23:43:17 -05:00
Eugene Yokota 40167af167 Handle SBT_OPTS
Fixes sbt/sbt-launcher-package#99 formerly known as sbt/sbt#2194.
get_mem_opts() is a bash function that generates memory related
options. This change makes it return `""` the SBT_OPTS variable
contains memory-related options already.
2016-01-21 23:26:25 -05:00
Alexandre Archambault 520fad9b46 Merge pull request #122 from alexarchambault/topic/update-plugin-version
Switch to coursier-sbt-plugin 1.0.0-M4
2016-01-20 22:52:44 +01:00
Dale Wijnand 91093b32dd Merge pull request #2403 from timcharper/1.0.x
Forward port pull request #2399 to 1.0.x
2016-01-19 06:41:17 +00:00
Tim Harper 2eda2ebd46 bugfix - apply autoImports for global plugins at global configuration stage
Previously, the autoimports for globally defined plugins were not
imported for global configuration files, although they were imported for
project configuration files.

This patch causes an additional plugin discovery phase to happen during
global config evaluation, so that auto-plugins can be detected and their
imports subsequently included.
2016-01-18 21:43:32 -07:00
Tim Harper 96eadfc3dd add notes on running tests 2016-01-18 21:42:06 -07:00
Tim Harper bbccbc83d3 Amend contributing build instructions to help solve potential build problems 2016-01-18 21:41:49 -07:00
Dale Wijnand 4f2729c0b0 Merge pull request #16 from dwijnand/travis-jdks
Travis JDKs
2016-01-18 07:29:59 +00:00
Dale Wijnand fa7776215b Merge pull request #2387 from dwijnand/update-1.0.x-readme
Update README with 1.0.x
2016-01-17 23:47:15 +00:00
Dale Wijnand 1c103d5eef Merge pull request #2396 from dwijnand/fport/rename-travis-matrix-var
Make the intent of the env variable clearer in travis configuration.
2016-01-17 23:20:33 +00:00
Dale Wijnand 77a1e5d871 Target Oracle JDK 7 & 8 in Travis 2016-01-17 22:17:54 +00:00
Dale Wijnand 3649f5ba70 Update README with 1.0.x 2016-01-17 21:28:32 +00:00
Dale Wijnand fc9b59b8a4 Merge pull request #2392 from dwijnand/fport/drop-scala-override-in-some-scripted-tests
FPORT: Upgrade Scala version in scripted tests
2016-01-17 21:25:22 +00:00
Dale Wijnand d017e2603e Merge pull request #21 from dwijnand/move-CompatibilityWarning
Move CompatibilityWarning to sbt.internal.librarymanagement
2016-01-17 21:22:27 +00:00
Grzegorz Kossakowski 8f8740d309 Make the intent of the env variable clearer in travis configuration.
Cherry-pick from e738bc3f73.
2016-01-17 21:21:23 +00:00
Dale Wijnand ffcec2fa35 Commit auto-formatted code 2016-01-17 21:12:36 +00:00
Dale Wijnand 0a8402a8a9 Add missing imports 2016-01-17 21:12:27 +00:00
Alexandre Archambault b248524e65 Switch to coursier-sbt-plugin 1.0.0-M4 2016-01-17 21:52:30 +01:00
Alexandre Archambault d86702e74e Merge pull request #121 from alexarchambault/topic/update-readme
Update readme
2016-01-17 21:25:37 +01:00
Dale Wijnand d693d0cde9 Move CompatibilityWarning to sbt.internal.librarymanagement 2016-01-17 19:58:57 +00:00
eugene yokota 598ac3c34c Merge pull request #20 from dwijnand/fport/refix-snapshots
FPORT: Refix snapshots
2016-01-17 14:08:08 -05:00
eugene yokota 1c4e67fda7 Merge pull request #19 from dwijnand/fport/maven-compatibility-changes
FPORT: Maven compatibility changes (intransitive warnings and "configuration not public")
2016-01-17 14:07:56 -05:00
eugene yokota 7d7787bd83 Merge pull request #18 from dwijnand/fport/make-sbt-dotty-aware
FPORT: Make sbt aware of Dotty
2016-01-17 14:07:31 -05:00
Eugene Yokota 660d66ef1f Bump up ivy to 2.3.0-sbt-2cc8d2761242b072cedb0a04cb39435c4fa24f9a 2016-01-17 18:53:42 +00:00