Commit Graph

1507 Commits

Author SHA1 Message Date
Dale Wijnand 02c2ab5203 Use IO.getModified over importing the method 2017-12-15 14:06:16 -05:00
Antonio Cunei 41980634a4 Moved Milli._ to IO. 2017-12-15 14:06:16 -05:00
Antonio Cunei 340f1684c2 Temporary workaround to FileNotFoundException in RichUpdateReport() 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 858f918a19
Merge pull request #188 from eed3si9n/wip/semantic
Fix false positive on sbt 1.x module eviction warnings
2017-11-29 20:10:36 -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 1ad2ff9295
Merge pull request #186 from sbt/1.0.x
Merge 1.0.x
2017-11-29 00:31:41 -05:00
eugene yokota 3c430d00cf
Merge pull request #185 from eed3si9n/wip/formatting_issue
Formatting
2017-11-24 20:49:17 -05:00
Eugene Yokota df177ff56e Formatting 2017-11-24 20:16:36 -05:00
eugene yokota a8b53a23be
Merge pull request #184 from eed3si9n/wip/bump_util
Bump IO and Util
2017-11-24 17:26:27 -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
Eugene Yokota 7f3954d8bb Bump IO and Util 2017-11-24 17:14:46 -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
Dale Wijnand 9e0d9dd775
Merge pull request #182 from dwijnand/ivy
Bump to latest Ivy
2017-11-15 16:08:05 +00:00
Dale Wijnand f4241c4d65
Bump to latest Ivy
Includes sbt/ivy#27 which fixes a JDK 9 issue.
Similar to PR sbt/launcher#46.
2017-11-15 15:58:29 +00:00
Dale Wijnand 163e8bff82
Merge pull request #181 from xuwei-k/java-9
add Java 9 test
2017-11-13 08:09:23 +00:00
xuwei-k bbbb300ba1 add Java 9 test 2017-11-13 16:19:00 +09:00
Dale Wijnand 19054834b7
Merge pull request #179 from xuwei-k/issue-178
fix incorrect eviction warning message
2017-11-06 08:46:24 +00:00
xuwei-k a385a13fa5 fix incorrect eviction warning message 2017-11-02 15:10:05 +09:00
Eugene Yokota ac583b43c9 Fix JavaNetAuthenticator with null check
Fixes sbt/sbt#3519
2017-10-26 18:02:25 -04:00
eugene yokota ceada887c7 Merge pull request #176 from eed3si9n/wip/bump_ivy
Bump Ivy to 2.3.0-sbt-1b57d3bbc08ecf671169fd548918da18c91f77be
2017-10-25 03:48:44 -04:00
Eugene Yokota dcdbcd4979 Bump Ivy to 2.3.0-sbt-1b57d3bbc08ecf671169fd548918da18c91f77be
Ref https://github.com/sbt/ivy/pull/26
Ref sbt/launcher#38

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 ivy targets JDK 6..

So on JDK < 9 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).
2017-10-24 03:16:17 -04:00
eugene yokota c48047850a Merge pull request #173 from dwijnand/reflect-on-jdk9
On JDK 9 call java.net.Authenticator.getDefault
2017-10-13 21:17:07 -04:00
eugene yokota 91b56c50db Merge pull request #174 from sbt/string-interp
Add a missing string interp
2017-10-13 21:11:28 -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
eugene yokota eda1e773fd Merge pull request #171 from leonardehrenfried/1.x
Add file name to exception message
2017-09-26 18:42:31 -04:00
Leonard Ehrenfried 08fedf787b
Add file name to exception message 2017-09-26 10:43:34 +02:00
eugene yokota bec0466a41 Merge pull request #170 from laughedelic/patch-1
Removed extra slash in the localBasePattern
2017-09-23 18:00:31 -04:00
Alexey Alekhin 364ba9b44b Removed extra slash in the localBasePattern
When the `scala_[scalaVersion]/` segment is present and the `/[branch]` segment isn't, an extra slash appears before `/[revision]`.
2017-09-23 15:20:43 +02:00
eugene yokota 293666f653 Merge pull request #168 from sbt/1.0.x
Merge 1.0.x
2017-09-20 15:22:49 -04: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
eugene yokota 4da187a331 Merge pull request #164 from dpratt/fix-unclosed-inputstream
Remove deprecated OkHTTP OkUrlFactory
2017-09-10 00:47:15 -04:00
eugene yokota 04193716da Merge pull request #165 from Philippus/patch-1
Replace `ivys` and `artifacts` in comments
2017-09-05 12:33:13 -04:00
David Pratt 5d32ec2966 Add deprecation annotations. 2017-09-04 16:57:13 -05:00
David Pratt 204f0dcd6c Filter spurious mima errors. 2017-09-04 16:48:56 -05:00
Philippus Baalman d976980af2 Replace `ivys` and `artifacts` in comments
The `ivys` and `artifacts` methods are not available anymore, now referring to `withPatterns`
2017-09-04 15:46:39 +02: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
eugene yokota 6fc7bc6dc9 Merge pull request #163 from eed3si9n/wip/use_sbt1
Use sbt 1.0.0
2017-08-26 15:03:19 -04:00
eugene yokota 0ae5f5df9e Merge pull request #162 from pvlugter/cached-resolution-plugin-cross-build
Include sbt plugin extra attributes in cached resolution
2017-08-26 14:26:19 -04:00
Eugene Yokota 03b531ca1e Use sbt 1.0.0 2017-08-26 13:42:11 -04:00
Peter Vlugter 437165eeb5 Include sbt plugin extra attributes in cached resolution 2017-08-16 11:27:26 +12:00
Dale Wijnand 9abaa9f740 Merge pull request #160 from dwijnand/scalafmt
Scalafmt 1.2.0
2017-08-14 16:58:41 +01:00
Dale Wijnand df108f7c78
Scalafmt 1.2.0 2017-08-14 15:29:06 +01:00
Dale Wijnand e91e5c9e77 Merge pull request #153 from dwijnand/UpdateReport.toString-2
Make sure UpdateReport has a nice toString^2
2017-08-10 16:41:34 +01:00
Dale Wijnand 480a1a366d Merge pull request #158 from dwijnand/scalafmt
Add back, re-configure & re-enable Scalafmt
2017-08-10 16:05:23 +01:00
Dale Wijnand 63e63f05fa
Add back, re-configure & re-enable Scalafmt 2017-08-10 12:04:58 +01:00
Dale Wijnand b7c6c64fca Merge pull request #157 from dwijnand/merge-1.0.0
Merge 1.0.0 into 1.x
2017-08-10 11:46:39 +01:00