Commit Graph

17940 Commits

Author SHA1 Message Date
Yi Cheng 76768c3479
Remove redundant test (#788)
Forgot to do so in #769 `CliIntegrationTest.scala` was split into `CliFetchIntegrationTest.scala` and `CliBootstrapIntegrationTest.scala`
2018-02-24 01:05:51 -08: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 44a2f1d92c
Kill utilTesting
No need for a 1-line, 1-class jar
2018-02-23 18:16:30 +00:00
Dale Wijnand 27fe5a6957
Re-write toolboxClasspath to use sbt-buildinfo 2018-02-23 13:20:19 +00:00
Dale Wijnand 8182741480
Cleanup generateToolboxClasspath 2018-02-23 13:19:07 +00:00
Dale Wijnand edb828a8d7
Upgrade to sbt-buildinfo 0.8.0 2018-02-23 13:19:05 +00:00
Dale Wijnand c7cc52092e
Fix how fullClasspath is defined in TestBuildInfo 2018-02-23 13:17:51 +00:00
Alexandre Archambault 834fbd598a
Merge pull request #781 from coursier/topic/less-scalaz
Use less things from scalaz
2018-02-23 11:14:19 +01:00
Jason Zaugg 4f2933d364 Cache the hashCode of Configuration
I noticed this was showing up in profiles when SBT's task engine
was using Keys, etc (that contain Configurations) in HashMap's.

Let's cache it instead. I don't think there is a need to use a lazy
val for this, we can compute it eagerly.
2018-02-23 14:58:00 +10:00
Jason Zaugg d9b130d519 Optimize ConsoleAppender.appendLog 2018-02-23 14:52:45 +10:00
Alexandre Archambault ee4a860d7e Add links to README of latest release 2018-02-22 18:20:34 +01:00
Alexandre Archambault 1816b25b84 Stop using scalaz.{EitherT, \/}
Use scala.Either instead of \/

Use the custom coursier.util.EitherT instead of scalaz.EitherT
2018-02-22 18:20:34 +01:00
Alexandre Archambault 0123a377e2 Bump version, remove 1.0.x mima checks 2018-02-22 18:17:10 +01:00
Dorothy Ordogh 3e4a65d5ee Add ability to fetch artifact with a given url (#774)
* changes

* changes to Attributes

* make changes

* add test and fix bug

* add more tests

* fix failing tests

* fix parentheses

* remove comments I added and add test that's guarenteed not to exist in a repo

* remove Attributes third parameter and refactor Parse's moduleVersionConfig to return a tuple of Dependency and a Map of String to String representing extra parameters for the dependency

* update some return types and methods in the Helper class

* return FallbackDependenciesRepository back to original state

* refactor helper

* remove url from attributes

* fix tests and add cache to extra in build.sbt

* remove FallbackDepsRepo from sbt-coursier

* add variable for url and call encode in tests

* update tests and helper to have proper behavior

* remove setting deps to intransitive when url is present and add two tests

* add more tests, implement @wisechengyi's comments

* fix nits

* update ParseTests because some failed

* fix tests

* incorporate feedback from @alexarchambault and @wisechengyi

* update ParseTests to check for returned error vs thrown error

* remove one test that is covered in ParseTests

* fix nits

* add back deleted brackets

* return errors in Left without using return statement

* revert change because it's broken

* fix some positional things

* add return statement or else error won't be processed

* fix nits. thanks @wisechengyi

* Remove return statements
2018-02-22 18:06:06 +01:00
xuwei-k c1e0785a1f
delete buildinfo.BuildInfo from sbt main
sbt-buildinfo plugin have `buildInfoScopedSettings(Compile)` in default.
I think it is unnecessary. or we should set "buildinfoPackage in Compile" and "buildinfoObject in Compile"

https://github.com/sbt/sbt-buildinfo/blob/v0.7.0/src/main/scala/sbtbuildinfo/BuildInfoPlugin.scala#L11
2018-02-22 16:46:58 +00:00
Alexandre Archambault a66a7753df
Update contributors section (#786) 2018-02-22 13:32:36 +01:00
exoego 9c53ad3905 Drop "final" modifier from private case classes, to prevent false positive.
Refer https://issues.scala-lang.org/browse/SI-4440
2018-02-22 20:53:03 +09:00
Alexandre Archambault b093c77193 Tweak comment 2018-02-22 11:30:51 +01:00
Alexandre Archambault a1eb069979 Add release notes for 1.0.2 2018-02-22 11:26:52 +01:00
Alexandre Archambault 834f59b465 Add release notes for 1.0.1 2018-02-22 10:58:35 +01:00
eugene yokota e078c126d1
Merge pull request #3964 from sbt/1.1.x
1.1.x
2018-02-21 15:12:44 -05:00
eugene yokota 9a5b7bcf6d
Merge pull request #3960 from eed3si9n/wip/contributing
update CONTRIBUTING
2018-02-21 15:09:09 -05:00
Eugene Yokota 0e1823d730 cleanCache 2018-02-21 15:08:10 -05:00
Alexandre Archambault 4adf65f7e9
Automatically initialize git submodules if necessary (#785) 2018-02-21 11:26:16 +01:00
Eugene Yokota 594738bb9c add publishLocalAllModule command 2018-02-21 02:28:33 -05:00
Eugene Yokota 72f3289b55 update CONTRIBUTING
Fixes #3950
2018-02-21 00:25:47 -05:00
Alexandre Archambault 8388999aa8
Adjust README TOC (#784)
GitHub conventions seem to have changed (see discussion
around https://twitter.com/alxarchambault/status/965519451419545600)
2018-02-20 15:05:55 +01:00
Dale Wijnand c9f3a73c3b
Merge pull request #3955 from dwijnand/fix-validID
Fix validID & expand tests
2018-02-19 21:00:30 +00:00
Deokhwan Kim 94b27fcefa Confirm a user's intent if the current dir doesn't look like an sbt dir
Fixes #212
2018-02-19 14:24:18 -05:00
Dale Wijnand fc73203d0b
Fix validID & expand tests
Make sure that we generate valid ID (according to matches(ID, s)) so
that we properly test the new validID implementation.

And that's what led to the bug fix. :)
2018-02-19 18:42:24 +00:00
Dale Wijnand b393631c90
Merge pull request #3952 from jrudolph/jr/speedup-validId
Speedup Parsers.validID
2018-02-19 15:53:41 +00:00
Dale Wijnand d66d0e34a9
Add prop-based test for the validID re-impl 2018-02-19 15:00:21 +00:00
Dale Wijnand 85f7d807e1
Merge pull request #153 from jrudolph/jr/optimize-initStringCodecs
In initStringCodecs avoid reflect universe initialization
2018-02-19 10:11:49 +00:00
Dale Wijnand 311bb7022c
Merge pull request #220 from ForNeVeR/feature/quotes
Fix quotes in sbt.bat
2018-02-19 10:06:55 +00:00
Johannes Rudolph 0ebb7a5662
In initStringCodecs avoid reflect universe initialization
This showed up in profiling. It's known that TypeTags are expensive. Even
more so if the reflect universe is accessed during startup when the
class loading and JIT compiler are busy enough with other stuff.
2018-02-19 09:19:31 +01:00
Johannes Rudolph 9370a2adf0
Speedup Parsers.validID
It turned up in profiling sessions. Previously, it used parser combinators
which are somewhat slow especially when the JVM is still cold.

The grammar for ID is simple enough to afford this handwritten parser.
2018-02-19 09:13:12 +01:00
eugene yokota bde197f2fc
Merge pull request #3951 from jonas/patch-1
Fix typo in the 1.1.1 notes
2018-02-18 04:41:15 -05:00
Jonas Fonseca be43c43783
Fix typo in the 1.1.1 notes 2018-02-17 13:41:00 -05:00
Friedrich von Never 3019b94da0
Fix quotes in sbt.bat 2018-02-17 21:56:09 +07:00
Jason Zaugg b68071a488 Cache evidence params for hot method 2018-02-17 14:59:36 +10:00
exoego f8dbbd85b9 Add mima filter 2018-02-17 10:42:53 +09:00
Dale Wijnand 35072a62b0
Merge pull request #219 from eed3si9n/wip/test-mac
more portable jdk_version function
2018-02-16 09:57:17 +00:00
Eugene Yokota 21cf71e384 more portable jdk_version function
I've reimplemented java version detection as a bash function.
This no longer uses grep.
Also this no longer uses `?` in sed, which doesn't work on macOS.

Fixes https://github.com/sbt/sbt/issues/3873
2018-02-15 23:04:43 -05:00
Eugene Yokota 66b8670c59 Add macOS testing 2018-02-15 23:04:35 -05: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 0d21ae6369
Merge pull request #210 from dwijnand/warnings
Remove a bunch of compilation warnings
2018-02-15 10:26:47 +00:00
Dale Wijnand 60b9c7dacb
Remove a bunch of compilation warnings 2018-02-15 09:26:13 +00:00
Dale Wijnand 42dccdf82c
Merge pull request #209 from dwijnand/lmCommonTest-test-only
Define lmCommonTest as a test-only dependency
2018-02-15 08:26:47 +00:00
Dale Wijnand 06c3d22319
Define lmCommonTest as a test-only dependency 2018-02-15 08:03:41 +00:00
Dale Wijnand 31b42c0e18
Merge pull request #216 from eed3si9n/wip/travis
cross JVM testing
2018-02-15 07:42:28 +00:00