-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
93 lines (84 loc) · 2.86 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import definitions.GitHubActionsCI
import org.scoverage.coveralls.Imports.CoverallsKeys._
val ideExcludedDirectories = SettingKey[Seq[File]]("ide-excluded-directories")
.withRank(KeyRanks.Invisible)
lazy val `sbt-scommons-plugin` = (project in file("."))
.enablePlugins(SbtPlugin)
.settings(
scriptedLaunchOpts := { scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-XX:MaxPermSize=256M", "-Dplugin.version=" + version.value)
},
scriptedBufferLog := false
)
.settings(
sbtPlugin := true,
organization := "org.scommons.sbt",
name := "sbt-scommons-plugin",
description := "Sbt auto-plugin with common Scala/Scala.js tasks/utils",
scalacOptions ++= Seq(
//"-Xcheckinit",
"-Xfatal-warnings",
"-feature",
"-deprecation",
"-encoding", "UTF-8",
"-unchecked",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture"
),
ideExcludedDirectories := {
val base = baseDirectory.value
List(
base / ".idea",
base / "target"
)
},
coverageMinimum := 80,
coverageHighlighting := false,
coverageExcludedPackages := ".*mecha.*;.*project.*",
coverallsFailBuildOnError := true,
coverallsService := GitHubActionsCI.jobId.map(_ => GitHubActionsCI),
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.1.0"),
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.10.1"),
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.21.0"),
//addSbtPlugin("com.storm-enroute" % "mecha" % "0.3"), //TODO: use version for sbt 1.x
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.14" % "test",
"org.scalamock" %% "scalamock" % "5.2.0" % "test"
),
//resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
//
// publish/release related settings:
//
sonatypeProfileName := "org.scommons",
publishMavenStyle := true,
Test / publishArtifact := false,
publishTo := sonatypePublishToBundle.value,
pomExtra := {
<url>https://github.com/scommons/sbt-scommons-plugin</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:scommons/sbt-scommons-plugin.git</url>
<connection>scm:[email protected]:scommons/sbt-scommons-plugin.git</connection>
</scm>
<developers>
<developer>
<id>viktorp</id>
<name>Viktor Podzigun</name>
<url>https://github.com/viktor-podzigun</url>
</developer>
</developers>
},
pomIncludeRepository := {
_ => false
}
)