Commit Graph

344 Commits

Author SHA1 Message Date
0lejk4 a4e5a2e299 leave scheme unchanged for binary compatibility but don`t render email tag if it is null or empty 2019-03-17 11:32:52 +02:00
0lejk4 0878b9db14 make Developer email optional as it is not obligatory and some people don`t want to expose it 2019-03-14 00:10:26 +02:00
bigwheel c1a93c65b7 [Fix #287] Eviction warning summary shows only binary incompatible 2019-01-10 22:24:11 +09:00
Eugene Yokota 29183f2fad Use fixed thread pool
Fixes #274

In #249 parallel download switched to using its own thread pool.
It could potentially lead to unbounded download if nobody throttled.
This works around the issue by fixing the number of thread to 6, which is a common per-host max connection count.
2018-11-01 02:27:19 -04:00
Dale Wijnand 0eadc6a6cb Drop trailing commas.. 2018-10-18 14:11:04 -04:00
Dale Wijnand 58bfe85f42 Collapse eviction warnings
Rather than

    [warn] There may be incompatibilities among your library dependencies.
    [warn] Run 'evicted' to see detailed eviction warnings
    [info] Done updating.
    [warn] There may be incompatibilities among your library dependencies.
    [warn] Run 'evicted' to see detailed eviction warnings
    [info] Done updating.
    [warn] There may be incompatibilities among your library dependencies.
    [warn] Run 'evicted' to see detailed eviction warnings
    [info] Done updating.
    [warn] There may be incompatibilities among your library dependencies.
    [warn] Run 'evicted' to see detailed eviction warnings

I would get:

    [warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings
    [info] Done updating.
    [warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings
    [info] Done updating.
    [warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings
    [info] Done updating.
    [warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings

which is a touch better. (IMO!)
2018-10-18 14:10:59 -04:00
Eugene Yokota f1a99e5e4a Fix the contains issue
Fixes https://github.com/sbt/librarymanagement/issues/259
2018-10-15 03:02:53 -04:00
Eugene Yokota b0ea8ec55f Scala 2.12.7 2018-09-28 04:50:55 -04:00
Eugene Yokota 949b5ec4ba Merge branch '1.2.x' into wip/merge-1.2.x 2018-09-28 04:33:26 -04:00
Eugene Yokota 02475c7a66 -Xfatal-warnings 2018-09-21 01:16:55 -04:00
Philippus Baalman 081ca94e61
Fix typo 2018-08-28 16:25:27 +02:00
Eugene Yokota f353de243e Fixes destination file exists error message
Fixes sbt/sbt#3431
Fixes sbt/sbt#4275

https://github.com/sbt/librarymanagement/pull/171 attempted to fix the error message previously, but it was not handling the common cases where the put is delegated to `super.put(...)`.
2018-07-29 14:50:39 -04:00
Eugene Yokota 22a4eed65f Default eviction warning to summary 2018-07-01 02:10:41 -04:00
Eugene Yokota 18380d5d4d Merge branch '1.1.x' into wip/merge-1.1.x 2018-06-26 19:22:54 -04:00
OlegYch a8d5db4fb6 fixes https://github.com/sbt/sbt/issues/4224
blocking+global ec+par collections leads to a significant performance regression, offload downloading to a separate threadpool
2018-06-26 00:28:34 +03:00
Alex Khvatov 660e6fb710
Fix for #4157
see discussion https://github.com/sbt/sbt/issues/4157
2018-06-19 14:47:48 -04:00
eugene yokota ff16f3b39e
Merge pull request #245 from eed3si9n/wip/offline
Fix flaky OfflineModeSpec
2018-06-18 04:46:03 -04:00
Peter Neyens 3b9385dfc5 Set Gigahorse readTimeout to 1 hour 2018-06-16 13:19:32 +01:00
Eugene Yokota 2b4aa3973d Fix flaky OfflineModeSpec
Fixes https://github.com/sbt/librarymanagement/issues/229

OfflineModeSpec is failing often because it asserts that the offline resolution needs to happen within 30% of the original resolution, and I guess it really depends on the weather how much portion of it spends on resolution.
2018-06-14 03:16:49 -04:00
Eugene Yokota c0a0b7db0c Merge branch '1.1.x' into wip/merge-1.1.x 2018-06-14 01:42:01 -04:00
Dale Wijnand f2f14582b1
Merge pull request #177 from eed3si9n/wip/npe_workaround
Fix OkHttp JavaNetAuthenticator with null check
2018-06-01 22:28:21 +01:00
eugene yokota e8b6bdc15b
Merge pull request #235 from OlegYch/fix-sftp
Fix sftp
2018-05-27 19:37:09 -04:00
tanishiking24 c24ab5c4ee Enable sbt to specify config.resource without disabling gigahorse
Fix https://github.com/sbt/sbt/issues/3585.
Gigahorse.config tries to load specified config file in sbt's classpath
and of course fail to find the specified config file, and throw
java.io.IOException if we specify config.resource, because

We can avoid trying to load specified config file inside sbt by
avoid using Gigahorse.config that call `ConfigFactory.load()` inside.

This commit fixes librarymanagement not to use Gigahorse.config and make
it use gigahorse.Config() which returns gigahorse's default config
without calling `ConfigFactory.load()` instead.
2018-05-17 10:46:21 +09:00
Håkon Wold 9a002fb549 Fixes 4156 2018-05-15 13:22:38 +02:00
xuwei-k 4d3818f9f7 use foldLeft instead of /:
02776afa79/src/library/scala/collection/IterableOnce.scala (L465)
2018-05-03 23:03:44 +09:00
OlegYch bbb2ef3977 fix retrieving deps via sftp resolver 2018-04-11 22:23:16 +03:00
Eugene Yokota 1073513b49 Merge branch '1.1.x' into wip/merge-1.1.x 2018-03-27 06:19:28 -04:00
Eugene Yokota a29a12054a bump contraband to 0.4.0
Ref https://github.com/sbt/contraband/issues/119
2018-03-23 22:21:05 +09:00
IanGabes 7770fa64e9 Adds null check for 'sbt.managedChecksums' in ivySettings file
Fixes #195
2018-03-18 17:06:51 +09:00
Dale Wijnand 866b0a1d3f
Upgrade to contraband 0.3.3 2018-03-09 12:54:15 +00:00
Dennis Hörsch 245997c84e
Added test for wildcards in org and name 2018-03-06 13:48:42 +00:00
Dennis Hoersch c9e4ace8de
allow wildcards in groupId or artifactId
According to https://maven.apache.org/pom.html#Exclusions (and https://maven.apache.org/docs/3.2.1/release-notes.html) wildcards are allowed in Maven POM's schema
2018-03-06 13:48:41 +00:00
Ståle Undheim 42e23e54ff
Fix to issue #180 to handle null contentType
If the content type is null, the call for .toString on it will cause an NPE. This fixes this issue by wrapping the call in an Option, then mapping toString or falling back to null. getCharSetFromContentType handles null by returning ISO-8859-1
2018-02-24 00:25:34 +01:00
exoego 091edf6ea1 Add a new eviction warning summary to decide whether or not to warn eviction summary. 2018-02-15 22:06:55 +09:00
Dale Wijnand 60b9c7dacb
Remove a bunch of compilation warnings 2018-02-15 09:26:13 +00:00
Dale Wijnand fce6d46bf3
Merge branch '1.1.x' into merge-1.1.x-into-1.x
* 1.1.x:
  Update version/mimaPreviousArtifacts/sbt.version
  clarify intent
  avoid deadlocks on spotty connections, fix https://github.com/sbt/sbt/issues/3738
  Add version 1.1.2 to mimaPreviousArtifacts
2018-02-14 11:02:29 +00:00
OlegYch d267b6fda5
clarify intent 2018-01-18 15:43:18 +00:00
OlegYch 86c59d8f72
avoid deadlocks on spotty connections, fix https://github.com/sbt/sbt/issues/3738 2018-01-18 15:43:18 +00:00
Dale Wijnand 79c7483982
Merge pull request #202 from eed3si9n/wip/tests
Reorganize existing tests
2018-01-15 14:57:26 +00:00
Stephen Nancekivell 375333144c Add a warning for resolver access denied errors. 2018-01-14 19:19:20 +11:00
Eugene Yokota c0ac7061db Reorganize existing tests 2018-01-12 23:10:15 -05:00
Antonio Cunei 72dd0064c3 Change modifiedTime definitions 2017-12-22 00:55:24 +01:00
Antonio Cunei 42f23e62aa Revert *ModifiedTime() calls to *lastModified*() calls
There are just too many instances in which sbt's code relies on
the `lastModified`/`setLastModified` semantics, so instead of moving
to `get`/`setModifiedTime`, we use new IO calls that offer the new
timestamp precision, but retain the old semantics.
2017-12-22 00:27:30 +01:00
Antonio Cunei 41980634a4 Moved Milli._ to IO. 2017-12-15 14:06:16 -05:00
Antonio Cunei ca2617e99e Convert lastModified/setLastModified calls to sbt.io.Milli calls (more precise) 2017-12-15 14:06:16 -05:00
Eugene Yokota 9c1566dfa1 Fix false positive on sbt 1.x module eviction warnings
Fixes #187
2017-11-29 20:02:37 -05:00
Eugene Yokota df177ff56e Formatting 2017-11-24 20:16:36 -05:00
eugene yokota 50d024ac60
Merge pull request #183 from tpunder/fm-sbt-s3-resolver-conflict-fix
Be friendly to SBT plugins that also use URLHandlerRegistry.setDefault
2017-11-24 17:26:09 -05:00
Tim Underwood 8330d16431 Be friendly to SBT plugins that also use URLHandlerRegistry.setDefault
Other plugins (for example: https://github.com/frugalmechanic/fm-sbt-s3-resolver)
also make use of the URLHandlerRegistry.setDefault mechanism to register handlers
for other protocols (e.g. "s3").  This change makes it so that SBT will only
register the http/https protocols and will preserve any other protocol handlers
that have already been registered.
2017-11-22 10:50:19 -08:00
xuwei-k a385a13fa5 fix incorrect eviction warning message 2017-11-02 15:10:05 +09:00