title: creating a scheduled task in scala with play 2.5
body: <p>I want to create a scheduled task in Play 2.5. I found some resources related to this topic but none of them were for Play 2.5. I found out <a href="https://www.playframework.com/documentation/2.5.x/JavaAkka#Scheduling-asynchronous-tasks" rel="nofollow">this resource</a> related to what I am looking for and it looks good. Also on the same link there is a migration guide from 2.4 to 2.5. </p>
  
  <p>The examples from older versions used <code>GlobalSettings</code> as base but this was deprecated in 2.5. The migration guide is important because it says that we should use dependency injection instead of extending this trait. I am not sure how to do that.</p>
  
  <p>Can you give me some guidance?</p>