Skip to content

Commit

Permalink
Fix sbt cross-build settings (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
RustedBones authored Jan 14, 2025
1 parent e6974fd commit 355f214
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,17 @@ ThisBuild / githubWorkflowPublish := Seq(
ThisBuild / javacOptions ++= Seq("--release", "8")
ThisBuild / scalacOptions ++= Seq("-release", "8")

lazy val javaOnlySettings: Seq[Setting[?]] = Seq(
crossPaths := false,
autoScalaLibrary := false,
crossScalaVersions := Seq(scala3)
)

lazy val `sbt-avro-parent`: Project = project
.in(file("."))
.settings(
publish / skip := true
publish / skip := true,
crossScalaVersions := Nil
)
.aggregate(
`sbt-avro-compiler-api`,
Expand All @@ -77,17 +84,13 @@ lazy val `sbt-avro-parent`: Project = project

lazy val `sbt-avro-compiler-api`: Project = project
.in(file("api"))
.settings(
crossPaths := false,
autoScalaLibrary := false
)
.settings(javaOnlySettings)

lazy val `sbt-avro-compiler-bridge`: Project = project
.in(file("bridge"))
.dependsOn(`sbt-avro-compiler-api` % "provided")
.settings(javaOnlySettings)
.settings(
crossPaths := false,
autoScalaLibrary := false,
libraryDependencies ++= Seq(
Dependencies.Provided.AvroCompiler,
Dependencies.Test.Specs2Core
Expand Down

0 comments on commit 355f214

Please sign in to comment.