-
Notifications
You must be signed in to change notification settings - Fork 30
/
build.sbt
78 lines (67 loc) · 2.77 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
70
71
72
73
74
75
76
77
78
/*
*
* Copyright (c) 2017 Radicalbit
*
* This file is part of flink-JPMML
*
* flink-JPMML is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* flink-JPMML is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with flink-JPMML. If not, see <http://www.gnu.org/licenses/>.
*
*/
resolvers in ThisBuild ++= Seq(
"Apache Development Snapshot Repository" at "https://repository.apache.org/content/repositories/snapshots/",
Resolver.mavenLocal
)
lazy val noPublishSetting = Seq(
publish := {},
publishLocal := {},
publishArtifact := false
)
lazy val root = project
.in(file("."))
.settings(noPublishSetting)
.enablePlugins(ScalaUnidocPlugin)
.settings(
name := "flink-jpmml",
crossScalaVersions := Seq("2.10.6", "2.11.11"),
unidocProjectFilter in (ScalaUnidoc, unidoc) := inAnyProject -- inProjects(`flink-jpmml-examples`,
`flink-jpmml-assets`)
)
.aggregate(`flink-jpmml-examples`, `flink-jpmml-scala`, `flink-jpmml-assets`)
lazy val `flink-jpmml-assets` = project
.enablePlugins(AutomateHeaderPlugin)
.settings(LicenseSetting.settings: _*)
.settings(Commons.settings: _*)
.settings(PublishSettings.settings: _*)
lazy val `flink-jpmml-examples` = project
.enablePlugins(AutomateHeaderPlugin)
.settings(LicenseSetting.settings: _*)
.settings(Commons.settings: _*)
.settings(PublishSettings.settings: _*)
.settings(libraryDependencies ++= Dependencies.Examples.libraries)
.dependsOn(`flink-jpmml-scala`)
lazy val `flink-jpmml-scala` = project
.enablePlugins(AutomateHeaderPlugin)
.settings(LicenseSetting.settings: _*)
.settings(Commons.settings: _*)
.settings(PublishSettings.settings: _*)
.settings(libraryDependencies ++= Dependencies.Scala.libraries)
.dependsOn(`flink-jpmml-assets`)
onLoad in Global := (Command.process("scalafmt", _: State)) compose (onLoad in Global).value
// make run command include the provided dependencies
run in Compile := Defaults.runTask(fullClasspath in Compile, mainClass in (Compile, run), runner in (Compile, run))
// exclude Scala library from assembly
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)
// assign default options to JUnit test execution
testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v")
fork in test := false