playframework / play-java-websocket-example

Example Play Java application showing Websocket usage with Akka actors
https://developer.lightbend.com/start/?group=play
Creative Commons Zero v1.0 Universal
88 stars 53 forks source link

Missing assets:: "stylesheets/main.min.css" and "javascripts/index.js" when using "gradlew runPlayBinary" #95

Open jhooda opened 5 years ago

jhooda commented 5 years ago

Getting 404 for http://localhost:9000/assets/stylesheets/main.min.css and http://localhost:9000/assets/javascripts/index.js When using "gradlew runPlayBinary" runs fine with "sbt run".

marcospereira commented 5 years ago

It looks like assets pipeline is missing for Gradle while sbt is using sbt-web plugins. It should be possible to configure a Gradle plugin to handle the assets pipeline:

https://github.com/ksoichiro/gradle-web-resource-plugin

Do you want to take a shot on this one?