Skip to content

Commit c796161

Browse files
authored
Merge pull request #157 from delphi-hub/release/1.0.1
Release/1.0.1
2 parents c43af82 + 7f63aba commit c796161

37 files changed

+4472
-3921
lines changed

.travis.yml

+23-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
1-
language: scala
2-
scala:
3-
- 2.12.4
1+
matrix:
2+
include:
3+
language: scala
4+
scala:
5+
- 2.9.3
6+
script:
7+
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then sbt ++$TRAVIS_SCALA_VERSION test; fi'
8+
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sbt ++$TRAVIS_SCALA_VERSION coverage test coverageReport coverageAggregate codacyCoverage; fi'
9+
language: node_js
10+
node_js:
11+
- "12"
12+
addons:
13+
apt:
14+
sources:
15+
- google-chrome
16+
packages:
17+
- google-chrome-stable
418

5-
addons:
6-
apt:
7-
sources:
8-
- google-chrome
9-
packages:
10-
- google-chrome-stable
19+
before_script:
20+
- npm install -g @angular/cli
21+
script:
22+
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then cd client && npm install && ng build --prod && npm run test -- --no-progress --browsers=ChromeHeadlessCI --source-map=false && cd .. ; fi'
23+
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cd client && npm install && ng build --prod && npm run test -- --no-progress --browsers=ChromeHeadlessCI --source-map=false && cd .. ; fi'
24+
1125

