Skip to content

Commit

Permalink
bugfix: Publish interfaces and mtagsShared for JDK 8
Browse files Browse the repository at this point in the history
This is needed by the Scala 3 compiler.
  • Loading branch information
tgodzik committed Oct 30, 2024
1 parent 94a118c commit 50af2c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ publish / skip := true

lazy val interfaces = project
.in(file("mtags-interfaces"))
.settings(sharedJavacOptions)
.settings(
moduleName := "mtags-interfaces",
autoScalaLibrary := false,
Expand All @@ -226,6 +225,7 @@ lazy val interfaces = project
libraryDependencies ++= List(
V.lsp4j
),
javacOptions := Seq("--release", "8"),
crossVersion := CrossVersion.disabled,
Compile / doc / javacOptions ++= List(
"-tag",
Expand All @@ -241,6 +241,14 @@ lazy val mtagsShared = project
crossTarget := target.value / s"scala-${scalaVersion.value}",
// Dotty depends on Scala 2.13 for compatibility guarantees for from-source compilation.
crossScalaVersions := V.supportedScalaVersions,
scalacOptions --= crossSetting(
scalaVersion.value,
if213 = List("-target:17"),
),
scalacOptions ++= crossSetting(
scalaVersion.value,
if213 = List("-target:8"),
),
crossVersion := CrossVersion.full,
Compile / packageSrc / publishArtifact := true,
Compile / scalacOptions ++= {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ public CompletableFuture<java.util.List<ReferencesResult>> references(References

/**
* Execute the given code action
*
* @since 1.4.1
* @deprecated Please use the code action with optional data.
*/
@Deprecated(since = "1.4.1")
@Deprecated
public CompletableFuture<List<TextEdit>> codeAction(OffsetParams params, String codeActionId,
Object codeActionPayload) {
return codeAction(params, codeActionId, Optional.of(codeActionPayload));
Expand Down

0 comments on commit 50af2c8

Please sign in to comment.