Skip to content

Commit e9cc528

Browse files
committed
Update build.sbt
1 parent c3e9a4a commit e9cc528

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.sbt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ Test / publishArtifact := false
6565

6666
pomIncludeRepository := { x => false }
6767

68+
Compile / unmanagedSourceDirectories ++= {
69+
if (scalaReleaseVersion.value > 2) {
70+
Seq(
71+
(LocalRootProject / baseDirectory).value / "src" / "main" / "scala-3"
72+
)
73+
} else {
74+
Seq(
75+
(LocalRootProject / baseDirectory).value / "src" / "main" / "scala-2"
76+
)
77+
}
78+
}
79+
6880
libraryDependencies ++= Seq(
6981
"org.slf4j" % "slf4j-api" % "1.7.36",
7082
"io.swagger.core.v3" % "swagger-core-jakarta" % "2.2.2",

0 commit comments

Comments
 (0)