-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
52 lines (46 loc) · 1.28 KB
/
build.sbt
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
47
48
49
50
51
52
ThisBuild / tlBaseVersion := "0.2"
ThisBuild / organization := "dev.hnaderi"
ThisBuild / organizationName := "Hossein Naderi"
ThisBuild / startYear := Some(2023)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List(
tlGitHubDev("hnaderi", "Hossein Naderi")
)
val LTSJava = JavaSpec.temurin("17")
val Scala213 = "2.13.16"
ThisBuild / crossScalaVersions := Seq(Scala213, "3.6.4")
ThisBuild / scalaVersion := Scala213
ThisBuild / tlJdkRelease := Some(17)
ThisBuild / githubWorkflowJavaVersions := Seq(LTSJava)
ThisBuild / githubWorkflowOSes :=
Seq(
"ubuntu-latest",
"macos-13",
"macos-latest",
"windows-2022"
)
ThisBuild / githubWorkflowAddedJobs += WorkflowJob(
id = "post-build",
name = "post build",
needs = List("build"),
steps = List(
WorkflowStep.Run(
commands = List("echo success!"),
name = Some("post build")
)
),
scalas = Nil,
javas = Nil
)
lazy val root = tlCrossRootProject.aggregate(lib, example)
lazy val lib = crossProject(JVMPlatform, NativePlatform)
.crossType(CrossType.Full)
.in(file("lib"))
.settings(
name := "readpassword"
)
lazy val example = crossProject(JVMPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("example"))
.dependsOn(lib)
.enablePlugins(NoPublishPlugin)