-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
executable file
·164 lines (121 loc) · 4.85 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
////////////////////////////////////////////////////////////////////////////
// Project settings
////////////////////////////////////////////////////////////////////////////
name := """BIcenter"""
version := "1.0.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayJava, SbtWeb, BuildInfoPlugin).settings(
// Disable NPM node modules
JsEngineKeys.npmNodeModules in Assets := Nil,
JsEngineKeys.npmNodeModules in TestAssets := Nil
)
scalaVersion := "2.12.2"
////////////////////////////////////////////////////////////////////////////
// Resolvers
////////////////////////////////////////////////////////////////////////////
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
resolvers ++= Seq(
Resolver.mavenLocal,
"Pentaho Repository" at "https://public.nexus.pentaho.org/content/groups/omni/"
)
////////////////////////////////////////////////////////////////////////////
// Dependencies
////////////////////////////////////////////////////////////////////////////
libraryDependencies ++= Seq(
guice,
javaJdbc,
javaWs,
cacheApi,
ehcache,
// Database
javaJpa,
"org.hibernate" % "hibernate-entitymanager" % "5.1.0.Final",
"mysql" % "mysql-connector-java" % "5.1.49",
"net.sourceforge.jtds" % "jtds" % "1.3.1",
// Multi-language
"org.julienrf" %% "play-jsmessages" % "3.0.0",
// RequireJS
"org.webjars" % "requirejs" % "2.3.3",
// jQuery
"org.webjars" % "jquery" % "3.2.1",
// Underscore
"org.webjars" % "underscorejs" % "1.8.3",
// Bootstrap
"org.webjars" % "bootstrap" % "3.3.7" exclude("org.webjars", "jquery"),
// Font awesome
"org.webjars" % "font-awesome" % "4.7.0",
// Parse JSON
"com.google.code.gson" % "gson" % "2.8.0",
// Password encrypting
"org.mindrot" % "jbcrypt" % "0.3m",
// Quartz
"org.quartz-scheduler" % "quartz" % "2.3.0",
// Pentaho SDK
"pentaho-kettle" % "kettle-core" % "6.1.0.19-384",
"pentaho-kettle" % "kettle-dbdialog" % "6.1.0.19-384",
"pentaho-kettle" % "kettle-engine" % "6.1.0.19-384",
"pentaho" % "pentaho-capability-manager" % "6.1.0.19-384",
"pentaho-kettle" % "kettle-ui-swt" % "6.1.0.19-384",
"pentaho-kettle" % "kettle-json-plugin" % "7.0.0.1-37",
// Draw.io SDK
"de.twentyeleven.skysail" % "jgraphx-osgi" % "1.10.3.1",
// Jackson
"com.fasterxml.jackson.core" % "jackson-core" % "2.3.3",
"org.codehaus.jackson" % "jackson-core-asl" % "1.9.2",
"org.codehaus.jackson" % "jackson-mapper-asl" % "1.9.2",
// ESAPI
"org.owasp.esapi" % "esapi" % "2.1.0"
)
// Testing libraries for dealing with CompletionStage...
libraryDependencies ++= Seq(
"org.assertj" % "assertj-core" % "3.6.2" % Test,
"org.awaitility" % "awaitility" % "2.0.0" % Test,
// Test Database
"com.h2database" % "h2" % "1.4.194"
)
////////////////////////////////////////////////////////////////////////////
// Test settings
////////////////////////////////////////////////////////////////////////////
// Make verbose tests
testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit, "-a", "-v"))
////////////////////////////////////////////////////////////////////////////
// Build info settings
////////////////////////////////////////////////////////////////////////////
buildInfoKeys ++= Seq[BuildInfoKey](
name,
version,
scalaVersion,
sbtVersion,
BuildInfoKey.action("buildTime") {
System.currentTimeMillis
}
)
buildInfoPackage := "com.bmd.bicenter"
////////////////////////////////////////////////////////////////////////////
// Play settings
////////////////////////////////////////////////////////////////////////////
PlayKeys.externalizeResources := false
JsEngineKeys.engineType := JsEngineKeys.EngineType.Node
pipelineStages := Seq(rjs)
////////////////////////////////////////////////////////////////////////////
// Exclude documentation from dist package
////////////////////////////////////////////////////////////////////////////
sources in(Compile, doc) := Seq.empty
publishArtifact in(Compile, packageDoc) := false
////////////////////////////////////////////////////////////////////////////
// Handlebars settings
////////////////////////////////////////////////////////////////////////////
HbsKeys.root := "templates/"
HbsKeys.amd := true
////////////////////////////////////////////////////////////////////////////
// RequireJS settings
////////////////////////////////////////////////////////////////////////////
RjsKeys.paths += ("jsRoutes" -> ("/jsroutes" -> "empty:"))
RjsKeys.paths += ("messages" -> ("/messages" -> "empty:"))
RjsKeys.webJarCdns := Map()
RjsKeys.generateSourceMaps := false
excludeFilter in rjs := (excludeFilter in rjs).value || GlobFilter("*.css") // || GlobFilter("*.min.js")
////////////////////////////////////////////////////////////////////////////
// Less settings
////////////////////////////////////////////////////////////////////////////
LessKeys.compress in Assets := true
LessKeys.cleancss in Assets := true