forked from ant8e/sbt-i18n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
57 lines (45 loc) · 1.79 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
name := "sbt-i18n"
ThisBuild / organization := "tech.ant8e"
ThisBuild / organizationName := "ant8e"
ThisBuild / organizationHomepage := Some(url("https://github.com/ant8e"))
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/ant8e/sbt-i18n"),
"scm:[email protected]:ant8e/sbt-i18n.git"
)
)
ThisBuild / developers := List(
Developer(
id = "ant8e",
name = "Antoine Comte",
email = "[email protected]",
url = url("https://github.com/ant8e/sbt-i18n")
)
)
ThisBuild / description := "An sbt plugin to transform your i18n bundles into Scala code."
ThisBuild / startYear := Some(2018)
ThisBuild / licenses := List(
"Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")
)
ThisBuild / homepage := Some(url("https://github.com/ant8e/sbt-i18n"))
// Remove all additional repository other than Maven Central from POM
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / 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")
}
ThisBuild / publishMavenStyle := true
scalaVersion := "2.12.18"
sbtPlugin := true
libraryDependencies += "com.typesafe" % "config" % "1.4.3"
libraryDependencies += "org.scalactic" %% "scalactic" % "3.2.17" % "test"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.17" % "test"
console / initialCommands := """import tech.ant8e.sbt.i18n._"""
enablePlugins(SbtPlugin)
// set up 'scripted; sbt plugin for testing sbt plugins
scriptedLaunchOpts ++=
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
ThisBuild / scalafmtOnCompile := true
enablePlugins(GitVersioning)
git.useGitDescribe := true