12-
before_install:
13-
- npm install -g @angular/cli
14-
script:
15-
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then sbt ++$TRAVIS_SCALA_VERSION test; cd client && npm install && ng build --prod && npm run test -- --no-progress --browsers=ChromeHeadlessCI --source-map=false && cd .. ; fi'
16-
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sbt ++$TRAVIS_SCALA_VERSION coverage test coverageReport coverageAggregate codacyCoverage; cd client && npm install && ng build --prod && npm run test -- --no-progress --browsers=ChromeHeadlessCI --source-map=false && cd .. ; fi'
1726
after_success:
1827
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash <(curl -s https://codecov.io/bash); fi'

app/module/Module.scala

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
package module
2020

21-
import com.google.inject.{AbstractModule}
21+
import com.google.inject.AbstractModule
2222
import com.typesafe.config.Config
2323
import controllers.{MyExecutionContext, MyExecutionContextImpl}
2424
import net.codingwell.scalaguice.ScalaModule
@@ -55,9 +55,10 @@ class Module extends AbstractModule with ScalaModule {
5555

5656
/**
5757
* Bind types for injection
58+
*
5859
* @return
5960
*/
60-
def configure() {
61+
override def configure() {
6162
bind(classOf[MyExecutionContext]).to(classOf[MyExecutionContextImpl])
6263
}
6364
}

build.sbt

+28-23
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,34 @@ name := "delphi-management"
55
organization := "de.upb"
66

77

8-
version := "1.0.0"
8+
version := "1.0.1"
99

1010

1111
scalaVersion := "2.12.4"
1212

1313
lazy val management = (project in file(".")).enablePlugins(SbtWeb).enablePlugins(PlayScala)
14-
.enablePlugins(BuildInfoPlugin).
15-
settings(
16-
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
17-
buildInfoPackage := "de.upb.cs.swt.delphi.management",
18-
(scalastyleSources in Compile) := {
19-
// all .scala files in "src/main/scala"
20-
val scalaSourceFiles = ((scalaSource in Compile).value ** "*.scala").get
21-
val fSep = java.io.File.separator // "/" or "\"
22-
val dirNameToExclude = "app" + fSep + "models" // "com/folder_to_exclude"
23-
scalaSourceFiles.filterNot(_.getAbsolutePath.contains(dirNameToExclude))
24-
}
25-
)
14+
.enablePlugins(BuildInfoPlugin).
15+
settings(
16+
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
17+
buildInfoPackage := "de.upb.cs.swt.delphi.management",
18+
(scalastyleSources in Compile) := {
19+
// all .scala files in "src/main/scala"
20+
val scalaSourceFiles = ((scalaSource in Compile).value ** "*.scala").get
21+
val fSep = java.io.File.separator // "/" or "\"
22+
val dirNameToExclude = "app" + fSep + "models" // "com/folder_to_exclude"
23+
scalaSourceFiles.filterNot(_.getAbsolutePath.contains(dirNameToExclude))
24+
}
25+
)
2626

2727
scalastyleConfig := baseDirectory.value / "project" / "scalastyle-config.xml"
2828

2929
val conf = ConfigFactory.parseFile(new File("conf/application.conf")).resolve()
30-
val appPortManagement = conf.getString("app.portManagement")
30+
val appPortManagement = conf.getString("app.portManagement")
3131

3232
PlayKeys.devSettings := Seq(
33-
"play.server.http.port" -> appPortManagement
33+
"play.server.http.port" -> appPortManagement
3434
)
35-
pipelineStages := Seq(digest,gzip)
35+
pipelineStages := Seq(digest, gzip)
3636

3737
resolvers += Resolver.sonatypeRepo("snapshots")
3838
resolvers += Resolver.jcenterRepo
@@ -41,13 +41,18 @@ libraryDependencies += guice
4141
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "3.1.2" % Test
4242
libraryDependencies += "net.codingwell" %% "scala-guice" % "4.1.1"
4343
libraryDependencies += "com.iheart" %% "ficus" % "1.4.3"
44-
libraryDependencies += "org.webjars" % "bootstrap" % "4.1.0"
45-
libraryDependencies += "org.webjars" %% "webjars-play" % "2.7.0"
46-
libraryDependencies += "com.adrianhurt" %% "play-bootstrap" % "1.4-P26-B4-SNAPSHOT"
44+
libraryDependencies += "org.webjars" % "bootstrap" % "4.3.1" exclude("org.webjars", "jquery")
45+
//Snyk vulnerability
46+
libraryDependencies += "org.webjars" % "jquery" % "3.4.0"
47+
libraryDependencies += "org.webjars" %% "webjars-play" % "2.7.3" exclude("com.fasterxml.jackson.core", "jackson-databind")
48+
//Snyk vulnerability high severity
49+
libraryDependencies += "com.fasterxml.jackson.core" % "jackson-databind" % "2.9.10.1"
50+
libraryDependencies += "com.adrianhurt" %% "play-bootstrap" % "1.5-P27-B3" exclude ("com.fasterxml.jackson.datatype","jackson-datatype-jsr310")
51+
libraryDependencies += "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.9.8"
4752
libraryDependencies += "eu.bitwalker" % "UserAgentUtils" % "1.20"
48-
libraryDependencies += "com.typesafe.akka" %% "akka-http" % "10.1.5"
49-
libraryDependencies += "com.typesafe.akka" %% "akka-stream" % "2.5.14"
50-
libraryDependencies += "com.typesafe.akka" %% "akka-http-spray-json" % "10.1.5"
53+
libraryDependencies += "com.typesafe.akka" %% "akka-http" % "10.1.10"
54+
libraryDependencies += "com.typesafe.akka" %% "akka-stream" % "2.5.16"
55+
libraryDependencies += "com.typesafe.akka" %% "akka-http-spray-json" % "10.1.6"
5156
libraryDependencies += ws
5257

5358
routesGenerator := InjectedRoutesGenerator
@@ -58,7 +63,7 @@ libraryDependencies ++= Seq(
5863
"com.nimbusds" % "nimbus-jose-jwt" % "5.14",
5964
"org.bouncycastle" % "bcprov-jdk15on" % "1.60",
6065
"com.google.guava" % "guava" % "25.1-jre",
61-
"org.apache.commons" % "commons-compress" % "1.18"
66+
"org.apache.commons" % "commons-compress" % "1.19"
6267
)
6368

6469
libraryDependencies += "com.pauldijou" %% "jwt-core" % "1.0.0"
File renamed without changes.

0 commit comments

Comments
 (0)