-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure cross version build for Scala 2.12 #437
Comments
Very true, let's make it ship for 12 on release :) |
@ktoso Were the tests run for 2.12? I am seeing several failures likely linked with differences between 2.11 and 2.12, like e.g.:
|
Fixes two tests to work with Scala 2.12: - SprayJsonPrettyMarshalSpec defined a trait inside a test scope, which resulted in a ClassFormatError: [info] docs.http.scaladsl.SprayJsonPrettyMarshalSpec *** ABORTED *** [info] java.lang.ClassFormatError: Duplicate field name&signature in class file docs/http/scaladsl/SprayJsonPrettyMarshalSpec$MyJsonService$1 [info] at java.lang.ClassLoader.defineClass1(Native Method) - The fix for https://issues.scala-lang.org/browse/SI-9019 causes DebuggingDirectivesSpec to fail by printing `ByteString.ByteString1C` instead of `ByteString` in Scala 2.11.
OK, sanity restored. |
There is also an issue with scaladoc due to We have many other sealed abstract class in the http-core model, but maybe it's only this HttpCredentials that is extended from java? This was originally reported by @SethTisue in akka/akka#21543 |
Interesting, I somehow missed the old issue. I'll have a look... |
Does this issue affect publishing of the 2.12 artifacts or can we put it in a separate ticket and mark as a future improvement? |
Fixes two tests to work with Scala 2.12: - SprayJsonPrettyMarshalSpec defined a trait inside a test scope, which resulted in a ClassFormatError: [info] docs.http.scaladsl.SprayJsonPrettyMarshalSpec *** ABORTED *** [info] java.lang.ClassFormatError: Duplicate field name&signature in class file docs/http/scaladsl/SprayJsonPrettyMarshalSpec$MyJsonService$1 [info] at java.lang.ClassLoader.defineClass1(Native Method) - DebuggingDirectivesSpec relied on ByteString.ByteString1C's `toString` which changed due to https://issues.scala-lang.org/browse/SI-9019.
Fixes two tests to work with Scala 2.12: - SprayJsonPrettyMarshalSpec defined a trait inside a test scope, which resulted in a ClassFormatError: [info] docs.http.scaladsl.SprayJsonPrettyMarshalSpec *** ABORTED *** [info] java.lang.ClassFormatError: Duplicate field name&signature in class file docs/http/scaladsl/SprayJsonPrettyMarshalSpec$MyJsonService$1 [info] at java.lang.ClassLoader.defineClass1(Native Method) - DebuggingDirectivesSpec relied on ByteString.ByteString1C's `toString` which changed due to https://issues.scala-lang.org/browse/SI-9019.
Fixes two tests to work with Scala 2.12: - SprayJsonPrettyMarshalSpec defined a trait inside a test scope, which resulted in a ClassFormatError: [info] docs.http.scaladsl.SprayJsonPrettyMarshalSpec *** ABORTED *** [info] java.lang.ClassFormatError: Duplicate field name&signature in class file docs/http/scaladsl/SprayJsonPrettyMarshalSpec$MyJsonService$1 [info] at java.lang.ClassLoader.defineClass1(Native Method) - DebuggingDirectivesSpec relied on ByteString.ByteString1C's `toString` which changed due to https://issues.scala-lang.org/browse/SI-9019.
Fixes two tests to work with Scala 2.12: - SprayJsonPrettyMarshalSpec defined a trait inside a test scope, which resulted in a ClassFormatError: [info] docs.http.scaladsl.SprayJsonPrettyMarshalSpec *** ABORTED *** [info] java.lang.ClassFormatError: Duplicate field name&signature in class file docs/http/scaladsl/SprayJsonPrettyMarshalSpec$MyJsonService$1 [info] at java.lang.ClassLoader.defineClass1(Native Method) - DebuggingDirectivesSpec relied on ByteString.ByteString1C's `toString` which changed due to https://issues.scala-lang.org/browse/SI-9019.
Cross compile to Scala 2.12.0-RC2 (#437)
Yes, we won't be able to release a docs artifact as long as this is not fixed. We decided that removing the |
Just saw #447 (comment) so... are we ready to publish 2.12 or not yet? (not sure which comment was written first ;-)) |
We need to validate scaladoc generation for 2.12 and it would be nice to configure at least nightly builds for 2.12 unless we do that as part of the Travis ticket. |
Play also has a dependency on akka-http playframework/playframework#6110 |
So, are there any updates about this? As more and more libraries release artifacts for 2.12.0, akka-http is starting to become the last blocker in many of the projects I work with. Is there anything I can do to help? Thanks in advance for your effort on this :) |
@ruippeixotog There's 10.0.0-RC2 which is cross-built for 2.12 (see e.g. akka-http-session build). I don't know the timeline, but I suspect a final release to be available soon. |
Yeah 10.0.0-RC2 is available, we didn't announce - will do so on this monday. Sorry for the wait, but we're very close. |
This task is blocking the stable release for example: #517 |
Fixes two tests to work with Scala 2.12: - SprayJsonPrettyMarshalSpec defined a trait inside a test scope, which resulted in a ClassFormatError: [info] docs.http.scaladsl.SprayJsonPrettyMarshalSpec *** ABORTED *** [info] java.lang.ClassFormatError: Duplicate field name&signature in class file docs/http/scaladsl/SprayJsonPrettyMarshalSpec$MyJsonService$1 [info] at java.lang.ClassLoader.defineClass1(Native Method) - DebuggingDirectivesSpec relied on ByteString.ByteString1C's `toString` which changed due to https://issues.scala-lang.org/browse/SI-9019.
Cross compile to Scala 2.12.0-RC2 (akka#437)
Cross building solved in #544 |
@ktoso if this is done, could you submit an update to https://github.com/scala/make-release-notes/blob/2.12.x/projects-2.12.md ? |
@ktoso is this done? |
Yes, and we're released against 2.12 as well :-) |
Akka 2.4.11 was released for 2.12.0-RC2 so Akka HTTP should also provide artifacts for Scala 2.12.
The text was updated successfully, but these errors were encountered: