forked from julianpeeters/sbt-avrohugger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
50 lines (44 loc) · 1.84 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
ThisBuild / organization := "com.julianpeeters"
ThisBuild / description := "Sbt plugin for compiling Avro to Scala"
ThisBuild / version := "2.8.4"
ThisBuild / versionScheme := Some("semver-spec")
enablePlugins(SbtPlugin)
(Global / run / fork) := true
(Global / run / connectInput) := true
(Global / run / outputStrategy) := Some(StdoutOutput)
ThisBuild / scalaVersion := "2.12.20"
ThisBuild / crossSbtVersions := Seq(sbtVersion.value)
ThisBuild / scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-Ywarn-value-discard")
ThisBuild / libraryDependencies ++= Seq(
"com.julianpeeters" %% "avrohugger-core" % "2.8.4",
"com.julianpeeters" %% "avrohugger-filesorter" % "2.8.4",
"io.spray" %% "spray-json" % "1.3.6",
"org.specs2" %% "specs2-core" % "4.20.2" % "test")
ThisBuild / publishMavenStyle := true
Test / publishArtifact := false
ThisBuild / publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / licenses := Seq("Apache 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
ThisBuild / homepage := Some(url(s"https://github.com/julianpeeters/${name.value}"))
ThisBuild / pomExtra := (
<scm>
<url>git://github.com/julianpeeters/sbt-avrohugger.git</url>
<connection>scm:git://github.com/julianpeeters/sbt-avrohugger.git</connection>
</scm>
<developers>
<developer>
<id>julianpeeters</id>
<name>Julian Peeters</name>
<url>http://github.com/julianpeeters</url>
</developer>
</developers>)
ThisBuild / scriptedLaunchOpts := { scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
}
ThisBuild / scriptedBufferLog := false