Commit Graph

1760 Commits

Author SHA1 Message Date
friendseeker 6cea06da0b Try workaround sbt.internal.inc.InvalidComponent 2024-10-16 10:57:22 -07:00
Friendseeker f213eb0175 Bump jline3 to 3.27.0 2024-10-11 13:44:33 -07:00
adpi2 49e1d8acd8
Merge pull request #7752 from adpi2/2.x-merge-librarymanagement
[2.x] upgrade and reenable sbt'contraband plugin
2024-10-11 19:43:14 +02:00
Adrien Piquerez 9d94423f24 [2.x] Exclude Scala libraries from lm-coursier-shaded 2024-10-11 17:42:34 +02:00
Adrien Piquerez 2cef7222f1 Move dataclassGen to Utils 2024-10-11 17:00:19 +02:00
Adrien Piquerez 644f139da3 Merge remote-tracking branch 'lm/wip/sbt-2.x' into 2.x-merge-librarymanagement 2024-10-11 16:22:55 +02:00
Adrien Piquerez a07bf4eea8 Fix lm-coursier shading 2024-10-11 14:32:32 +02:00
Seth Tisue 00e54404ce
Merge branch '1.10.x' into bump-jline3 2024-10-10 17:21:05 -07:00
Seth Tisue f06b7622be Scala 2.12.20 (was .19) 2024-10-10 12:53:31 -07:00
Adrien Piquerez 6398eac16d Remove metals.sbt 2024-10-09 13:36:30 +02:00
Adrien Piquerez 6a14704640 Fix build and format 2024-10-09 13:34:32 +02:00
Adrien Piquerez 339e707300 Fix build 2024-10-09 09:44:42 +02:00
Adrien Piquerez 7a325bc414 Merge remote-tracking branch 'coursier/sbt-2.x' into 2.x-lm-coursier 2024-10-09 09:13:25 +02:00
Adrien Piquerez d1bf297087 Fix dependencies and build 2024-10-09 08:53:58 +02:00
Adrien Piquerez b131c6a18e Merge remote-tracking branch 'lm/wip/sbt-2.x' into 2.x-lm-coursier 2024-10-09 08:50:03 +02:00
João Ferreira 1f45d25ec3 upgrade and enable contraband 2024-10-08 15:42:58 +01:00
Adrien Piquerez 9c421a3122 Merge remote-tracking branch 'origin/main' into merge-main 2024-10-08 15:09:16 +02:00
Adrien Piquerez 2e1bed8e5a Merge remote-tracking branch 'origin/develop' into merge-develop 2024-10-08 14:02:06 +02:00
xuwei-k 950d084f35 update scalacOptions 2024-10-05 06:59:37 +09:00
Eugene Yokota ea031a7fa0 deps: lm 2.0.0-M2 2024-10-04 05:52:43 -04:00
Eugene Yokota 02e8a86f18 deps: Zinc 2.0.0-M1 2024-10-04 02:53:02 -04:00
Eugene Yokota 57254a6d32 deps: bump util 2024-10-04 00:12:56 -04:00
eugene yokota eb5c3cfccf
[2.x] refactor: Remove useCoursier setting (drop Ivy) (#7712)
**Problem**
It's been a while since Coursier has been the default library management engine,
and we don't need to support two.

**Solution**
This removes `useCoursier` setting.
2024-10-02 14:33:54 -04:00
Eugene Yokota 5684a842c3 refactor: Remove sbt 0.13 `in` methods
**Problem**
See https://www.scala-sbt.org/1.x/docs/Migrating-from-sbt-013x.html#Migrating+to+slash+syntax

We should remove `scalacOptions in (Compile, console)` notation. This was deprecated in https://eed3si9n.com/sbt-1.5.0.

**Solution**
This renames `in` to `rescope` for internal usage, and ports the usages to slash.
2024-09-28 19:19:58 -04:00
Scala Steward 173bc720c9
Update sbt-scalafix to 0.13.0 2024-09-28 15:24:13 +00:00
Scala Steward 2f102930ed
Update scala-library to 2.13.15 2024-09-26 14:06:40 +00:00
friendseeker b873c2e286
Bump jline3 to 3.27.0
Bump native image options

Try use Github Action to setup GraalVM

Update native image version

Update java version to be in sync with Native Image Plugin

Try anything

Create the dir to place native image

Try again

Remove Graal setup

Believe in couriser?
2024-09-23 23:24:24 -07:00
Scala Steward 60afb16294
Update sbt, scripted-plugin to 1.10.2 2024-09-16 14:15:32 +00:00
Eugene Yokota 683bece1c4 Use sbt 1.10.2 2024-09-16 00:53:01 -04:00
Eugene Yokota 2785db21ef Zinc 1.10.2 2024-09-15 16:21:26 -04:00
Scala Steward fec763a22c
Update scala-library to 2.12.20 2024-09-06 13:48:26 +00:00
Scala Steward 7f2a51179b
Update sbt-ci-release to 1.6.1 2024-08-21 14:22:55 +00:00
Eugene Yokota 3ef3a605c2 Merge branch '1.10.x' into wip/merge-1.10.x 2024-08-18 12:37:24 -04:00
Scala Steward 821aef839b
Update sbt-ci-release to 1.6.0 2024-08-12 19:27:48 +00:00
Scala Steward ec44c9d095
Update sbt-mima-plugin to 1.1.4 2024-08-12 13:02:20 +00:00
Scala Steward 881e0e424e
Update sbt, scripted-plugin to 1.10.1 2024-07-10 14:18:35 +00:00
eugene yokota 9ffddd01c4
Merge pull request #504 from scala-steward/update/sbt-1.10.0
Update sbt, scripted-plugin to 1.10.0
2024-07-09 00:50:23 -04:00
Eugene Yokota ee16e46405 Scala 2.13.14 2024-07-09 00:00:00 -04:00
Eugene Yokota 6757b15acd Update to Scala 2.12.19 2024-07-08 23:55:59 -04:00
Eugene Yokota c42766a123 Launcher 1.4.3 2024-07-07 17:23:25 -04:00
Eugene Yokota d7a0db2334 Lm 1.10.1 2024-07-07 15:50:55 -04:00
Eugene Yokota c2009716e1 Zinc 1.10.1 2024-07-07 14:22:47 -04:00
João Ferreira 765740c066
upgrade sbt-scalafmt (#440)
Co-authored-by: eugene yokota <eed3si9n@gmail.com>
2024-07-06 17:27:19 -04:00
Eugene Yokota 70b829ec54 sbt 1.10.0 2024-07-06 16:43:13 -04:00
Eugene Yokota e32618529d Scala 2.13.14 2024-07-06 16:42:53 -04:00
Eugene Yokota a0e4d22a6c sjson-new 0.10.1 2024-07-06 16:24:28 -04:00
Eugene Yokota 4752e180fd Update lm 2024-06-09 17:56:17 -04:00
Eugene Yokota 26fe5efeb1 Skip mima 2024-06-09 15:09:25 -04:00
Adrien Piquerez 1034fb1859 Bump versions 2024-06-06 10:36:29 +02:00
Adrien Piquerez 629245a3e0 Merge remote-tracking branch 'origin/main' into wip/sbt-2.x 2024-06-04 10:37:41 +02:00
Eugene Yokota e679242f12 Update to Scala 3.3.1 2024-06-04 10:08:17 +02:00
Eugene Yokota ef6c4898cc Bump scalafix 2024-06-04 10:08:17 +02:00
Eugene Yokota 38be1db247 Temporarily switch to sbt-assembly 2024-06-04 10:08:17 +02:00
Eugene Yokota 02fc0d9d89 Merge branch 'wip/sbt-2.x-merge' into wip/sbt-2.x 2024-05-31 00:21:45 -07:00
Eugene Yokota d42bc8e6e3 util 2.0.0-alpha10 2024-05-30 23:07:12 -07:00
Adrien Piquerez e140c80667 Bump sjson-new 2024-05-28 11:11:44 +02:00
Scala Steward e8990e2fa5
Update sbt-shading to 2.1.5 2024-05-25 13:35:35 +00:00
Adrien Piquerez f8ce2cdef6 Update to Scala 3.3 2024-05-23 17:04:38 +02:00
Adrien Piquerez 863004961c Merge remote-tracking branch 'origin/develop' into wip/sbt-2.x 2024-05-23 16:53:23 +02:00
Eugene Yokota 4f108dfc80 Merge branch 'develop' into wip/sbt-2.x-merge 2024-05-13 00:13:46 -04:00
Matthias Kurz c810383daf
Upgrade sbt plugins to avoid deprecated repo.scala-sbt.org 2024-05-08 11:59:00 +02:00
Scala Steward 4e7e8e8f71
Update sbt, scripted-plugin to 1.10.0 2024-05-07 16:29:46 +00:00
Scala Steward 0736e78f72
Update sbt-shading to 2.1.4 2024-05-07 16:29:32 +00:00
Eugene Yokota c81d269ed2 Merge branch '1.10.x' into wip/merge-1.10.x 2024-05-07 04:39:25 -04:00
Eugene Yokota b8bb5e33fb Zinc 1.10.0 2024-05-05 20:11:32 -04:00
Eugene Yokota dc460527b4 Util 1.10.0 2024-05-05 17:53:08 -04:00
Eugene Yokota 7529eefda6 IO 1.10.0 2024-05-05 17:21:40 -04:00
Scala Steward a6a4c99520
Update sbt-scalafix to 0.12.1 2024-05-05 06:42:42 +00:00
mazugrin 4d8bff40dc Update jansi dep to match the one that's included in the jline dep, which also allows sbt to work on ARM64 Windows without needing to specify -Djline.terminal=jline.UnsupportedTerminal 2024-04-18 12:54:31 -04:00
Eugene Yokota b1a43f9adc Consistent Analysis
See also https://github.com/sbt/zinc/pull/1326

This adds a new setting `enableConsistentCompileAnalysis`,
which enables the new "Consistent" Analysis format,
which is faster and more repeatable than the status quo.
This is initialized to `true` by default.
It can be opted out either by the setting or using
`-Dsbt.analysis2024=false`.
2024-04-14 23:17:04 -04:00
Eugene Yokota 86cf7c3a0c Remote caching support
This implements Bazel-compat remote caching support via a plugin.
2024-04-11 13:55:29 +02:00
Eugene Yokota f804c28417 Zinc 1.10.0-RC1 2024-04-08 23:07:57 -04:00
Eugene Yokota 6ab6c2baa9 Util 1.10.0-RC1 2024-04-08 22:36:44 -04:00
eugene yokota ec02bf3dc2
Merge pull request #7480 from lrytz/lib-unfreeze-m
Add support for SIP-51 (unfreezing the Scala library)
2024-04-08 01:10:05 -04:00
Adrien Piquerez 52fd2b4427 mute unused nowarn 2024-04-02 17:49:12 +02:00
Alex Zolotko 3156ac253a Update jsch to 0.2.17 (the com.github.mwiede fork) 2024-03-30 17:30:57 +01:00
Eugene Yokota 167b8ef677 Zinc 2.0.0-alpha12 2024-03-17 04:27:23 -04:00
Eugene Yokota 5a5251064f Zinc 2.0.0-alpha11 2024-03-17 03:14:44 -04:00
Seth Tisue 735214afd0 Scala 2.12.19 (was 2.12.18), scala-xml 2.2.0 (was 2.1.0) 2024-03-16 11:39:55 +01:00
Jakub Kozłowski 4507135564
Update lm-coursier-shaded: 2.1.3 -> 2.1.4 2024-03-15 14:36:38 +01:00
Adrien Piquerez c6176342fb Remove dep to zinc-compile 2024-03-06 13:59:33 +01:00
Adrien Piquerez 12e9267e1e Remove more unused 2024-03-05 15:25:25 +01:00
Adrien Piquerez 369e647008 Fix scala 2 compat with -Xsource:3 and scala-collection-compat 2024-03-05 13:32:15 +01:00
Adrien Piquerez 0458e8063d Adapt -Wunused 2024-03-05 11:23:00 +01:00
Adrien Piquerez 95a82adffc Activate -Xfatal-warnings 2024-03-05 10:41:07 +01:00
Lukas Rytz 447c2ba5e5 update zinc and sbt-coursier dependencies 2024-02-27 10:56:30 +01:00
Hagai Ovadia 0f4be2405e upgrade lm-coursier-shaded tp 2.1.3 2024-02-18 16:00:22 +02:00
Adrien Piquerez ac191ddc5c Update eval for Scala 3.3.1 2024-02-13 10:37:07 +01:00
Eugene Yokota 63ba90d198 Migrate postfix ops
**Problem**
There are a few places in the code that's using postfix ops.

**Solution**
This rewrites the expressions to use normal dot notaiton.
2024-02-07 11:40:45 -05:00
eugene yokota ecca26175e
[sbt 2.x] remote cache (#7464)
For the details about this PR, please see the blog post https://eed3si9n.com/sbt-remote-cache/.

* Add cache basics
* Refactor Attributed to use StringAttributeMap, which is Map[StringAttributeKey, String]
* Implement disk cache
* Rename Package to Pkg
* Virtualize packageBin
* Use HashedVirtualFileRef for packageBin
* Virtualize compile task
2024-02-07 10:34:06 -05:00
Eugene Yokota e5e3d2832a Zinc 1.10.0-M2 2023-12-09 05:45:03 -05:00
Scala Steward c8a9925300
Update sbt-scalafix to 0.11.1 (#480) 2023-11-27 16:15:43 +01:00
Scala Steward 9af449ad67
Update sbt-mima-plugin to 1.1.3 (#473) 2023-11-27 16:15:31 +01:00
Scala Steward a16308f7e3
Update sbt-shading to 2.1.3 (#482) 2023-11-27 14:54:17 +01:00
Eugene Yokota 7c31c2bd6c Update to Zinc 1.10.0-M1 2023-11-27 03:19:36 -05:00
Eugene Yokota 8098702a1a Update to Zinc 2.0.0-alpha8 2023-11-26 21:35:52 -05:00
Eugene Yokota c838c492b1 Update to librarymanagement-coursier 2.0.0-alpha7 2023-11-25 21:16:17 -05:00
Eugene Yokota 08966370b1 Update to lm 2.0.0-alpha13 for sjson-new 2023-11-25 21:01:04 -05:00
Eugene Yokota dd2dd44de3 Update to lm 2.0.0-alpha12 2023-11-25 21:00:42 -05:00
Eugene Yokota f8f8db9e58 Update to Scala 3.3.1 2023-11-25 15:50:50 -05:00
Eugene Yokota c63aa64206 sbt 1.9.7 2023-11-25 01:06:00 -05:00
Adrien Piquerez bc3acd3bff Bump sbt-scalafmt to solve classpath corruption 2023-11-14 11:42:51 +01:00
Heikki Vesalainen c07ee8411e JLine 3.24.1 and JAnsi 2.4.0. 2023-11-01 21:25:24 +02:00
Eugene Yokota 13f7bb250b sjsonnew 0.14.0-M1 2023-10-29 14:54:24 -04:00
Eugene Yokota 96f6f61077 sbt 1.9.7 2023-10-23 07:40:58 -04:00
Regis Kuckaertz 85b18fa548
Update Coursier to 2.1.7 (#7392)
---------

Co-authored-by: eugene yokota <eed3si9n@gmail.com>
2023-10-21 23:53:38 -04:00
eugene yokota ebcab3e120
Update build.properties 2023-10-06 10:33:04 -04:00
Eugene Yokota 4701bf7677 Zinc 1.9.5 2023-09-15 10:35:54 -04:00
Eugene Yokota c551c0fbcd Zinc 1.9.4 2023-09-13 23:29:11 -04:00
Matthew de Detrich 47bdf1bcde
Update Scala 2.13 version 2023-09-11 12:02:37 +02:00
Eugene Yokota bee6748f29 Update Ivy and Coursier to latest 2023-08-24 13:04:58 -04:00
Eugene Yokota 824cca75d2 Bump to Ivy 2.3.0-sbt-396a783bba347016e7fe30dacc60d355be607fe2 2023-08-24 10:36:27 -04:00
Matthias Kurz bd8b11632c
Remove conscriptConfigs task, not used and needed anymore 2023-08-11 21:56:46 +02:00
Eugene Yokota 797b9da93e Zinc 1.9.3 2023-07-23 13:11:45 -04:00
Eugene Yokota de20328029 Let ++ fall back to a bincompat Scala version
Fixes https://github.com/sbt/sbt/issues/7327

**Problem**
In builds with mixed Scala patch versions (like scalameta),
it's possible for a core subproject to be set to the lastest 2.12.x,
but the compiler plugin component is cross published to 2.12.0 etc.
`++ 2.12.0` in this case does not work since sbt 1.7.x onwards requires
the queried Scala version to be listed in `crossScalaVersions`.

**Solution**
This implements sbt 1.6.x-like fallback mechanism,
but instead of using the queried version (e.g. 2.12.0) it will set
the Scala version to one of listed versions that is binary compatible.
2023-07-09 18:31:55 -04:00
Eugene Yokota 271307d326 Zinc 1.9.2 2023-06-25 23:01:45 -04:00
Eugene Yokota 1dd9c5c0e7 Util 1.9.1 2023-06-25 21:01:05 -04:00
Eugene Yokota 24066d6c5b IO 1.9.1 2023-06-25 19:23:34 -04:00
xuwei-k 9a1d836b4e update scalafmt 2023-06-25 10:16:26 +09:00
Eugene Yokota 41b8a92b40 Zinc 1.9.1 2023-06-18 14:22:02 -04:00
Matthias Kurz 01fb8430ba
Use latest sbt 1.9.0 2023-06-04 01:09:29 +02:00
Matthias Kurz ebbf0617a2
Update Scala to 2.13.11 2023-06-03 22:27:45 +02:00
Eugene Yokota 5484ea7a9a Zinc 1.9.0 2023-06-02 04:15:11 -04:00
Eugene Yokota b2ecf69b96 util 1.9.0 2023-06-02 01:36:05 -04:00
Eugene Yokota 10a79bc6b0 Update Scala to 2.13.10 2023-06-01 23:24:31 -04:00
Eugene Yokota 1f1ee778e3 Update Scala to 2.12.18
Fixes https://github.com/sbt/sbt/issues/7235
2023-06-01 12:13:40 -04:00
Scala Steward aa6bd3c515
Update sbt, scripted-plugin to 1.8.3 (#462) 2023-05-25 19:19:11 +02:00
Eugene Yokota 277f6362ac Bump Zinc 2023-05-15 04:09:54 -04:00
Eugene Yokota 30bab993e3 IO 1.9.0-RC3 2023-05-15 01:07:24 -04:00
Eugene Yokota 1f333010a9 lm 1.9.0-M3 2023-05-07 12:40:28 -04:00
Scala Steward 85a4aeb9b7
Update sbt-ci-release to 1.5.12 2023-05-03 14:00:48 +00:00
Eugene Yokota f98c4fff3b Update modules 2023-04-30 00:56:11 -04:00
Eugene Yokota 7dd69e702b Update to lm-coursier-shaded 2.1.0 2023-04-29 23:10:35 -04:00
Eugene Yokota 5c8826a394 Update to launcher 1.4.2 2023-04-29 22:07:08 -04:00
Eugene Yokota 7d052bde8f Deprecate IntegrationTest
We plan to remove IntegrationTest configuration.
See https://eed3si9n.com/sbt-drop-custom-config/ for details.
2023-04-24 01:14:49 -04:00
Scala Steward 8a921c6872
Update sbt-mima-plugin to 1.1.2 (#448) 2023-03-31 19:15:52 +02:00
Eugene Yokota 72af500294 Subsume platform cross building
Problem
-------
In sbt 1, platform cross building is implemented using in the user-land
using `%%%` operator, which clevery handles both Scala cross building
and appending platform suffix like sjs1.
However, in general symbolic `%%%` is confusing, and hard to explain.

Solution
--------
In sbt 2, we should subsume the idea of platform cross building,
so `%%` can act as the current `%%%` operator.
This adds a new setting called `platform`, which defaults to
`Platform.jvm` by default.
When a subprojects sets it to `Platform.sjs1`, `ModuleID`s defined using
`%%` operator will inject the platform suffix `_sjs1` **in addition**
to the Scala binary suffix `_2.13` etc.

Note: Explicit JVM dependencies will now require `.platform(Platform.jvm)`.
2023-03-12 13:38:56 -04:00
Adrien Piquerez ada716fc1f Bump librarymanagement to 1.9.0-M1 2023-02-27 09:42:36 +01:00
Adrien Piquerez d05913f3b9 Bump lm-coursier-shaded to 2.0.16 2023-02-22 10:09:26 +01:00
Scala Steward e311405bab
Update sbt, scripted-plugin to 1.8.2 (#442) 2023-01-23 09:56:16 +01:00
Eugene Yokota 9219ed6bd4 lm alpha10 2023-01-19 17:48:21 -05:00
Eugene Yokota d2ddd9d7a9 Use scala-xml_3 2023-01-19 04:54:53 -05:00
Eugene Yokota 286467d351 sjson-new 0.13.0 2023-01-19 03:28:17 -05:00
Eugene Yokota d2c2563d8a Use scala-xml_3 instead 2023-01-15 23:50:30 -05:00
Eugene Yokota 28febfb9c8 Downgrade scala-xml to 2.13 2023-01-15 23:50:30 -05:00
Eugene Yokota bd4f7b7b73 sjson-new 0.13.0 2023-01-15 23:50:30 -05:00
Eugene Yokota 9f5525c989 inline parameter removes let binding 2023-01-15 23:50:29 -05:00
Eugene Yokota ceb1ea8aad bump Zinc, which uses current util 2023-01-15 23:50:29 -05:00
Eugene Yokota fbc98ed72e Use ClassTag instead of Manifest 2023-01-15 23:50:29 -05:00
Eugene Yokota 20420b9f75 Use launcher scripted tests 2023-01-15 23:50:27 -05:00