-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
53 lines (46 loc) · 1.31 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
name := "sbt-web3j-generator"
lazy val bintraySettings = Seq(
bintrayRepository in ThisBuild := "sbt-plugins",
bintrayOrganization in ThisBuild := Some("anchormen"),
bintrayReleaseOnPublish in ThisBuild := false,
)
lazy val commonDependencies = Seq(
libraryDependencies += "org.web3j" % "codegen" % "3.2.0"
)
lazy val javaSettings = Seq(
javaOptions ++= Seq("-Xms1G", "-Xmx4G", "-XX:+CMSClassUnloadingEnabled"),
javacOptions ++= Seq(
"-source", "1.8",
"-encoding", "UTF-8"
),
javacOptions in(Compile, compile) ++= Seq(
"-target", "1.8",
"-Xlint:deprecation",
"-Xlint:unchecked"
)
)
lazy val pluginSettings = Seq(
conflictManager := ConflictManager.latestRevision,
licenses += ("MIT", url("https://opensource.org/licenses/MIT")),
organization := "nl.anchormen.sbt",
publishMavenStyle := false,
sbtPlugin := true,
version := "0.1.3"
)
lazy val scalaSettings = Seq(
scalaVersion := "2.12.4"
)
lazy val testSettings = Seq(
fork in Test := true,
logBuffered in Test := false,
parallelExecution in Test := false,
publishArtifact in Test := false
)
lazy val plugin = project
.in(file("."))
.settings(bintraySettings)
.settings(commonDependencies)
.settings(javaSettings)
.settings(pluginSettings)
.settings(scalaSettings)
.settings(testSettings)