-
Notifications
You must be signed in to change notification settings - Fork 55
/
build.sbt
69 lines (60 loc) · 2.24 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
ThisBuild / tlBaseVersion := "0.5"
ThisBuild / organization := "org.typelevel"
ThisBuild / organizationName := "Typelevel"
ThisBuild / startYear := Some(2022)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers ++= List(
tlGitHubDev("DavidGregory084", "David Gregory")
)
ThisBuild / semanticdbEnabled := true
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision
ThisBuild / versionScheme := Some(VersionScheme.EarlySemVer)
ThisBuild / scalaVersion := "2.12.20"
lazy val `sbt-tpolecat` = project
.in(file("."))
.enablePlugins(NoPublishPlugin)
.aggregate(
`sbt-tpolecat-plugin`,
`sbt-tpolecat-scalafix`.all
)
lazy val `sbt-tpolecat-plugin` = project
.in(file("plugin"))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-tpolecat",
moduleName := "sbt-tpolecat",
description := "scalac options for the enlightened",
Compile / headerCreate := { (Compile / headerCreate).triggeredBy(Compile / compile).value },
Test / headerCreate := { (Test / headerCreate).triggeredBy(Test / compile).value },
scalacOptions += "-Xlint:unused",
libraryDependencies ++= Seq(
"org.typelevel" %% "scalac-options" % "0.1.7",
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
"org.scalacheck" %% "scalacheck" % "1.18.1" % Test,
"org.scalatestplus" %% "scalacheck-1-16" % "3.2.14.0" % Test
),
mimaPreviousArtifacts := Set(
),
mimaBinaryIssueFilters ++= Seq(
),
scriptedBufferLog := false,
scriptedLaunchOpts := scriptedLaunchOpts.value ++ Seq(
"-Xmx1024M",
"-Dplugin.version=" + version.value
),
test := {
(Test / test).value
scripted.toTask("").value
}
)
lazy val `sbt-tpolecat-scalafix` = scalafixProject("sbt-tpolecat")
.rulesSettings(mimaPreviousArtifacts := Set.empty)
.inputSettings(
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.4.0"),
tlFatalWarnings := false
)
.inputConfigure(_.enablePlugins(SbtPlugin))
.outputSettings(tlFatalWarnings := false)
.outputConfigure(_.dependsOn(`sbt-tpolecat-plugin`))
.outputConfigure(_.enablePlugins(SbtPlugin))
.testsSettings(scalaVersion := _root_.scalafix.sbt.BuildInfo.scala212)