-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sbt
59 lines (42 loc) · 1.53 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
import sbt.Keys._
import sbt._
name := "play-i18n"
description := "Messaging localization plugin for the Play framework 2"
organization := "com.github.karelcemus"
scalaVersion := "2.13.12"
crossScalaVersions := Seq(scalaVersion.value, "3.3.1")
val playVersion = "3.0.0"
libraryDependencies ++= Seq(
// play framework cache API
"org.playframework" %% "play" % playVersion % "provided",
// YAML parser, Java library
"org.yaml" % "snakeyaml" % "2.2",
// test framework
"org.specs2" %% "specs2-core" % "4.20.3" % "test",
// test module for play framework
"org.playframework" %% "play-test" % playVersion % "test",
"org.playframework" %% "play-specs2" % playVersion % "test"
)
javacOptions ++= Seq("-Xlint:unchecked", "-encoding", "UTF-8")
scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked", "-Yrangepos")
ThisBuild / versionScheme := Some("semver-spec")
homepage := Some(url("https://github.com/karelcemus/play-i18n"))
licenses := Seq("Apache 2" -> url("https://www.apache.org/licenses/LICENSE-2.0"))
publishMavenStyle := true
pomIncludeRepository := { _ => false }
scmInfo := Some(
ScmInfo(
url("https://github.com/KarelCemus/play-i18n.git"),
"scm:[email protected]:KarelCemus/play-i18n.git"
)
)
developers := List(
Developer(id="karel.cemus", name="Karel Cemus", email="", url=url("https://github.com/KarelCemus/"))
)
// Publish settings
publishTo := sonatypePublishToBundle.value
enablePlugins(GitVersioning)
git.gitTagToVersionNumber := { tag: String =>
if(tag matches "[0-9]+\\..*") Some(tag)
else None
}