Commit Graph

17940 Commits

Author SHA1 Message Date
kenji yoshida b19545fa83
add dependabot setting for GitHub Actions update (#92) 2024-03-19 11:04:15 -04:00
kijuky 7a9088ae71
Add support for unmanagedBase (lib) (#91)
* Fix #90

---------

Co-authored-by: Kizuki Yasue <kizuki-yasue@m3.com>
2024-03-19 11:03:11 -04:00
Eugene Yokota d6e1c63f3f Fix publishing 2024-03-17 16:32:02 -04:00
Eugene Yokota f074a2c58c 2.0.0-alpha10-SNAPSHOT 2024-03-17 04:54:20 -04: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
eugene yokota 9bd80cf4d2
Merge pull request #7513 from kubukoz/update-lm 2024-03-15 10:51:33 -04:00
Jakub Kozłowski 4507135564
Update lm-coursier-shaded: 2.1.3 -> 2.1.4 2024-03-15 14:36:38 +01:00
adpi2 5e5610355f
Merge pull request #7508 from adpi2/sbt2-fatal-warnings
[2.x] Fix or mute warnings and other minor changes
2024-03-07 17:37:43 +01:00
Adrien Piquerez a89ad8ad4d apply review 2024-03-07 09:00:17 +01:00
Adrien Piquerez 7ca6ad5fec Fix resolution of bridge using Coursier 2024-03-06 16:40:41 +01:00
Adrien Piquerez 323d1da16e fix scripted 2024-03-06 14:43:23 +01:00
Adrien Piquerez 1a900ee5dc Publish local Zinc 2024-03-06 14:07:21 +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
Adrien Piquerez c15a4031a9 Fix or mute warnings 2024-03-05 10:39:00 +01:00
Adrien Piquerez 5d0a0b7356 Uncomment EmbeddedXmlSpec 2024-03-05 10:09:22 +01:00
Eugene Yokota 458a172b8f readme 2024-03-01 00:29:02 -05:00
Lukas Rytz 447c2ba5e5 update zinc and sbt-coursier dependencies 2024-02-27 10:56:30 +01:00
Lukas Rytz 4a1ba0c970 tests for standard library unfreezing 2024-02-27 10:56:30 +01:00
Lukas Rytz f0afeff4d9 Set locale for f interpolator decimal character
dependency-graph/toFileSubTask failed for me locally
2024-02-27 10:56:30 +01:00
Lukas Rytz b9375f5e6b Update scala-library in scala-tool configuration for Scala 3
When a macro was compiled against a new scala-library (say 2.13.15),
the runtime classpath of the Scala compiler should not contain an older
scala-library. Otherwise the macro can cause a NoSuchMethodException
during expansion.

This commit updates scala-library in the scalaInstance to the version
on the projects dependency classpath.
2024-02-27 10:56:30 +01:00
Lukas Rytz 951d1c4ae4 Add new `csrSameVersions` setting, use it for Scala artifacts
The `csrSameVersions` setting can be used to keep dependencies at the
same version.

By default it's used for Scala artifacts. They need to be kept at the
same version because the compiler / reflect are built with
cross-artifact inlining enabled.

`csrSameVersions := Seq(Set(scala-library, scala-reflect, scala-compiler, scalap))`

Users can make use of the new setting in the following way:
  - `csrSameVersions += Set[InclExclRule]("com.corp" % "lib", "com.corp" % "lub")`
  - `csrSameVersions += Set[InclExclRule]("com.corp" % "lib-family-*")`
2024-02-27 10:56:30 +01:00
Lukas Rytz 4c74358707 Fail the build if 2.13 scalaVersion < scala artifact on classpath
When expanding a macro compiled against a new Scala library, the
runtime classpath of the compiler should not contain an older library.
Otherwise a NoSuchMethodException can occur.

A similar issue is present when running the Scala repl through sbt.
An input line compiled against a new library could fail to run if
the repl's runtime classpath is on an old version.
2024-02-26 13:49:04 +01:00
Lukas Rytz 35bc07bd9e Use scala library from classpath in sbt run class loader 2024-02-26 13:49:04 +01:00
Lukas Rytz 893997d1b6 Update scala libraries according to dependency graph
There are a couple of settings / configs that affect this, summary
below. The change in this PR seems to be the most narrow.

`scalaModuleInfo.value.overrideScalaVersion` in sbt
  - affects how sbt to sets coursier's `forceScalaVersion` (see below)
  - used by librarymanagement.ivy. If true, add a OverrideScalaMediator
    See sbt/sbt#2634. Probably not relevant when using coursier.

`autoScalaLibrary` setting in sbt
  - automatically add `scala-library` (or `scala3-library`) as a project
    dependency
  - also used for `forceScalaVersion` (see below)

`CoursierConfiguration.autoScalaLibrary`
  - if `true` then Coursier `ResolutionParams.forceScalaVersion` is set
    to to `true`
  - initialized by sbt to
    `autoScalaLibrary.value &&
     !ScalaArtifacts.isScala3(sv) &&
     !Classpaths.isScala213(sv) &&        // added in this commit
     scalaModuleInfo.forall(_.overrideScalaVersion)`

coursier `ResolutionParams.forceScalaVersion`
  - if true, `scala-library` / `scala-reflect` / `scala-compiler` /
    `scalap` are forced to the scala version, not actually resolved
  - for Scala 3, the `scala3-library` and `scala3-compiler` versions
    are forced
2024-02-26 13:49:04 +01:00
Lukas Rytz d8d2b02e7e Use the ordinary compiler classpath for scala-library
No longer pass `-bootclasspath /path/to/scala-library.jar` to the Scala
compiler, put the library on the ordinary classpath.
2024-02-26 13:49:04 +01:00
eugene yokota 0255009d2b
Merge pull request #492 from scala-steward/update/scalatest-3.2.18
Update scalatest to 3.2.18
2024-02-23 02:22:02 -05:00
eugene yokota 7924ac31f9
Merge pull request #491 from scala-steward/update/coursier-2.1.9
Update coursier, ... to 2.1.9
2024-02-23 02:21:33 -05:00
Nikita Vilunov 380d1526b0
Add support for non-matrix projects to be aggregated in and depended on by matrix projects (#89)
Add support for non-matrix projects to be aggregated in and depended on by matrix projects
2024-02-21 13:28:54 -05:00
Scala Steward 6de76349c9
Update scalatest to 3.2.18 2024-02-19 17:01:44 +00:00
Scala Steward 2de922e468
Update coursier, ... to 2.1.9 2024-02-19 17:01:41 +00:00
adpi2 48c23761dc
Merge pull request #7499 from hagay3/1.10.x
upgrade lm-coursier-shaded to 2.1.3
2024-02-19 09:48:13 +01:00
Hagai Ovadia 0f4be2405e upgrade lm-coursier-shaded tp 2.1.3 2024-02-18 16:00:22 +02:00
adpi2 a1599c98c7
Merge pull request #7496 from adpi2/bsp-noop-compilation
[1.x] add noOp field in BSP compile report
2024-02-15 16:23:14 +01:00
Adrien Piquerez eadf1117f6 Store bootServerSocket in state 2024-02-15 16:18:54 +01:00
Adrien Piquerez 02df82840a add noOp field in BSP compile report 2024-02-15 15:50:02 +01:00
adpi2 749b9caa11
Merge pull request #7494 from adpi2/sbt2-todo-refactorings
[2.x] Fix `SbtRefactorings` and run `SessionSettingsSpec`
2024-02-14 19:00:16 +01:00
adpi2 fcaf7afe10
Merge pull request #7493 from adpi2/sbt2-eval3
[2.x] Update eval for Scala 3.3.1
2024-02-14 09:41:44 +01:00
Adrien Piquerez 5425e066a0 Fix SbtRefactorings 2024-02-13 14:01:26 +01:00
Adrien Piquerez 4baf698a8c Fix TupleMapExtensionTests
The compiler cannot infer F[_] on a concrete Tuple.Map[T, F[_]] because it reduces it to a (F[A], F[B], ...)
2024-02-13 11:17:52 +01:00
Adrien Piquerez ac191ddc5c Update eval for Scala 3.3.1 2024-02-13 10:37:07 +01:00
adpi2 a607e54188
Merge pull request #7490 from adpi2/sbt2-remove-manifest
[sbt 2] Remove usage of Manifest in Structure.scala
2024-02-12 16:34:41 +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