New Play file watcher for macOS

46 views
Skip to first unread message

Greg Methvin

unread,
Sep 14, 2017, 8:21:36 PM9/14/17
to play-framework
Hi everyone,

We've been experimenting with a new implementation of Play's file watcher for macOS. This implementation does not require the JNotify library but instead uses the Carbon file system events API to get notifications asynchronously. This results in a much simpler implementation, and also appears to lead to faster startup times compared to JNotify.

We are not upgrading in Play just yet, but if you are on Mac OS X you can try it out by switching in plugins.sbt:

libraryDependencies += "com.lightbend.play" %% "play-file-watch" % "1.1.0"

Another advantage is that the new implementation is Apache 2 licensed, as opposed to JNotify which is LGPL licensed. That may be a benefit in some enterprise environments.

Cheers,
Greg

--
Greg Methvin
Tech Lead - Play Framework

Reply all
Reply to author
Forward
0 new messages