-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
83 lines (79 loc) · 3.05 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations.*
import sbtrelease.ReleaseStateTransformations.{checkSnapshotDependencies, inquireVersions, runClean}
import xerial.sbt.Sonatype.*
ThisBuild / sonatypeCredentialHost := sonatypeCentralHost
organization := "io.github.gmkumar2005"
organizationName := "io.github.gmkumar2005"
scalaVersion := "2.12.20"
sonatypeProfileName := "io.github.gmkumar2005"
versionScheme := Some("early-semver")
licenses := Seq(
"APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")
)
sonatypeProjectHosting := Some(
GitHubHosting("gmkumar2005", "scala-js-env-playwright", "[email protected]")
)
homepage := Some(url("https://www.akkagrpc.com"))
organizationHomepage := Some(url("https://www.akkagrpc.com"))
scmInfo := Some(
ScmInfo(
url("https://github.com/gmkumar2005/scala-js-env-playwright"),
"scm:[email protected]:gmkumar2005/scala-js-env-playwright.git"
)
)
developers := List(
Developer(
id = "gmkumar2005",
name = "Kiran Kumar",
email = "[email protected]",
url = url("https://www.akkagrpc.com")
)
)
//publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))
//publishTo := Some(Resolver.file("local-ivy-repo", file(Path.userHome.absolutePath + "/.ivy2/local"))(Patterns(true, Resolver.mavenStyleBasePattern)))
//val localIvyRepo = Resolver.file("local-ivy-repo", file(Path.userHome.absolutePath + "/.ivy2/local"))(Patterns(true, Resolver.mavenStyleBasePattern))
lazy val root = (project in file(".")).settings(
name := "scala-js-env-playwright",
libraryDependencies ++= Seq(
"com.microsoft.playwright" % "playwright" % "1.49.0",
"org.scala-js" %% "scalajs-js-envs" % "1.4.0",
"com.google.jimfs" % "jimfs" % "1.3.0",
"com.outr" %% "scribe" % "3.15.2",
"org.typelevel" %% "cats-effect" % "3.5.7",
"org.scala-js" %% "scalajs-js-envs-test-kit" % "1.4.0" % Test,
"com.novocode" % "junit-interface" % "0.11" % Test
),
javacOptions += "-nowarn",
javacOptions -= "-Werror",
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(action = st => Command.process("publishSigned", st, _ => ())),
setNextVersion,
commitNextVersion
),
publishMavenStyle := true,
publishTo := sonatypePublishToBundle.value,
// publishTo := {
// val nexus = "https://s01.oss.sonatype.org/"
// if (isSnapshot.value)
// Some("snapshots" at nexus + "content/repositories/snapshots")
// else
// Some("releases" at nexus + "service/local/staging/deploy/maven2")
// },
// credentials += Credentials(
// "Sonatype Nexus Repository Manager",
// "s01.oss.sonatype.org",
// sys.env("SONATYPE_USERNAME"),
// sys.env("SONATYPE_PASSWORD")),
// For all Sonatype accounts created on or after February 2021
// sonatypeCredentialHost := "s01.oss.sonatype.org",
Test / parallelExecution := true,
Test / publishArtifact := false,
usePgpKeyHex("F7E440260BAE93EB4AD2723D6613CA76E011F638")
)