Open qberticus opened 9 years ago
Same happening with me. Any workaround to get it working?
Yea, I created my own grunt play run hook based on the one in play-yeoman as a temp solution. With this one you need to specify the grunt task to run. I did this since I use browserify with watchify and needed a custom task that runs browserify before watch.
Thanks for the reply. When I add the content from the gist to the build.sbt, I got the following error:
playRunHooks := Seq()
^
[error] Type error in expression
Do you have any idea what went wrong?
Found the import that was missing:
import play.PlayImport.PlayKeys.playRunHooks
Thanks for your help on this :)
Thank you for your fix! I will try that as I had the same issue. Would it be possible for you @qberticus to make a pull request with your playHook?
Play version: 2.3.8 Scala version: 2.11.1 sbt-yeoman: 0.7.1 using a build.sbt file
When using play-yeoman the addition of the GruntProcess to the playRunHooks setting causes a ClassNotFoundException during execution of the playRun task or show playRunHooks.
In order to add an additional PlayRunHook instances to playRunHooks it current requires setting playRunHooks := Seq() in the build.sbt file to remove the play-yeoman hook.
show playRunHooks
output:last *:playRunHooks
output: