-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
46 lines (39 loc) · 1.64 KB
/
build.sbt
File metadata and controls
46 lines (39 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
ThisBuild / tlBaseVersion := "0.16"
ThisBuild / organization := "ai.entrolution"
ThisBuild / organizationName := "Greg von Nessi"
ThisBuild / startYear := Some(2023)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers ++= List(
tlGitHubDev("gvonness", "Greg von Nessi")
)
// CI configuration - Java 21 required for Smile 3.x
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("21"))
ThisBuild / githubWorkflowOSes := Seq("blacksmith-2vcpu-ubuntu-2204")
// Only publish on tag pushes (not main) to avoid SNAPSHOT publish failures
ThisBuild / githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Tag("v")))
scalaVersion := DependencyVersions.scala2p13Version
ThisBuild / crossScalaVersions := Seq(DependencyVersions.scala2p13Version, DependencyVersions.scala3Version)
ThisBuild / tlVersionIntroduced := Map("2.13" -> "0.16", "3" -> "0.16")
Global / idePackagePrefix := Some("ai.entrolution")
Global / excludeLintKeys += idePackagePrefix
lazy val commonSettings = Seq(
scalaVersion := DependencyVersions.scala2p13Version,
scalacOptions ++= (
if (scalaVersion.value.startsWith("2."))
Seq("-Xlint:_", "-Ywarn-unused:-implicits", "-Ywarn-value-discard", "-Ywarn-dead-code")
else
Seq("-Wunused:all")
)
)
lazy val thylacine = (project in file("."))
.settings(
commonSettings,
name := "thylacine",
libraryDependencies ++= Dependencies.thylacine,
crossScalaVersions := Seq(
DependencyVersions.scala2p13Version,
DependencyVersions.scala3Version
),
Test / parallelExecution := false,
Test / fork := true
)