-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
56 lines (54 loc) · 2.32 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
import sbt.Keys.{ organization, publishArtifact }
lazy val root = (project in file(".")).settings(
name := "sbt-schema-registry-downloader",
organization := "io.github.broilogabriel",
description := "Sbt plugin to download avro schemas from schema registry",
version := "0.2.1",
// scalaVersion := "2.12.6",
scalaVersion := appConfiguration.value.provider.scalaProvider.version,
mainClass in (Compile, run) := Some("io.github.broilogabriel.Main"),
sbtPlugin := true,
sbtVersion := "1.2.8",
coverageEnabled := false,
// workaround to be able to overwrite the file when executing publishLocal
isSnapshot := version.value.trim.endsWith("SNAPSHOT"),
publishMavenStyle := true,
publishArtifact in Test := false,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
licenses := Seq(
"Apache 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
homepage := Some(
url("https://github.com/broilogabriel/sbt-schema-registry-downloader")
),
pomExtra := {
<scm>
<url>git://github.com/broilogabriel/sbt-schema-registry-downloader.git</url>
<connection>scm:git://github.com/broilogabriel/sbt-schema-registry-downloader.git</connection>
</scm>
<developers>
<developer>
<id>broilogabriel</id>
<name>Gabriel Broilo</name>
<url>https://github.com/broilogabriel</url>
</developer>
</developers>
}
)
libraryDependencies ++= Seq(
"org.scalactic" %% "scalactic" % "3.0.5",
"org.scalatest" %% "scalatest" % "3.0.5" % Test,
"org.scalamock" %% "scalamock" % "4.1.0" % Test,
"io.argonaut" %% "argonaut" % "6.2",
"com.typesafe.akka" %% "akka-http" % "10.1.10",
"com.typesafe.akka" %% "akka-stream" % "2.5.25",
"com.typesafe.akka" %% "akka-stream-testkit" % "2.5.25" % Test,
"com.typesafe.akka" %% "akka-slf4j" % "2.5.25",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.0"
)