This repository was archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
42 lines (37 loc) · 1.5 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
lazy val scala213 = "2.13.5"
lazy val scala212 = "2.12.13"
// Update this variable to publish your own release
lazy val githubOwner = "CastleOne"
lazy val supportedScalaVersions = List(scala213, scala212)
ThisBuild / scalaVersion := scala213
lazy val emailaddress = (project in file("."))
.settings(
/**
* ~/.sbt/github-maven.credentials should contain the following:
* realm=
* host=maven.pkg.github.com
* user=<GITHUB USERNAME HERE>
* password=<GITHUB PERSONAL ACCESS TOKEN HERE>
* You should be able to publish your version using `sbt + publish`
*/
credentials += Credentials(Path.userHome / ".sbt" / "github-maven.credentials"),
resolvers += s"${githubOwner.toLowerCase}-github" at s"https://maven.pkg.github.com/$githubOwner",
publishMavenStyle := true,
publishArtifact in Test := false,
skip in publish := false,
publishTo := Option("github" at s"https://maven.pkg.github.com/$githubOwner/emailaddress"),
organization := githubOwner.toLowerCase,
name := "emailaddress",
crossScalaVersions := supportedScalaVersions,
scalacOptions ++= Seq(
"-feature",
"-language:implicitConversions"
),
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.9.2" % Provided,
"org.scalatest" %% "scalatest" % "3.2.7" % Test,
"org.pegdown" % "pegdown" % "1.6.0" % Test,
"org.scalacheck" %% "scalacheck" % "1.14.1" % Test,
"org.scalatestplus" %% "scalacheck-1-15" % "3.2.7.0" % "test"
)
)