Skip to content

Commit 92a3434

Browse files
authored
Merge branch 'develop' into Feature/4/scalastyle
2 parents 95fba8a + c798971 commit 92a3434

File tree

7 files changed

+26
-25
lines changed

7 files changed

+26
-25
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
language: scala
22
scala:
3-
- 2.12.4
3+
- 2.12.4
4+
script:
5+
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then sbt ++$TRAVIS_SCALA_VERSION test; fi'
6+
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sbt ++$TRAVIS_SCALA_VERSION coverage test coverageReport coverageAggregate codacyCoverage; fi'
7+
after_success:
8+
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash <(curl -s https://codecov.io/bash); fi'

LICENSE

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -175,18 +175,7 @@
175175

176176
END OF TERMS AND CONDITIONS
177177

178-
APPENDIX: How to apply the Apache License to your work.
179-
180-
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "[]"
182-
replaced with your own identifying information. (Don't include
183-
the brackets!) The text should be enclosed in the appropriate
184-
comment syntax for the file format. We also recommend that a
185-
file or class name and description of purpose be included on the
186-
same "printed page" as the copyright notice for easier
187-
identification within third-party archives.
188-
189-
Copyright [yyyy] [name of copyright owner]
178+
Copyright 2018 The Delphi Team (represented by Ben Hermann)
190179

191180
Licensed under the Apache License, Version 2.0 (the "License");
192181
you may not use this file except in compliance with the License.

build.sbt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
name := "delphi-cli"
1+
scalaVersion := "2.12.4"
22

3+
name := "delphi-cli"
34
version := "1.0.0-SNAPSHOT"
4-
55
maintainer := "Ben Hermann <[email protected]>"
66

7-
packageSummary := "Windows Package for Delphi-cli"
8-
9-
packageDescription := """Windows Package for Delphi-cli"""
7+
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"))
108

9+
packageSummary := "Windows Package for the Delphi CLI"
10+
packageDescription := """Windows Package for the Delphi CLI"""
1111
wixProductId := "ce07be71-510d-414a-92d4-dff47631848a"
12-
1312
wixProductUpgradeId := "4552fb0e-e257-4dbd-9ecb-dba9dbacf424"
1413

15-
scalaVersion := "2.12.4"
14+
scalastyleConfig := baseDirectory.value / "project" / "scalastyle_config.xml"
1615

1716
libraryDependencies += "com.github.scopt" %% "scopt" % "3.7.0"
1817
libraryDependencies ++= Seq(

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version = 0.13.17
1+
sbt.version = 1.1.1

project/plugins.sbt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
// build management and packaging
12
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.7.0")
23
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.2")
4+
5+
// coverage
6+
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")
7+
addSbtPlugin("com.codacy" % "sbt-codacy-coverage" % "1.3.12")
8+
9+
// preparation for dependency checking
10+
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.9.1")
11+
12+
// scalastyle
313
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0")

src/main/scala/de/upb/cs/swt/delphi/cli/Config.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ package de.upb.cs.swt.delphi.cli
77
* @param mode The command to be run
88
*/
99
case class Config (server : String = sys.env.getOrElse("DELPHI_SERVER", "https://delphi.cs.uni-paderborn.de/api/"),
10-
verbose: Boolean = false, mode : String = "", args : List[String] = List(), opts : List[String] = List()) {
11-
12-
}
10+
verbose: Boolean = false, mode : String = "", args : List[String] = List(), opts : List[String] = List())

src/main/scala/de/upb/cs/swt/delphi/cli/commands/RetrieveCommand.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package de.upb.cs.swt.delphi.cli.commands
22

33
import de.upb.cs.swt.delphi.cli.Config
4-
import io.Source
4+
import scala.io.Source
55

66
/**
77
* The implementation of the retrieve command.

0 commit comments

Comments
 (0)