With gradle the LiveReload throws the following exception:
C:\dev\sandbox\joobytest\my-app>gradlew joobyRun
:compileJava UP-TO-DATE
:processResources NO-SOURCE
:classes UP-TO-DATE
:joobyRun
>>> jooby:run[info|Daemon worker Thread 2]: Hotswap available on: [C:\dev\sandbox\joobytest\my-app]
>>> jooby:run[info|Daemon worker Thread 2]: includes: [**/*.class;**/*.conf;**/*.properties;**/*.html]
>>> jooby:run[info|Daemon worker Thread 2]: excludes: []
[2017-08-02 14:18:29,019]-[HotSwap] INFO com.mycompany.App - Stopped
[2017-08-02 14:18:29,024]-[HotSwap] ERROR com.mycompany.App - An error occurred while starting the application:
com.google.inject.CreationException: Unable to create injector, see the following errors:
1) No implementation for java.util.Set<org.jooby.filewatcher.FileEventOptions> was bound.
while locating java.util.Set<org.jooby.filewatcher.FileEventOptions>
for the 4th parameter of org.jooby.filewatcher.FileMonitor.<init>(FileMonitor.java:252)
at org.jooby.filewatcher.FileWatcher.configure(FileWatcher.java:540)
1 error
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:470)
at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:155)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
at com.google.inject.Guice.createInjector(Guice.java:99)
at com.google.inject.Guice.createInjector(Guice.java:84)
at org.jooby.Jooby.lambda$new$0(Jooby.java:884)
at org.jooby.Jooby.bootstrap(Jooby.java:2948)
at org.jooby.Jooby.start(Jooby.java:2161)
at org.jooby.Jooby.start(Jooby.java:2142)
at org.jooby.Jooby.run(Jooby.java:2072)
at com.mycompany.App.main(App.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jooby.run.Main.lambda$startApp$1(Main.java:427)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
>>> jooby:run[error|HotSwap]: com.mycompany.App.start() resulted in error
java.lang.NullPointerException
at org.jooby.run.Main.lambda$startApp$1(Main.java:432)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Example Project:
https://github.com/JStumpp/jooby-gradle-livereload
With gradle the LiveReload throws the following exception:
Example Project:
https://github.com/JStumpp/jooby-gradle-livereload