Commit Graph

17910 Commits

Author SHA1 Message Date
Adrien Piquerez 0005705eb6 Fix += on sourceGenerators 2024-03-27 14:41:24 +01:00
eugene yokota 35520e6cfe
Merge pull request #7521 from adpi2/sbt2-revive-tests 2024-03-26 11:16:56 -04:00
Adrien Piquerez 453ccc6805 Uncomment pending tests 2024-03-26 10:12:29 +01:00
adpi2 180e3518ef
Merge pull request #7520 from eed3si9n/wip/plugin
[sbt 2.x] Forward version as the sbt version
2024-03-26 09:23:16 +01:00
Eugene Yokota 61b0196f28 Forward version as the sbt version 2024-03-26 03:05:57 -04:00
adpi2 40ba7e9a27
Merge pull request #7519 from adpi2/sbt2-fix-todo
[sbt2] Reactivate checkTargets in Load
2024-03-25 20:27:56 +01:00
Adrien Piquerez c6ef392027 fix scripted 2024-03-25 13:16:38 +01:00
Adrien Piquerez 627bd6bea1 Fix checkTargets 2024-03-25 10:52:15 +01:00
eugene yokota 21a4aaa4d6
Merge pull request #7516 from SethTisue/scala-2.12.19
Scala 2.12.19 (was 2.12.18), scala-xml 2.2.0 (was 2.1.0)
2024-03-22 11:56:51 -04:00
adpi2 b921230836
Merge pull request #7517 from adpi2/sbt2-fix-bsp-reporter
[sbt 2] Restore server tests
2024-03-21 15:41:43 +01:00
Adrien Piquerez 62f077e657 fix BuildServerTest 2024-03-21 15:07:29 +01:00
dependabot[bot] 3fa61c06f9
Bump actions/checkout from 3 to 4 (#94)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: eugene yokota <eed3si9n@gmail.com>
2024-03-19 20:28:37 -04:00
dependabot[bot] cde1a1c917
Bump actions/setup-java from 3 to 4 (#93)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: eugene yokota <eed3si9n@gmail.com>
2024-03-19 20:28:23 -04:00
eugene yokota fbc92435c9
Update test (#95) 2024-03-19 16:44:47 -04:00
Adrien Piquerez d02696e886 Enable scripted test 2024-03-19 17:06:09 +01:00
Adrien Piquerez 9de5fa5236 Activate server tests 2024-03-19 17:06:09 +01:00
Adrien Piquerez b5afcf8a0c Fix server completion tests 2024-03-19 17:06:09 +01:00
Adrien Piquerez 03ca5365f5 Fix BuildServerTest 2024-03-19 17:06:09 +01:00
Adrien Piquerez 924150851c Port server tests to scalatest and fix 2024-03-19 17:06:09 +01:00
Adrien Piquerez e62984846b Re-implement BuildServerEvalReporter 2024-03-19 17:06:09 +01:00
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