Commit Graph

149 Commits

Author SHA1 Message Date
Eugene Yokota 76452e53ff Drop OkHttp dependency
Ref https://github.com/sbt/sbt/issues/6912

Problem
-------
There's apparently a security issue with OkHttp 3.x,
which I am not really sure how applicable it is to our usage
of OkHttp but it is there.

Solution
--------
Since most of OkHttp-specic usage within LM is for Apache Ivy
downloading, I am going to drop this.
Since `sbt.librarymanagement.Http.http` is a public API,
I am substituting this with Apache HTTP backed implementation.
2022-06-12 22:24:44 -04:00
Eugene Yokota 91bf2649b2 Bump sbt 2022-06-12 22:03:23 -04:00
Eugene Yokota 31db59c825 IO 1.6.0, Util 1.6.0 2021-12-26 01:08:49 -05:00
Eugene Yokota caf47ff5cd Util 1.6.0-RC1 2021-11-29 03:34:25 -05:00
Eugene Yokota 129b43acd2 intern/flyweight ConfigRef
Fixes https://github.com/sbt/sbt/issues/6721

Problem
-------
ConfigRef is among the most created on heap.

Solution
--------
intern/flyweight it.
2021-11-20 19:39:18 -05:00
Eugene Yokota 028724ac23 Bump modules 2021-09-19 15:29:08 -04:00
Matthias Kurz 93b1d2ff92
Scala 2.12.14 / 2.13.6 2021-05-28 17:57:56 +02:00
Eugene Yokota 5269e12e67 Use sbt 1.5.1 2021-05-02 22:18:03 -04:00
Eugene Yokota c43aea5e68 IO 1.5.0, Util 1.5.0 2021-04-03 21:28:51 -04:00
Eugene Yokota 7f6bbafb9b Remove sbt-bintray 2021-03-14 23:57:13 -04:00
Eugene Yokota 12d46e3fce Make ModuleID#cross(...) preserve existing prefix
Fixes https://github.com/sbt/sbt/issues/6280

sbt-platform-deps implements `%%%` operator in https://github.com/portable-scala/sbt-platform-deps/blob/v1.0.0/src/main/scala/org/portablescala/sbtplatformdeps/PlatformDepsBuilders.scala#L36-L43
by setting the prefix field on `sbt.librarymanagement.Binary(...)`.
Currently `.cross(...)` would wipe this out, so `%%%` and `cross(CrossVersion.for3Use2_13)` do not compose.

This changes the implementation of `.cross(...)` so it can be chained
together and it will try to preserve the prefix (and suffix) values from
the existing `crossVersion` values.
This should fix the 2.13-3.x sandwich on Scala.JS and Scala Native.
2021-01-23 15:47:33 -05:00
Eugene Yokota 417a30f8db Update to Scala 2.12.13 + 2.13.4 2021-01-17 04:18:49 -05:00
Adrien Piquerez 2b1806ae25 Add for3Use2_13 and for2_13Use3 2021-01-08 18:25:01 +01:00
Eugene Yokota 5942ccbe1f Add Scala 2.13 support 2021-01-03 00:59:38 -05:00
João Ferreira 65b4130e6b
Update plugins.sbt 2020-12-21 13:47:50 +00:00
Eugene Yokota 2308d0a3a7 Fixes match error when using withDottyCompat
Fixes https://github.com/sbt/sbt/issues/6210

scodec-bits is published with pvp versionScheme (nice), this means that
we should just evaluate the version portion for pvp-ness, but I was
using `guessSecondSegment` that checks for Scala suffix. That's mistake
1.

`guessSecondSegment` assumes that the Scala suffix uses the given
ScalaModuleInfo, but with 2.13-3 sandwich we can't assume this.
In the reported case, Scala module is 3.0.0-M3 but scodec-bits uses
2.13. So that's mistake 2.

