Skip to content

Commit

Permalink
Various streams build improvements
Browse files Browse the repository at this point in the history
* remove settings duplication between AkkaBuild and project specific .sbt files
* do not publish test projects
* run akka-http-core tests
* fix lambda sample project versions
* remove obsolete projects (streamAndHttp, httpParent, docsDev)
* exclude parsing project from unidoc
* update to the latest sbt
  • Loading branch information
2m committed Jan 18, 2016
1 parent 70ff55a commit 7743aa9
Show file tree
Hide file tree
Showing 25 changed files with 61 additions and 192 deletions.
7 changes: 1 addition & 6 deletions akka-actor-tests/build.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import akka.{ AkkaBuild, Dependencies, Formatting }

AkkaBuild.defaultSettings

AkkaBuild.dontPublishSettings
Formatting.formatSettings

publishArtifact in Compile := false

Dependencies.actorTests

AkkaBuild.dontPublishSettings
2 changes: 1 addition & 1 deletion akka-docs/_sphinx/exts/includecode2.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def run(self):
encoding = self.options.get('encoding', env.config.source_encoding)
codec_info = codecs.lookup(encoding)
try:
f = codecs.StreamReaderWriter(open(fn, 'U'),
f = codecs.StreamReaderWriter(open(fn, 'Ub'),
codec_info[2], codec_info[3], 'strict')
lines = f.readlines()
f.close()
Expand Down
7 changes: 1 addition & 6 deletions akka-http-core/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@ import akka._
import com.typesafe.tools.mima.plugin.MimaKeys

AkkaBuild.defaultSettings

AkkaBuild.experimentalSettings
Formatting.formatSettings

OSGi.httpCore

Dependencies.httpCore

MimaKeys.previousArtifacts := akkaStreamAndHttpPreviousArtifacts("akka-http-core").value

disablePlugins(Unidoc) // TODO remove me
6 changes: 1 addition & 5 deletions akka-http-marshallers-java/akka-http-jackson/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ import akka._
import com.typesafe.tools.mima.plugin.MimaKeys

AkkaBuild.defaultSettings

AkkaBuild.experimentalSettings
Formatting.formatSettings

OSGi.httpJackson

Dependencies.httpJackson

MimaKeys.previousArtifacts := akkaStreamAndHttpPreviousArtifacts("akka-http-jackson").value

5 changes: 1 addition & 4 deletions akka-http-marshallers-scala/akka-http-spray-json/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ import akka._
import com.typesafe.tools.mima.plugin.MimaKeys

AkkaBuild.defaultSettings

AkkaBuild.experimentalSettings
Formatting.formatSettings

OSGi.httpSprayJson

Dependencies.httpSprayJson

MimaKeys.previousArtifacts := akkaStreamAndHttpPreviousArtifacts("akka-http-spray-json").value
5 changes: 1 addition & 4 deletions akka-http-marshallers-scala/akka-http-xml/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ import akka._
import com.typesafe.tools.mima.plugin.MimaKeys

AkkaBuild.defaultSettings

AkkaBuild.experimentalSettings
Formatting.formatSettings

OSGi.httpXml

Dependencies.httpXml

MimaKeys.previousArtifacts := akkaStreamAndHttpPreviousArtifacts("akka-http-xml").value
7 changes: 3 additions & 4 deletions akka-http-testkit/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ import akka._
import com.typesafe.tools.mima.plugin.MimaKeys

AkkaBuild.defaultSettings

AkkaBuild.experimentalSettings
Formatting.formatSettings

OSGi.httpTestkit

Dependencies.httpTestkit

MimaKeys.previousArtifacts := akkaStreamAndHttpPreviousArtifacts("akka-http-testkit").value

scalacOptions in Compile += "-language:postfixOps"
11 changes: 8 additions & 3 deletions akka-http-tests/build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import akka._
import com.typesafe.tools.mima.plugin.MimaKeys

AkkaBuild.defaultSettings

AkkaBuild.dontPublishSettings
AkkaBuild.experimentalSettings
Formatting.formatSettings

Dependencies.httpTests

// don't ignore Suites which is the default for the junit-interface
testOptions += Tests.Argument(TestFrameworks.JUnit, "--ignore-runners=")

scalacOptions in Compile += "-language:_"
mainClass in run in Test := Some("akka.http.javadsl.SimpleServerApp")
8 changes: 3 additions & 5 deletions akka-http/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ import com.typesafe.tools.mima.plugin.MimaKeys
import spray.boilerplate.BoilerplatePlugin._

AkkaBuild.defaultSettings

AkkaBuild.experimentalSettings
Formatting.formatSettings

OSGi.http

Dependencies.http

MimaKeys.previousArtifacts := akkaStreamAndHttpPreviousArtifacts("akka-http").value

Boilerplate.settings

scalacOptions in Compile += "-language:_"
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private[http] final case class RequestContextImpl(underlying: ScalaRequestContex
case MarshallerImpl(m)
implicit val marshaller = m(underlying.executionContext)
underlying.complete(value)
case _ throw new IllegalArgumentException("Unsupported marshaller: $marshaller")
case _ throw new IllegalArgumentException(s"Unsupported marshaller: $marshaller")
}
def complete(response: jm.HttpResponse): RouteResult = underlying.complete(response.asScala)

Expand Down
18 changes: 7 additions & 11 deletions akka-parsing/build.sbt
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
import akka._
import akka.ValidatePullRequest._
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
import com.typesafe.sbt.SbtSite.site
import com.typesafe.sbt.site.SphinxSupport._
import com.typesafe.tools.mima.plugin.MimaKeys

enablePlugins(ScaladocNoVerificationOfDiagrams)

AkkaBuild.defaultSettings

AkkaBuild.dontPublishSettings
AkkaBuild.experimentalSettings
Formatting.docFormatSettings

site.settings

OSGi.parsing

Dependencies.parsing

unmanagedSourceDirectories in ScalariformKeys.format in Test <<= unmanagedSourceDirectories in Test
scalacOptions += "-language:_"

AkkaBuild.dontPublishSettings
// ScalaDoc doesn't like the macros
sources in doc in Compile := List()

enablePlugins(ScaladocNoVerificationOfDiagrams)
3 changes: 1 addition & 2 deletions akka-samples/akka-sample-main-java-lambda/build.sbt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name := "akka-sample-main-java-lambda"

version := "1.0"
version := "2.4-SNAPSHOT"

scalaVersion := "2.11.7"

libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.4-SNAPSHOT"
)

