Commit Graph

308 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
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
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 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
Peter Neyens 3b9385dfc5 Set Gigahorse readTimeout to 1 hour 2018-06-16 13:19:32 +01: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 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
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
Stephen Nancekivell 375333144c Add a warning for resolver access denied errors. 2018-01-14 19:19:20 +11: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 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
Eugene Yokota ac583b43c9 Fix JavaNetAuthenticator with null check
Fixes sbt/sbt#3519
2017-10-26 18:02:25 -04:00
Dale Wijnand fd0d538511
On JDK 9 call java.net.Authenticator.getDefault
JDK 9 complains when java.lang.reflect.Field#setAccessible is called.
So on JDK 9 to get the default Authenticator on JDK you can just call
Authenticator.getDefault(). However lm targets JDK 8..

So on JDK 8 we do what we've always done, and on JDK 9 we use java
reflection to call Authenticator.getDefault(), which is public and
doesn't require setAccessible(true).

Fixes #169
2017-10-13 15:16:08 +01:00
Dale Wijnand 340b4ab9ec Add a missing string interp
Fixes sbt/sbt#3637
2017-10-13 15:00:38 +01:00
Leonard Ehrenfried 08fedf787b
Add file name to exception message 2017-09-26 10:43:34 +02:00
eugene yokota cb6428f9f2 Merge pull request #167 from cunei/wip-gigahorseflag
Add flag sbt.gigahorse.enabled, to optionally disable Gigahorse
2017-09-16 01:14:25 -04:00
eugene yokota 0630b43374 Updated the flag to sbt.gigahorse 2017-09-16 01:07:35 -04:00
Antonio Cunei b480c9c65b Add flag sbt.gigahorse.enabled, to optionally disable Gigahorse. Default is true. 2017-09-14 16:07:02 +02:00
David Pratt 5d32ec2966 Add deprecation annotations. 2017-09-04 16:57:13 -05:00
David Pratt 399a511f9c Remove deprecated OkHTTP OkUrlFactory
- Replace usage of OkUrlFactory with just direct calls to the OkHTTP
API. This allows us to ensure that connections get properly closed, and
provides finer-grained internal control of how we make http requests.

- Ensure that exceptions/error status codes don't cause leaked or
hanging connections. Previously, a 404 on an artifact download would
cause the underlying OkHTTP client to keep the request and connection
open. This has the effect of wasting resources, but also slowing down
overall download/resolution time to non-pipelined HTTP servers.
2017-09-03 15:30:57 -05:00
Peter Vlugter 437165eeb5 Include sbt plugin extra attributes in cached resolution 2017-08-16 11:27:26 +12:00
Dale Wijnand df108f7c78
Scalafmt 1.2.0 2017-08-14 15:29:06 +01:00
Dale Wijnand 63e63f05fa
Add back, re-configure & re-enable Scalafmt 2017-08-10 12:04:58 +01:00