This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbuild.sbt
70 lines (63 loc) · 1.74 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
import java.time.Year
import de.heikoseeberger.sbtheader.License
enablePlugins(AutomateHeaderPlugin)
enablePlugins(SbtPlugin)
name := "sbt-sonar"
organization := "com.sonar-scala"
homepage := Some(url("https://github.com/sonar-scala/sbt-sonar"))
// Licence
organizationName := "All sbt-sonar contributors"
startYear := Some(2016)
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
headerLicense := Some(
License.ALv2(
s"${startYear.value.get}-${Year.now}",
organizationName.value
)
)
excludeFilter.in(headerResources) := "*.scala"
scmInfo := Some(
ScmInfo(
url("https://github.com/sonar-scala/sbt-sonar"),
"scm:git:https://github.com/sonar-scala/sbt-sonar.git",
Some("scm:git:git@github.com:sonar-scala/sbt-sonar.git")
)
)
developers := List(
Developer(
"mwz",
"Michael Wizner",
"@mwz",
url("https://github.com/mwz")
)
)
crossSbtVersions := Seq("0.13.18", "1.5.0")
sbtPlugin := true
scalacOptions ++= Seq(
"-encoding",
"UTF-8",
"-unchecked",
"-deprecation"
)
libraryDependencies ++= List(
"org.sonarsource.scanner.api" % "sonar-scanner-api" % "2.16.1.361" % Compile,
"org.scalatest" %% "scalatest" % "3.2.9" % Test,
"org.scalatestplus" %% "mockito-1-10" % "3.1.0.0" % Test,
"org.mockito" % "mockito-core" % "3.10.0" % Test
)
scalafmtOnCompile in ThisBuild :=
sys.env
.get("CI")
.forall(_.toLowerCase == "false")
cancelable in Global := true
// Scripted
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++ Seq(
"-Xmx1024M",
"-Dplugin.version=" + version.value,
"-Dsonar.host.url=http://localhost"
)
}
scriptedBufferLog := false
// Sonatype
sonatypeCredentialHost := "s01.oss.sonatype.org"