-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
86 lines (62 loc) · 2.13 KB
/
build.sbt
File metadata and controls
86 lines (62 loc) · 2.13 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
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
84
85
86
import ReleaseTransformations.*
name := "svalidator-play"
description := "A small plugin for integration of the SValidator validation library with the Play! web framework"
organization := "com.magaran"
pgpSigningKey := Some("E20C31E38E557DEEC82006986DC61FDE08C36DE2")
scalaVersion := "3.8.0"
val playVersion = "3.0.6"
scalacOptions ++= Seq("--deprecation", "--encoding", "UTF-8", "--feature", "--unchecked", "-Wunused:all", "-Werror")
scalafixOnCompile := false //disabled until scalafix catches up to scala 3.6.2
inThisBuild(
List(
semanticdbEnabled := true, // enable SemanticDB
)
)
licenses := Seq("MIT" -> url("https://github.com/magaransoft/svalidator-play/blob/main/LICENSE"))
homepage := Some(url("https://github.com/magaransoft/svalidator-play"))
scmInfo := Some(
ScmInfo(
browseUrl = url("https://github.com/magaransoft/svalidator-play"),
connection = "scm:git@github.com:magaransoft/svalidator-play.git"
)
)
developers := List(
Developer(
id = "NovaMage",
name = "Ángel Felipe Blanco Guzmán",
email = "novamage@magaran.com",
url = url("https://github.com/NovaMage")
)
)
releaseUseGlobalVersion := false
ThisBuild / versionScheme := Some("semver-spec")
publishMavenStyle := true
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true)
publishConfiguration := publishConfiguration.value.withOverwrite(false)
Test / publishArtifact := false
exportJars := true
Test / parallelExecution := false
libraryDependencies ++= Seq(
"org.playframework" %% "play" % playVersion % Provided,
"com.magaran" %% "svalidator" % "0.1.0"
)
pomIncludeRepository := { _ => false }
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommand("publishSigned"),
releaseStepCommand("sonaUpload"),
setNextVersion,
commitNextVersion,
pushChanges
)
ThisBuild / publishTo := {
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
else localStaging.value
}