The Play Team is pleased to announce the release of Play Framework 2.6.6. This is the latest stable release of Play.
project/plugins.sbt
file and set the sbt-plugin
to 2.6.6
.See the full list of changes and the 2.6.6 milestone on GitHub.
There are a number of documentation improvements, fixes, and backwards-compatible library updates.
The biggest change is that Play now has support for sbt 1. sbt 1 is a major version update for sbt. Here are the headline features:
This is the result of combined work from Play and sbt teams. The work involves not only the Play project itself, but a number of other sbt plugins, Twirl and sbt-web plugins.
To use Play with sbt 1, you need to update to 2.6.6 and change your project/build.properties
like:
sbt.version=1.0.2
You may need to update other plugins. Check this page to see if the plugins used by your project already have support for sbt 1.
Thanks to the community for the detailed reports and invaluable help.
Special thanks to the following contributors who helped with this release: Greg Methvin, Marcos Pereira, Shruti Singh, Lousanna, Matthias Kurz, Rajesh Pitty, Toshiyuki Takahashi, Zack Grannan, kerami, Aristotelis Dossas, rmcloughlin, Ben Nelson and Derek Wickern.
Play is involved with Hacktoberfest. So, if you want to start contributing to Play, check our issues tagged with "hacktoberfest". Our contributor guidelines are also a good place to start. And, of course, let us know if need any help to submit your first contribution.
[warn] Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[warn] * com.google.guava:guava:22.0 is selected over {19.0, 20.0}
[warn] +- com.typesafe.play:play_2.12:2.6.6 (depends on 22.0)
[warn] +- org.reflections:reflections:0.9.11 (depends on 20.0)
[warn] +- com.google.inject:guice:4.1.0 (depends on 19.0)
[warn] * com.typesafe.akka:akka-stream_2.12:2.5.4 is selected over 2.4.19
[warn] +- com.typesafe.play:play-streams_2.12:2.6.6 (depends on 2.5.4)
[warn] +- com.typesafe.akka:akka-http-core_2.12:10.0.10 (depends on 2.4.19)
[warn] * com.typesafe.akka:akka-actor_2.12:2.5.4 is selected over 2.4.19
[warn] +- com.typesafe.akka:akka-slf4j_2.12:2.5.4 (depends on 2.5.4)
[warn] +- com.typesafe.play:play_2.12:2.6.6 (depends on 2.5.4)
[warn] +- com.typesafe.akka:akka-stream_2.12:2.5.4 (depends on 2.5.4)
[warn] +- com.typesafe.akka:akka-parsing_2.12:10.0.10 (depends on 2.4.19)
[warn] Run 'evicted' to see detailed eviction warnings
play.api.PlayException: Cannot load module[Module [SpringDataMongoModule] cannot be instantiated.]
at play.api.inject.Modules$.constructModule(Module.scala:164)
at play.api.inject.Modules$.$anonfun$locate$4(Module.scala:127)
at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:234)
at scala.collection.immutable.HashSet$HashSet1.foreach(HashSet.scala:320)
at scala.collection.immutable.HashSet$HashTrieSet.foreach(HashSet.scala:976)
at scala.collection.TraversableLike.map(TraversableLike.scala:234)
at scala.collection.TraversableLike.map$(TraversableLike.scala:227)
at scala.collection.AbstractSet.scala$collection$SetLike$$super$map(Set.scala:47)
at scala.collection.SetLike.map(SetLike.scala:101)
at scala.collection.SetLike.map$(SetLike.scala:101)
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at play.api.inject.Modules$.$anonfun$constructModule$2(Module.scala:143)
at scala.Option.map(Option.scala:146)
at play.api.inject.Modules$.tryConstruct$1(Module.scala:143)
at play.api.inject.Modules$.$anonfun$constructModule$5(Module.scala:153)
at scala.Option.orElse(Option.scala:289)
at play.api.inject.Modules$.constructModule(Module.scala:153)
Caused by: java.lang.NoClassDefFoundError: org/springframework/aop/TargetSource
at org.springframework.context.annotation.AnnotationConfigUtils.registerAnnotationConfigProcessors(AnnotationConfigUtils.java:154)
at org.springframework.context.annotation.AnnotationConfigUtils.registerAnnotationConfigProcessors(AnnotationConfigUtils.java:134)
at org.springframework.context.annotation.AnnotatedBeanDefinitionReader.<init>(AnnotatedBeanDefinitionReader.java:83)
at org.springframework.context.annotation.AnnotatedBeanDefinitionReader.<init>(AnnotatedBeanDefinitionReader.java:66)
at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:61)
at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:82)
at SpringDataMongoModule.<init>(SpringDataMongoModule.java:28)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
Caused by: java.lang.ClassNotFoundException: org.springframework.aop.TargetSource
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.springframework.context.annotation.AnnotationConfigUtils.registerAnnotationConfigProcessors(AnnotationConfigUtils.java:154)
at org.springframework.context.annotation.AnnotationConfigUtils.registerAnnotationConfigProcessors(AnnotationConfigUtils.java:134)
at org.springframework.context.annotation.AnnotatedBeanDefinitionReader.<init>(AnnotatedBeanDefinitionReader.java:83)
at org.springframework.context.annotation.AnnotatedBeanDefinitionReader.<init>(AnnotatedBeanDefinitionReader.java:66)
at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:61)
at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:82)
at SpringDataMongoModule.<init>(SpringDataMongoModule.java:28)
--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/1c9e3598-5037-4682-aab3-ed68204a84e8%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/336a8aa6-2120-4f13-bbd7-bb5ee05e8e15%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/eb33f74d-4d86-4c7b-8711-a1b8c1d065cc%40googlegroups.com.
I am using Windows 10 and I wouldn't be surprised if that had something to do with it.
I can reproduce using a fresh template so it is either something on my system or windows specific:
sbt new playframework/play-scala-seed.g8To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/336a8aa6-2120-4f13-bbd7-bb5ee05e8e15%40googlegroups.com.
[warn] module not found: com.typesafe.sbt#sbt-play-ebean;4.0.3
[warn] ==== typesafe-ivy-releases: tried
[warn] https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-play-ebean/scala_2.12/sbt_1.0//4.0.3/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-play-ebean/scala_2.12/sbt_1.0//4.0.3/ivys/ivy.xml
--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/4432a205-62f4-4b9d-b3df-eef2b2481ab1%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/4432a205-62f4-4b9d-b3df-eef2b2481ab1%40googlegroups.com.
sbt -jvm-debug "~run -Dconfig.file=./conf/local.conf -Dhttp.port=8080"
sbt "-jvm-debug ~run -Dconfig.file=./conf/local.conf -Dhttp.port=8080"
simjac@Kartoffelsuppe-2 webapp (develop)*$ sbt "-jvm-debug ~run -Dconfig.file=./conf/local.conf -Dhttp.port=8080"
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /Users/simjac/10-Projekte/Kunden/s/webapp/project
[info] Loading settings from build.sbt ...
[info] Set current project to webapp (in build file:/Users/simjac/10-Projekte/Kunden/s/webapp/)
[warn] The `-` command is deprecated in favor of `onFailure` and will be removed in 0.14.0
[INFO] [10/26/2017 13:35:16.643] [Thread-2] [CoordinatedShutdown(akka://sbt-web)] Starting coordinated shutdown from JVM shutdown hook
export SBT_OPTS="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999" && sbt "~run -Dconfig.file=./conf/local.conf -Dhttp.port=8080
export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -Xms1536m -Xmx1536m -XX:MaxPermSize=384m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9999 -XX:ReservedCodeCacheSize=192m -Dfile.encoding=UTF8" && sbt "~run -Dconfig.file=./conf/local.conf -Dhttp.port=8080"