Commit Graph

11897 Commits

Author SHA1 Message Date
Adrien Piquerez cf3c9bbf0d Remove ~>| and use polymorphic function instead 2024-02-07 10:49:23 +01:00
eugene yokota 0d291f0489
Merge pull request #7488 from Duhemm/scripted-classpath 2024-02-02 09:05:01 -05:00
Martin Duhem 6679067bcb
Resolve `scripted-sbt-redux` to run scripted
Previously, in sbt 2, the Scripted plugin was not resolving any module
that would provide it with the `ScriptedTests` object, and could
therefore not run scripted tests.

With this patch, `scripted-sbt-redux` will be resolved and added to the
classloader that's used to load `sbt.scriptedtest.ScriptedTests`.
2024-02-02 14:28:56 +01:00
adpi2 dd0d43bab4
Merge pull request #7456 from adpi2/refactor-alist
[sbt 2.x] Remove `AList`, replace it with `TupleMapExtension`
2023-12-13 16:57:51 +01:00
Adrien Piquerez a15fb91c5c Remove AList 2023-12-13 14:01:57 +01:00
adpi2 8950b92d33
Merge pull request #7444 from adpi2/sbt-2-refactor-execute-2
[2.x] Reduce abstraction in `Execute` and around (bis)
2023-11-29 09:15:35 +01:00
Adrien Piquerez 7ea0506736 Introduce TaskId to reduce abstraction around Execute 2023-11-28 14:26:52 +01:00
eugene yokota ff48bbfe8a
Merge pull request #7440 from eed3si9n/wip/basic-upkeep 2023-11-27 09:00:58 -05:00
Eugene Yokota e0e2ffce9c Mark doc-dependent tests pending 2023-11-27 02:25:23 -05:00
Eugene Yokota 035cc8da60 Fix ivyPaths 2023-11-27 01:54:03 -05:00
Eugene Yokota 290d8f1a59 Mark test-artifact pending 2023-11-27 01:54:03 -05:00
Eugene Yokota a8b46219ea Mark actions/doc pending 2023-11-27 01:54:03 -05:00
Eugene Yokota 81660b6734 Fix FileInfo 2023-11-27 01:54:03 -05:00
Eugene Yokota fef08a03a5 Bump version number 2023-11-27 01:54:03 -05:00
Eugene Yokota 8098702a1a Update to Zinc 2.0.0-alpha8 2023-11-26 21:35:52 -05:00
Eugene Yokota f9686b2f0c Disable fork-loader test 2023-11-26 21:11:03 -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 bde26f6c51 Communicate narrowing by adding case 2023-11-25 20:50:34 -05:00
Eugene Yokota a7d5694c67 Workaround for doc not working 2023-11-25 16:31:32 -05:00
Eugene Yokota f8f8db9e58 Update to Scala 3.3.1 2023-11-25 15:50:50 -05:00
Eugene Yokota e87e1d6e0d Update to Scalafmt 3.7.14 2023-11-25 01:08:17 -05:00
Eugene Yokota bb26faaa2e Add .jvmopts 2023-11-25 01:06:30 -05:00
Eugene Yokota c63aa64206 sbt 1.9.7 2023-11-25 01:06:00 -05:00
Eugene Yokota 6c1b441f11 Bump version number 2023-11-25 00:59:56 -05:00
eugene yokota 26b93604c9
Merge pull request #7433 from adpi2/sbt-2-cross-building
[2.x] Remove cross-building except for lower utils
2023-11-24 00:21:21 -05:00
Adrien Piquerez ba6daf1521 Fix deadlock in Terminal init 2023-11-22 15:51:28 +01:00
Adrien Piquerez 99385881f0 ignore discarded Unit 2023-11-22 11:51:15 +01:00
Adrien Piquerez b6510a1c1c scripted run/fork-loader is not pending anymore 2023-11-22 11:51:15 +01:00
Adrien Piquerez f241fc4158 Run util test on all Scala 2 versions 2023-11-22 11:51:15 +01:00
Adrien Piquerez 1f33b27b03 Deactivate cross-compilation except for utils
Lower util projects are used by LM and Zinc
2023-11-22 11:51:15 +01:00
Adrien Piquerez eba41fb3b0 Fix util-cache cross-compilation 2023-11-14 11:45:09 +01:00
Adrien Piquerez 73e3b43683 Introduce util-core to cross-compile util-logging 2023-11-14 11:43:12 +01:00
Adrien Piquerez bc3acd3bff Bump sbt-scalafmt to solve classpath corruption 2023-11-14 11:42:51 +01:00
eugene yokota 11cc8b5020
Merge pull request #6746 from eed3si9n/wip/sbt-2.x
sbt 2.x (sbt in Scala 3)
2023-10-21 20:40:20 -04: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
Eugene Yokota dbaa34bdac Interpret bare settings are common settings
See https://eed3si9n.com/simplifying-sbt-with-common-settings/

Problem
-------
The behavior of bare settings is confusing in a multi-project build.
This is partly due to the fact that to use `ThisBuild` scoping
the build user needs to be aware of the task implementation,
and know if the task is already defined at project level.

Solution
--------
This changes the interpretation of the baresettings to be common
settings, which works similar to the way `ThisBuild` behaves in sbt 1.x,
but since this would be a simple append at project-level, it should
work for any tasks or settings.
2023-03-11 17:02:07 -05:00
Eugene Yokota 32ac1ef7da Formatting 2023-03-11 17:02:07 -05:00
Eugene Yokota b4564306d6 Move the project scripted tests to project1 2023-01-26 15:12:19 -05:00
Eugene Yokota a8213abb92 Add more keys to excludeLintKeys 2023-01-20 22:34:44 -05:00
Eugene Yokota ec3eda3cc2 scripted tests 2023-01-20 21:50:53 -05:00
Eugene Yokota 9821f5e1b4 def % support 2023-01-20 16:14:51 -05:00
Eugene Yokota 9219ed6bd4 lm alpha10 2023-01-19 17:48:21 -05:00
Eugene Yokota 84a5fcb035 Use extension method to encode the syntax 2023-01-18 00:50:30 -05:00
Eugene Yokota e5dd518deb Adjust to changes in develop branch 2023-01-16 00:23:05 -05:00
Eugene Yokota e8223cc8be Fixes scripted tests 2023-01-15 23:50:31 -05:00
Eugene Yokota fc31bc3d15 Fix aggregation 2023-01-15 23:50:30 -05:00
Eugene Yokota a20d5205af Minor Scala 3 syntax change 2023-01-15 23:50:30 -05:00
Eugene Yokota e1c4fd5f1d Fix setting loading 2023-01-15 23:50:30 -05:00