Skip to content

Commit

Permalink
bugfix: Publish native interfaces with full suffix
Browse files Browse the repository at this point in the history
Fixes scalameta#4571

crossVersion actually is set differently if you use `crossProject` so if you disable it you get no suffix in all platforms.
  • Loading branch information
tgodzik committed Nov 20, 2024
1 parent a29aa8a commit 0f1d03f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ lazy val interfaces = crossProject(JVMPlatform, NativePlatform)
moduleName := "scalafmt-interfaces",
description :=
"Dependency-free, pure Java public interfaces to integrate with Scalafmt through a build tool or editor plugin.",
crossVersion := CrossVersion.disabled,
autoScalaLibrary := false,
Compile / resourceGenerators += Def.task {
val out = (Compile / managedResourceDirectories).value.head /
"scalafmt.properties"
Expand All @@ -95,7 +93,7 @@ lazy val interfaces = crossProject(JVMPlatform, NativePlatform)
IO.write(props, "scalafmt properties", out)
List(out)
},
)
).jvmSettings(crossVersion := CrossVersion.disabled, autoScalaLibrary := false)

lazy val sysops = crossProject(JVMPlatform, NativePlatform)
.withoutSuffixFor(JVMPlatform).in(file("scalafmt-sysops")).settings(
Expand Down

0 comments on commit 0f1d03f

Please sign in to comment.