Skip to content

Commit 877203e

Browse files
Prepare repository for next .github release and SBT build improvements (#122)
* Bumps up dependencies and sbt * Reorders settings for making them simpler * Updates command aliases * Moves .docs to docs. Updates sbt module too * Simplifies build * Removes outdated smoketests module * Removes unused imports. Reorder settings * Updates sbt plugins * Updates docs
1 parent 1196fee commit 877203e

File tree

22 files changed

+43
-167
lines changed

22 files changed

+43
-167
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ the code. Pull requests are also welcome.
1111

1212
People are expected to follow the [Code of Conduct](CODE_OF_CONDUCT.md) when discussing _evaluator_ on the Github page or other venues.
1313

14-
If you are being harassed, please contact one of [us](AUTHORS.md#maintainers) immediately so that we can support you. In case you cannot get in touch with us please write an email to [47 Degrees](mailto:scala-exercises@47deg.com).
14+
If you are being harassed, please contact one of [us](AUTHORS.md#maintainers) immediately so that we can support you. In case you cannot get in touch with us please write an email to [47 Degrees Open Source](mailto:hello@47deg.com).
1515

1616
## How can I help?
1717

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright (C) 2016-2020 47 Degrees <https://47deg.com>
189+
Copyright (C) 2016-2020 47 Degrees Open Source <https://www.47deg.com>
190190

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

NOTICE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
evaluator
66

7-
Copyright (c) 2016-2020 47 Degrees. All rights reserved.
7+
Copyright (c) 2016-2020 47 Degrees Open Source. All rights reserved.
88

99
Licensed under Apache-2.0. See [LICENSE](LICENSE.md) for terms.

build.sbt

+13-24
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
addCommandAlias("ci-test", "scalafmtCheckAll; scalafmtSbtCheck; test")
2-
addCommandAlias("ci-docs", "github; project-docs/mdoc; headerCreateAll")
1+
ThisBuild / organization := "org.scala-exercises"
2+
ThisBuild / githubOrganization := "47degrees"
3+
ThisBuild / scalaVersion := V.scala
34

45
Universal / javaOptions += "-Dscala.classpath.closeZip=true"
6+
Universal / mainClass := Some("org.scalaexercises.evaluator.EvaluatorServer")
7+
8+
stage := (stage in Universal in `evaluator-server`).value
9+
skip in publish := true
10+
11+
addCommandAlias("ci-test", "scalafmtCheckAll; scalafmtSbtCheck; test")
12+
addCommandAlias("ci-docs", "github; mdoc; headerCreateAll")
13+
addCommandAlias("ci-publish", "github; ci-release")
514

615
lazy val `evaluator-server` = (project in file("server"))
716
.enablePlugins(JavaAppPackaging)
@@ -17,27 +26,7 @@ lazy val `evaluator-server` = (project in file("server"))
1726
.settings(buildInfoSettings: _*)
1827
.settings(serverScalaMacroDependencies: _*)
1928

20-
lazy val smoketests = (project in file("smoketests"))
21-
.dependsOn(`evaluator-server`)
22-
.enablePlugins(BuildInfoPlugin)
23-
.settings(skip in publish := true)
24-
.settings(
25-
name := "evaluator-server-smoke-tests",
26-
serverHttpDependencies
27-
)
28-
.settings(buildInfoSettings: _*)
29-
30-
lazy val root = (project in file("."))
31-
.settings(mainClass in Universal := Some("org.scalaexercises.evaluator.EvaluatorServer"))
32-
.settings(stage := (stage in Universal in `evaluator-server`).value)
33-
.settings(skip in publish := true)
34-
.aggregate(`evaluator-server`)
35-
.dependsOn(`evaluator-server`)
36-
37-
lazy val `project-docs` = (project in file(".docs"))
38-
.aggregate(`evaluator-server`, smoketests)
39-
.settings(moduleName := "evaluator-project-docs")
40-
.settings(mdocIn := file(".docs"))
29+
lazy val documentation = project
4130
.settings(mdocOut := file("."))
42-
.settings(skip in publish := true)
31+
.settings(publish / skip := true)
4332
.enablePlugins(MdocPlugin)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

project/ProjectPlugin.scala

+5-16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import de.heikoseeberger.sbtheader.HeaderPlugin
2-
import de.heikoseeberger.sbtheader.HeaderPlugin.autoImport._
31
import sbt.Keys._
42
import sbt._
53
import sbtassembly.AssemblyPlugin.autoImport.assembly
@@ -17,19 +15,19 @@ object ProjectPlugin extends AutoPlugin {
1715
object autoImport {
1816

1917
object V {
20-
lazy val cats = "2.1.0"
18+
lazy val cats = "2.1.1"
2119
lazy val catsEffect = "2.1.3"
22-
lazy val http4s = "0.21.3"
20+
lazy val http4s = "0.21.4"
2321
lazy val circe = "0.13.0"
2422
lazy val log4s = "1.7.0"
2523
lazy val scalatest = "3.1.2"
26-
lazy val scalatestplusScheck = "3.1.1.1"
24+
lazy val scalatestplusScheck = "3.1.2.0"
2725
lazy val jodaTime = "2.10.6"
2826
lazy val slf4j = "1.7.30"
2927
lazy val jwtCore = "4.3.0"
30-
lazy val coursier = "2.0.0-RC6-12"
28+
lazy val coursier = "2.0.0-RC6-21"
3129
lazy val config = "1.4.0"
32-
lazy val scala = "2.13.1"
30+
lazy val scala = "2.13.2"
3331
}
3432

3533
lazy val dockerSettings = Seq(
@@ -92,24 +90,15 @@ object ProjectPlugin extends AutoPlugin {
9290

9391
}
9492

95-
import autoImport._
96-
9793
override def projectSettings: Seq[Def.Setting[_]] =
9894
Seq(
99-
name := "evaluator",
100-
description := "Scala Exercises: The path to enlightenment",
101-
organization := "org.scala-exercises",
102-
organizationName := "47 Degrees",
103-
organizationHomepage := Some(url("https://47deg.com")),
10495
scmInfo := Some(
10596
ScmInfo(
10697
url("https://github.com./scala-exercises/evaluator"),
10798
"scm:git:https://github.com./scala-exercises/evaluator.git",
10899
Some("scm:git:[email protected]:scala-exercises/evaluator.git")
109100
)
110101
),
111-
scalaVersion := V.scala,
112-
crossScalaVersions := Seq(V.scala),
113102
scalacOptions ~= (_ filterNot (_ == "-Xfuture")),
114103
scalacOptions += "-Ymacro-annotations",
115104
javacOptions ++= Seq("-encoding", "UTF-8", "-Xlint:-options"),

project/build.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.3.11
1+
sbt.version=1.3.12

project/plugins.sbt

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.7.1")
2-
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.10")
3-
addSbtPlugin("se.marcuslonnberg" % "sbt-docker" % "1.5.0")
4-
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
5-
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.3")
6-
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.3.4")
7-
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.1.5")
8-
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")
9-
addSbtPlugin("com.alejandrohdezma" %% "sbt-github" % "0.8.1")
10-
addSbtPlugin("com.alejandrohdezma" % "sbt-github-header" % "0.8.1")
11-
addSbtPlugin("com.alejandrohdezma" % "sbt-github-mdoc" % "0.8.1")
12-
addSbtPlugin("com.alejandrohdezma" % "sbt-mdoc-toc" % "0.2")
1+
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.7.1")
2+
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.10")
3+
addSbtPlugin("se.marcuslonnberg" % "sbt-docker" % "1.5.0")
4+
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
5+
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.3")
6+
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.0")
7+
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.1.5")
8+
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")
9+
addSbtPlugin("com.alejandrohdezma" %% "sbt-github" % "0.8.2")
10+
addSbtPlugin("com.alejandrohdezma" % "sbt-github-header" % "0.8.2")
11+
addSbtPlugin("com.alejandrohdezma" % "sbt-github-mdoc" % "0.8.2")
12+
addSbtPlugin("com.alejandrohdezma" % "sbt-remove-test-from-pom" % "0.1.0")

server/src/main/scala/org/scalaexercises/evaluator/auth.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2020 47 Degrees <https://47deg.com>
2+
* Copyright 2016-2020 47 Degrees Open Source <https://www.47deg.com>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

server/src/main/scala/org/scalaexercises/evaluator/codecs.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2020 47 Degrees <https://47deg.com>
2+
* Copyright 2016-2020 47 Degrees Open Source <https://www.47deg.com>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

server/src/main/scala/org/scalaexercises/evaluator/evaluation.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2020 47 Degrees <https://47deg.com>
2+
* Copyright 2016-2020 47 Degrees Open Source <https://www.47deg.com>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

server/src/main/scala/org/scalaexercises/evaluator/services.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2020 47 Degrees <https://47deg.com>
2+
* Copyright 2016-2020 47 Degrees Open Source <https://www.47deg.com>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

server/src/main/scala/org/scalaexercises/evaluator/types.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2020 47 Degrees <https://47deg.com>
2+
* Copyright 2016-2020 47 Degrees Open Source <https://www.47deg.com>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

server/src/test/scala/org/scalaexercises/evaluator/EvalEndpointSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2020 47 Degrees <https://47deg.com>
2+
* Copyright 2016-2020 47 Degrees Open Source <https://www.47deg.com>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

server/src/test/scala/org/scalaexercises/evaluator/EvaluatorSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2020 47 Degrees <https://47deg.com>
2+
* Copyright 2016-2020 47 Degrees Open Source <https://www.47deg.com>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

server/src/test/scala/org/scalaexercises/evaluator/Implicits.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2020 47 Degrees <https://47deg.com>
2+
* Copyright 2016-2020 47 Degrees Open Source <https://www.47deg.com>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

server/src/test/scala/org/scalaexercises/evaluator/helper.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2020 47 Degrees <https://47deg.com>
2+
* Copyright 2016-2020 47 Degrees Open Source <https://www.47deg.com>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

smoketests/src/test/scala/org/scalaexercises/evaluator/Smoketests.scala

-102
This file was deleted.

0 commit comments

Comments
 (0)