Eugene Yokota
56941dac04
refactor: Update Scala 3 syntax
2024-10-27 23:55:30 -04:00
Friendseeker
f87ffc8042
Fix CI compile errors
2024-10-21 21:38:59 -07:00
Eugene Yokota
65bc3d9722
fix: Resurrect or for tasks
...
**Problem**
1. `or` is missing
2. `?` should have English method name
**Solution**
1. This resurrects `or`
2. Name `??` as `option`, since `get` is taken
2024-10-10 02:39:52 -04:00
João Ferreira
fe045bfa12
remove unused comment
2024-10-09 11:04:47 +01:00
João Ferreira
3eb2d66b0f
reenable some tests
2024-10-09 09:57:08 +01:00
xuwei-k
cfb9ffea95
remove deprecated `[this]` qualifier
...
https://docs.scala-lang.org/scala3/reference/dropped-features/this-qualifier.html
2024-10-03 21:16:48 +09:00
Adrien Piquerez
31710c0879
Reduce allocation of Action.Mapped
...
For a tuple (t1, t2, ..., tn) of tasks we instantiate a unique Mapped instead of many
Mapped(t1, Mapped(t2, Mapped(...))
2024-10-02 15:54:20 +02:00
Adrien Piquerez
e3449fff02
Reduce instances of Init.Apply
2024-10-02 11:05:37 +02:00
adpi2
a4ef38c5da
Merge pull request #7708 from adpi2/2.x-fix-7706
...
[2.x] Fix loading of `ScalaJSPlugin` in `ProjectMatrix`
2024-09-30 15:06:34 +02:00
Adrien Piquerez
be04ad552d
Use projectMatrix caller to resolve plugins
2024-09-30 14:01:46 +02:00
Adrien Piquerez
56416901cf
Add back `dependsOn` on inputTask
2024-09-30 14:00:08 +02: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
Adrien Piquerez
eda3a87e76
Resolve conflict between BuildSyntax.dependsOn and Scoped.dependsOn
2024-09-25 16:43:45 +02:00
Adrien Piquerez
860f462f2f
Add dependsOn on Initialize[Task[A]]
2024-09-25 15:32:04 +02:00
Adrien Piquerez
f08f272d23
[2.x] Fix scripted cache tests
2024-09-18 10:28:11 +02:00
Adrien Piquerez
b59856bcba
Merge sbt-projectmatrix
2024-09-17 17:02:30 +02:00
xuwei-k
7279f659e0
Update .scalafmt.conf. re-format
2024-09-07 16:37:49 +09:00
Eugene Yokota
eb9a507419
Refactor Def.declareOutputDirectory to return vf
2024-08-18 12:57:29 -04:00
Eugene Yokota
987ab5f214
Add Def.declareOutputDirectory function
2024-08-18 12:57:29 -04:00
Eugene Yokota
c81d269ed2
Merge branch '1.10.x' into wip/merge-1.10.x
2024-05-07 04:39:25 -04:00
Adrien Piquerez
2e439cab1e
[2.x] report cache errors
...
Report a cache error if the output file of a task is not cacheable
2024-04-24 10:41:56 +02:00
Adrien Piquerez
7c51ba2f64
Revert "Use fileConverter in cacheStore"
2024-04-17 09:30:44 +02: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
Adrien Piquerez
ab1aa6d001
Fix todos in actions/compile-clean
2024-04-09 15:33:22 +02:00
Adrien Piquerez
85fcb014f0
Fix data race to remote cache on classpath analyses
...
The attributed classpath should point to the existing analysis file in the target folder to avoid data racing to the remote cache.
2024-04-08 16:34:18 +02:00
Adrien Piquerez
654d35d1ba
Fix triggeredBy and runBefore
2024-04-02 17:47:48 +02:00
Adrien Piquerez
0005705eb6
Fix += on sourceGenerators
2024-03-27 14:41:24 +01:00
Adrien Piquerez
b5afcf8a0c
Fix server completion tests
2024-03-19 17:06:09 +01:00
Adrien Piquerez
12e9267e1e
Remove more unused
2024-03-05 15:25:25 +01:00
Adrien Piquerez
c15a4031a9
Fix or mute warnings
2024-03-05 10:39:00 +01:00
Adrien Piquerez
144b86e32e
fix tag of InputTask
2024-02-12 15:28:57 +01:00
Adrien Piquerez
739dedb017
Remove usage of Manifest in Structure.scala
2024-02-12 15:22:09 +01:00
adpi2
64be877549
Merge pull request #7491 from adpi2/misc-cleanup
...
[2.x] Miscellaneous cleanup
2024-02-08 17:42:35 +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
Adrien Piquerez
ea4b38d1b1
Shorten fake task macro impl
2024-02-07 12:13:35 +01:00
Adrien Piquerez
7ac3cd321d
Remove the unused ~>
2024-02-07 11:12:43 +01:00
Adrien Piquerez
10fc5da8b6
remove Composite and replace it with type lambda
2024-02-07 10:58:05 +01:00
Adrien Piquerez
a15fb91c5c
Remove AList
2023-12-13 14:01:57 +01:00
Adrien Piquerez
7ea0506736
Introduce TaskId to reduce abstraction around Execute
2023-11-28 14:26:52 +01:00
Eugene Yokota
bde26f6c51
Communicate narrowing by adding case
2023-11-25 20:50:34 -05:00
Eugene Yokota
e87e1d6e0d
Update to Scalafmt 3.7.14
2023-11-25 01:08:17 -05:00
Julien Richard-Foy
72bfb3f45a
Transfer copyright to Scala Center
2023-06-20 16:39:07 +02:00
Eugene Yokota
f98c4fff3b
Update modules
2023-04-30 00:56:11 -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
84a5fcb035
Use extension method to encode the syntax
2023-01-18 00:50:30 -05:00
Eugene Yokota
2642ba30cc
Fix InputKey
2023-01-15 23:50:30 -05:00
Eugene Yokota
193b47b49b
Fix taskDyn
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
fbc98ed72e
Use ClassTag instead of Manifest
2023-01-15 23:50:29 -05:00