2 changes: 1 addition & 1 deletion akka-samples/akka-sample-main-java-lambda/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<artifactId>akka-sample-main-java-lambda</artifactId>
<groupId>com.typesafe.akka.samples</groupId>
<name>Akka Main in Java</name>
<version>1.0</version>
<version>2.4-SNAPSHOT</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
3 changes: 1 addition & 2 deletions akka-samples/akka-sample-persistence-java-lambda/build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name := "akka-sample-persistence-java-lambda"

version := "1.0"
version := "2.4-SNAPSHOT"

scalaVersion := "2.11.7"

Expand All @@ -13,4 +13,3 @@ libraryDependencies ++= Seq(
"org.iq80.leveldb" % "leveldb" % "0.7",
"org.fusesource.leveldbjni" % "leveldbjni-all" % "1.8"
)

2 changes: 1 addition & 1 deletion akka-samples/akka-sample-supervision-java-lambda/build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name := "akka-supervision-java-lambda"

version := "1.0"
version := "2.4-SNAPSHOT"

scalaVersion := "2.11.7"

Expand Down
2 changes: 1 addition & 1 deletion akka-samples/akka-sample-supervision-java-lambda/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<groupId>sample</groupId>
<artifactId>akka-supervision-java-lambda</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<version>2.4-SNAPSHOT</version>

<dependencies>
<dependency>
Expand Down
1 change: 0 additions & 1 deletion akka-stream-and-http/build.sbt

This file was deleted.

5 changes: 1 addition & 4 deletions akka-stream-testkit/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ import akka._
import com.typesafe.tools.mima.plugin.MimaKeys

AkkaBuild.defaultSettings

AkkaBuild.experimentalSettings
Formatting.formatSettings

OSGi.streamTestkit

Dependencies.streamTestkit

MimaKeys.previousArtifacts := akkaStreamAndHttpPreviousArtifacts("akka-stream-testkit").value
3 changes: 1 addition & 2 deletions akka-stream-tests-tck/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import akka._
import com.typesafe.tools.mima.plugin.MimaKeys

AkkaBuild.defaultSettings

AkkaBuild.experimentalSettings
Formatting.formatSettings

Dependencies.streamTestsTck
4 changes: 2 additions & 2 deletions akka-stream-tests/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import akka._
import com.typesafe.tools.mima.plugin.MimaKeys

AkkaBuild.defaultSettings

AkkaBuild.dontPublishSettings
AkkaBuild.experimentalSettings
Formatting.formatSettings

Dependencies.streamTests
6 changes: 1 addition & 5 deletions akka-stream/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@ import com.typesafe.tools.mima.plugin.MimaKeys
import spray.boilerplate.BoilerplatePlugin._

AkkaBuild.defaultSettings

AkkaBuild.experimentalSettings
Formatting.formatSettings

OSGi.stream

Dependencies.stream

MimaKeys.previousArtifacts := akkaStreamAndHttpPreviousArtifacts("akka-stream").value

Boilerplate.settings
2 changes: 0 additions & 2 deletions akka-typed/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@ import akka.{ AkkaBuild, Formatting, OSGi, Dependencies }
import com.typesafe.tools.mima.plugin.MimaKeys

AkkaBuild.defaultSettings

AkkaBuild.experimentalSettings

Formatting.formatSettings
Loading

0 comments on commit 7743aa9

Please sign in to comment.