-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
58 lines (55 loc) · 2.01 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
53
54
55
56
57
58
inThisBuild(
List(
organization := "app.tulz",
homepage := Some(url("https://github.com/tulz-app/stringdiff")),
licenses := List("MIT" -> url("https://github.com/tulz-app/stringdiff/blob/main/LICENSE.md")),
scmInfo := Some(ScmInfo(url("https://github.com/tulz-app/stringdiff"), "scm:git@github.com/tulz-app/laminext.git")),
developers := List(Developer("yurique", "Iurii Malchenko", "i@yurique.com", url("https://github.com/yurique"))),
scalaVersion := ScalaVersions.v213,
description := "String diff for Scala",
crossScalaVersions := Seq(
ScalaVersions.v212,
ScalaVersions.v213,
ScalaVersions.v3
),
Test / publishArtifact := false,
Test / parallelExecution := false,
githubWorkflowJavaVersions := Seq("openjdk@1.11.0"),
githubWorkflowTargetTags ++= Seq("v*"),
githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Tag("v"))),
githubWorkflowPublish := Seq(WorkflowStep.Sbt(List("ci-release"))),
githubWorkflowEnv ~= (_ ++ Map(
"PGP_PASSPHRASE" -> s"$${{ secrets.PGP_PASSPHRASE }}",
"PGP_SECRET" -> s"$${{ secrets.PGP_SECRET }}",
"SONATYPE_PASSWORD" -> s"$${{ secrets.SONATYPE_PASSWORD }}",
"SONATYPE_USERNAME" -> s"$${{ secrets.SONATYPE_USERNAME }}"
)),
versionScheme := Some("early-semver")
)
)
lazy val noPublish = Seq(
publishLocal / skip := true,
publish / skip := true,
publishTo := Some(Resolver.file("Unused transient repository", file("target/unusedrepo")))
)
lazy val stringdiff =
crossProject(JVMPlatform, JSPlatform)
.crossType(CrossType.Pure)
.in(file("stringdiff"))
.settings(
ScalaOptions.fixOptions,
libraryDependencies ++= Seq(
"org.scala-lang.modules" %%% "scala-collection-compat" % "2.4.4",
"org.scalatest" %%% "scalatest" % "3.2.9" % Test
)
)
lazy val root = project
.in(file("."))
.settings(noPublish)
.settings(
name := "app.tulz.stringdiff"
)
.aggregate(
stringdiff.js,
stringdiff.jvm
)