-
Notifications
You must be signed in to change notification settings - Fork 28
/
build.sbt
29 lines (28 loc) · 1.44 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
lazy val sbtJavaFormatter = project.in(file(".")).aggregate(plugin).settings(skip in publish := true)
lazy val plugin = project
.in(file("plugin"))
.enablePlugins(SbtPlugin)
.settings(
organization := "com.lightbend.sbt",
organizationName := "Lightbend Inc.",
organizationHomepage := Some(url("https://lightbend.com")),
name := "sbt-java-formatter",
homepage := scmInfo.value.map(_.browseUrl),
scmInfo := Some(ScmInfo(url("https://github.com/sbt/sbt-java-formatter"), "scm:git:[email protected]:sbt/sbt-java-formatter.git")),
developers := List(Developer("ktoso", "Konrad 'ktoso' Malawski", "<[email protected]>", url("https://github.com/ktoso"))),
libraryDependencies ++= Seq("com.google.googlejavaformat" % "google-java-format" % "1.7"),
startYear := Some(2015),
description := "Formats Java code in your project.",
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")),
publishTo := Some(if (isSnapshot.value) Opts.resolver.sonatypeSnapshots else Opts.resolver.sonatypeStaging),
crossSbtVersions := List("1.3.0"),
scalacOptions ++= Seq("-encoding", "UTF-8", "-unchecked", "-deprecation", "-feature"),
javacOptions ++= Seq("-encoding", "UTF-8"),
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
},
scriptedBufferLog := false,
scalafmtOnCompile := true,
)
.enablePlugins(AutomateHeaderPlugin)