FAILURE: Build failed with an exception. Task 'jettyRun' not found in root project 'webapp'.



  • The Jetty plugin has been deprecated and is scheduled to be removed in Gradle 4.0. Consider using the Gretty (https://github.com/akhikhl/gretty) plugin instead.

    $ gradle jettyRun
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Task 'jettyRun' not found in root project 'webapp'.
    
    * Try:
    Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    
    BUILD FAILED
    
    Total time: 15.85 secs
    

    Running this from the directory location where the build.gradle file is, should solve this error. As the instructions in the error output show, if you run gradle tasks and do not see the JettyRun task, then it is not in your build configuration.


Log in to reply
 

© Lightnetics 2024