-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.sbt
108 lines (85 loc) · 3.83 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
// Copyright (C) 2018 The Delphi Team.
// See the LICENCE file distributed with this work for additional
// information regarding copyright ownership.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
name := "delphi-crawler"
version := "1.0.0-SNAPSHOT"
scalaVersion := "2.12.4"
lazy val crawler = (project in file(".")).
enablePlugins(JavaAppPackaging).
enablePlugins(DockerPlugin).
settings (
dockerBaseImage := "delphihub/jre-alpine-openjfx"
).
enablePlugins(ScalastylePlugin).
enablePlugins(AshScriptPlugin).
enablePlugins(BuildInfoPlugin).
settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "de.upb.cs.swt.delphi.crawler"
)
scalastyleConfig := baseDirectory.value / "project" / "scalastyle-config.xml"
mainClass in (Compile, run) := Some("de.upb.cs.swt.delphi.crawler.Crawler")
mainClass in (Compile, packageBin) := Some("de.upb.cs.swt.delphi.crawler.Crawler")
mainClass in Compile := Some("de.upb.cs.swt.delphi.crawler.Crawler")
val akkaVersion = "2.5.14"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % Test,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion % Test,
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % "10.0.8",
"com.typesafe.akka" %% "akka-http" % "10.1.5"
)
libraryDependencies += "org.json4s" %% "json4s-jackson" % "3.5.3"
libraryDependencies += "com.pauldijou" %% "jwt-core" % "1.0.0"
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.2.3" % Runtime
val elastic4sVersion = "6.3.0"
libraryDependencies ++= Seq(
"com.sksamuel.elastic4s" %% "elastic4s-core" % elastic4sVersion,
// for the http client
"com.sksamuel.elastic4s" %% "elastic4s-http" % elastic4sVersion,
// if you want to use reactive streams
"com.sksamuel.elastic4s" %% "elastic4s-http-streams" % elastic4sVersion,
// testing
"com.sksamuel.elastic4s" %% "elastic4s-testkit" % elastic4sVersion % "test",
"com.sksamuel.elastic4s" %% "elastic4s-embedded" % elastic4sVersion % "test"
)
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
val opalVersion = "1.0.0"
libraryDependencies ++= Seq(
"de.opal-project" % "common_2.12" % opalVersion,
"de.opal-project" % "opal-developer-tools_2.12" % opalVersion
)
val mavenVersion = "3.5.2"
libraryDependencies ++= Seq (
"org.apache.maven" % "maven-core" % mavenVersion,
"org.apache.maven" % "maven-model" % mavenVersion,
"org.apache.maven" % "maven-repository-metadata" % mavenVersion,
"org.apache.maven" % "maven-resolver-provider" % mavenVersion
)
libraryDependencies ++= Seq(
"io.get-coursier" %% "coursier" % "1.0.1",
"io.get-coursier" %% "coursier-cache" % "1.0.1"
)
libraryDependencies += "org.apache.maven.indexer" % "indexer-reader" % "6.0.0"
libraryDependencies += "org.apache.maven.indexer" % "indexer-core" % "6.0.0"
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.2.3"
// Pinning secure versions of insecure transitive libraryDependencies
// Please update when updating dependencies above (including Play plugin)
libraryDependencies ++= Seq(
"com.google.guava" % "guava" % "25.1-jre",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.9"
)