This attempts to correct both the mistakes.
1. Instead of `guessSecondSegment`, this adds a simpler `evalPvp`
function.
2. `guessSecondSegment` just looks for `_2.` or `_3` and ignores the
Scala module.
2020-12-19 17:08:24 -05:00
Erwan Queffélec 8b12c2bfa6 Update Ivy to the latest version 2020-11-22 09:41:25 +01:00
Eugene Yokota 349a4134e5 Use Bintray for nightly 2020-11-15 00:58:52 -05:00
Eugene Yokota f8f9ed0c67 Nightly setup 2020-11-14 19:46:04 -05:00
Eugene Yokota f63adb4a8a Util 1.4.0 2020-10-04 12:42:46 -04:00
Eugene Yokota c1dbeca90f Ivy 2.3.0-sbt-839fad1cdc07cf6fc81364d74c323867230432ad 2020-05-28 00:48:36 -04:00
eugene yokota 3b3aa2f495
Merge pull request #331 from eed3si9n/wip/contraband_
Bump Contraband
2020-04-06 18:26:03 -04:00
Eugene Yokota fd71e8cb17 Bump Contraband 2020-04-06 18:15:46 -04:00
Eugene Yokota ab06affe7c Bump util 2020-04-06 18:15:29 -04:00
Eugene Yokota 2d6f102f9a Ivy 2.3.0-sbt-fa726854dd30be842ff9e6d2093df6adfe3871f5
Fixes https://github.com/sbt/sbt/issues/2366
2020-02-22 15:30:26 -05:00
Eugene Yokota e77dc68e34 bump sbt and IO 2019-12-28 16:09:02 -05:00
Eugene Yokota ea9d382b89 add hook for nightly build 2019-12-28 16:04:18 -05:00
Eugene Yokota 6200255eed ivy 2.3.0-sbt-88d6a93d15f9b029958c1c289a8859e8dfe31a19 2019-10-20 11:42:41 -04:00
Eugene Yokota 6807e91edd Scala 2.12.10 2019-10-19 19:59:13 -04:00
Eugene Yokota e0d2455982 sbt 1.3.3 2019-10-19 19:56:19 -04:00
Eugene Yokota 8aeb43fc11 in-source sbt-houserules 2019-10-19 19:53:11 -04:00
Eugene Yokota 4a1b6232e4 deprecate CrossVersion.Disabled 2019-08-22 13:11:10 -04:00
Eugene Yokota 153ac7161d bump modules 2019-08-18 23:56:20 -04:00
Eugene Yokota 8c16fd0edf switch to using scala-verify 2019-08-14 12:32:49 -04:00
Eugene Yokota ef4311acc8 Gigahorse 0.5.0 2019-06-18 23:10:35 -04:00
Eugene Yokota d15b406d14 util 1.3.0-M7 2019-05-13 13:40:52 -04:00
Eugene Yokota 3a0ce65362 IO 1.3.0-M10, and nightly version
Fixes #305
2019-05-11 19:49:04 -04:00
Eugene Yokota 511dafb0e8 sbt 1.3.0-M3 2019-05-09 17:57:31 -04:00
Eugene Yokota 180af46fe5 bump plugins 2019-04-29 23:31:20 -04:00
Eugene Yokota 8c01d9f215 bump to Gigahorse 0.4.0 2019-04-04 00:19:34 -04:00
Eugene Yokota 2f8d9ad8ca move CrossVersion to src/
Fixes sbt/sbt#4595
Ref #290
Ref #280

This is bit of an odd one.

To keep bincompat and also to fix sbt 0.13 compatibility issue we have made `Disabled` companion object extend `Disabled` type.
This actually created a subtle deserialization issue:

```
[error] scala.MatchError: Disabled() (of class sbt.librarymanagement.Disabled$)
[error] 	at sjsonnew.FlatUnionFormats$$anon$5.write(FlatUnionFormats.scala:220)
[error] 	at sjsonnew.JsonWriter.addField(JsonFormat.scala:40)
[error] 	at sjsonnew.JsonWriter.addField$(JsonFormat.scala:37)
[error] 	at sjsonnew.FlatUnionFormats$$anon$5.addField(FlatUnionFormats.scala:208)
[error] 	at sjsonnew.Builder.addField(Builder.scala:43)
[error] 	at sbt.librarymanagement.ModuleIDFormats$$anon$1.write(ModuleIDFormats.scala:46)
```

This is because Contraband generates `flatUnionFormat5[CrossVersion, Disabled, ...]` for all of the subtypes of `CrossVersion`, which uses the runtime type information. Now that `Disabled` object is also in the mix, this created JSON that `CrossVersionFormats` cannot deserialize. This brings the code into src/ so we can write this part manually.
2019-04-01 23:35:39 -04:00
Eugene Yokota 83a28b0b3d bump IO and Util 2019-03-22 13:53:17 -04:00
Eugene Yokota 7f19274304 sbt 1.2.8 2019-03-22 13:47:32 -04:00
Eugene Yokota 75c319e6bb make object Disabled extend Disabled
Ref https://github.com/sbt/librarymanagement/pull/280

This is to workaround bincompat error detected by sbt community build.

```
[cats] [error] java.lang.NoSuchMethodError: sbt.librarymanagement.CrossVersion$.Disabled()Lsbt/librarymanagement/Disabled$;
```
2019-01-23 15:06:47 -05:00
Eugene Yokota e36ddd64ab Bump Ivy
Ref https://github.com/sbt/ivy/pull/31
2018-12-28 17:15:43 -05:00
Eugene Yokota 08b8491c7f Bump IO and Util 2018-10-29 14:25:01 -04:00
andrea d18c37974a going on, everything but sbt-plugins looks working 2018-10-16 12:31:07 +01:00
andrea e1ce3a07c5 compilation and tests are ok 2018-10-15 10:34:14 +01:00
Leonard Ehrenfried ed25bcba43 Add implementation of coursier 2018-10-15 10:24:34 +01:00
Eugene Yokota cb92556c7f sbt-scalafmt 0.15 to align with sbt/sbt 2018-10-15 03:10:00 -04:00