gretty | Advanced gradle plugin for running web | Build Tool library

 by   akhikhl Groovy Version: v2.0.0 License: MIT

kandi X-RAY | gretty Summary

kandi X-RAY | gretty Summary

gretty is a Groovy library typically used in Utilities, Build Tool, Gradle, Maven applications. gretty has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Gretty is a feature-rich gradle plugin for running web-apps on embedded servlet containers. It supports Jetty versions 7, 8 and 9, Tomcat versions 7 and 8, multiple web-apps and many more. It wraps servlet container functions as convenient Gradle tasks and configuration DSL. A complete list of Gretty features is available in feature overview. If you are new with Gretty, try getting started page. June 20, 2017, Gretty 2.0.0 is out and immediately available at Bintray and Maven Central. See also: complete list of changes for more information. You can learn about all Gretty features in online documentation. Gretty requires JDK7 or JDK8 and Gradle 1.10 or newer (Gradle 4.0 is highly recommended!). Since version 2.0.0 Gretty no longer supports JDK6. Gretty is an open-source project and is freely available in sources as well as in compiled form. All releases of Gretty are available at Bintray. Copyright 2013-2017 (c) Andrey Hihlovskiy, Timur Shakurov and contributors. All versions, present and past, of Gretty are licensed under MIT license.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              gretty has a low active ecosystem.
              It has 666 star(s) with 172 fork(s). There are 42 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 230 open issues and 165 have been closed. On average issues are closed in 148 days. There are 8 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of gretty is v2.0.0

            kandi-Quality Quality

              gretty has 0 bugs and 0 code smells.

            kandi-Security Security

              gretty has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              gretty code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              gretty is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              gretty releases are available to install and integrate.
              It has 5942 lines of code, 188 functions and 193 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gretty
            Get all kandi verified functions for this library.

            gretty Key Features

            No Key Features are available at this moment for gretty.

            gretty Examples and Code Snippets

            No Code Snippets are available at this moment for gretty.

            Community Discussions

            QUESTION

            Upgrading from gretty 3.0.1 to 3.0.7 causes error could not get unknown property 'mainClass'
            Asked 2022-Jan-13 at 18:07

            I am currently running gradle version 5.6.4. When trying to upgrade our gretty dependency from 3.0.1 to 3.0.5 or 3.0.7, I am running into this error with no other information:

            ...

            ANSWER

            Answered 2022-Jan-13 at 18:07

            tl;dr Upgrade your gradle version to 6.9.2

            Turns out that there is an undocumented breaking change between gretty versions 3.0.1 to 3.0.5 that the minimum gradle version required in your application is gradle 6.x.

            I originally tried upgrading to gradle version 6.0.1 which had the same error, then I jumped straight to the latest 6.x version (6.9.2) and that now works.

            Source https://stackoverflow.com/questions/70701141

            QUESTION

            Plugin with id 'org.wisepersist.gradle' not found
            Asked 2021-Sep-10 at 02:31

            I've been following along with the libGDX docs and I'm very new to Gradle and I almost know nothing about it and I ran into a problem that I couldn't fix. I tried fixing the not found problem by applying the plugin and adding classpath to it but it didn't work. Is there any way I can fix it? (Note: the problem is in html/build.gradle)

            OS: Win64
            IDE: Android Studio

            Errors: Caused by: org.gradle.api.plugins.UnknownPluginException: Plugin with id 'org.wisepersist.gradle.plugins.get.GwtSuperDev' not found. (This is when I added the plugin) Plugin with id 'org.wisepersist.gradle.plugins.get.GwtSuperDev' not found.

            build.gradle:

            ...

            ANSWER

            Answered 2021-Sep-10 at 02:31

            I think you're using the plugin mentioned here

            So you must ensure you copy everything under the correct section like so

            Note all the blocks including the apply plugin should be copied

            Source https://stackoverflow.com/questions/69126444

            QUESTION

            NullPointerException with JacocoPluginExtension
            Asked 2021-Jan-13 at 08:48

            I'm running a build in Azure DevOps with latest gradle (6.8) and I get NPE:

            ...

            ANSWER

            Answered 2021-Jan-13 at 02:30

            NullPointerException with JacocoPluginExtension

            If there is a ".gradle" folder in the folder of the project in the repo. Please try to deleted .gradle folder from the repo, then rebuild the pipeline again.

            Note: Make a backup, just in case.

            Besides, if above suggestion not work for you, please try to build it in your local without Azure devops to check if you still have this issue.

            Source https://stackoverflow.com/questions/65687892

            QUESTION

            Executing sql statement from schema.sql file in ContextInitializer method
            Asked 2020-Dec-24 at 17:48

            I am trying to execute a sql statement in Listener's contextInitialized method, but when I run gretty local server, it throws RuntimeException error. I can't figure out, why. It doesn't run into any errors when i comment out ps.executeQuery();.

            ...

            ANSWER

            Answered 2020-Dec-24 at 17:48

            "Doctor, it hurts when I press here!"

            Well, stop doing that then.

            This:

            Source https://stackoverflow.com/questions/65440466

            QUESTION

            enable preview features for gretty plugin
            Asked 2020-Jun-29 at 12:21

            I'm trying to run Spring MVC app using gretty plugin for Gradle (JVM version is 14) To deploy app I use tomcatRun task (tomcat version is 8.5.49).

            If i use some preview feature (e.g. java.lang.String#formatted method) I have to add enable-preview flag to compileJava task:

            ...

            ANSWER

            Answered 2020-Jun-29 at 12:21

            Solved by adding --enable-preview to the list of JVM arguments in gretty configuration:

            build.gradle

            Source https://stackoverflow.com/questions/62623782

            QUESTION

            Gradle Guides, Building Java Web Application - Gradle build throwing java.lang.IllegalStateException
            Asked 2020-May-09 at 08:32

            I'm trying to work through the "Building Java Web Applications" Gradle Guide (kotlin dsl), but gradle throws an exception when building. I would really appreciate any help getting this guide to work. I'm using gradle 6.2.2. I've cloned the gradle / guides & tried building the example there with the same results.

            settings.gradle.kts

            ...

            ANSWER

            Answered 2020-Mar-21 at 21:57

            I can't write this as a comment, but your error most likely comes from your wrapper version.

            When you type:

            Source https://stackoverflow.com/questions/60793045

            QUESTION

            Alternatives to the Gradle Gretty Plugin
            Asked 2020-Feb-14 at 21:53

            I’m trying to upgrade some old code that used the Jetty plugin in Gradle. I would like to upgrade the Gradle version beyond Gradle v3.5, but Gradle v4.0 and above has the Jetty plugin removed. Unfortunately, we are now required to use Gretty.

            I’m using IntelliJ. My problems with the newer Gretty plugin are:

            • JVM Args and System properties specified on the commandline have to be manually put into the Gretty configuration.
            • At least in IntelliJ, I could do out of the box debugging with the Jetty plugin, but need to run two executions including the app and the Remote, and use a different Gradle task for debugging (e.g. jettyRunDebug) with Gretty.

              What are the alternatives to Gretty? Anything that can substitute for the old Jetty plugin.

            ...

            ANSWER

            Answered 2020-Feb-14 at 21:53

            How about just skipping the Gretty plugin entirely and just using Unit testing?

            See: https://stackoverflow.com/a/29759263/775715

            Source https://stackoverflow.com/questions/60120379

            QUESTION

            Running Gretty project with Gradle Docker container
            Asked 2020-Jan-26 at 17:04

            Is it possible to run Gretty projects in Docker Gradle container?

            Normally the Gretty task tomcatRun starts Tomcat app server and you can browse the app at http://localhost:8080/app-name. With Docker Gradle image the task is successfully started but the container is terminated immediately after that.

            Steps for reproducing the issue:

            1. Install Docker.
            2. Clone https://github.com/haba713/hello_gretty.
            3. cd hello_gretty
            4. Install Gradle wrapper: docker run --rm -u gradle -v "$PWD":/home/gradle/project -w /home/gradle/project gradle gradle wrapper
            5. Run the task tomcatRun: ./gradlew tomcatRun
            6. Browse http://localhost:8080/hello_gretty.
            7. Terminate the task by pressing enter in terminal.
            8. Run task tomcatRun with Gradle Docker image: docker run --rm -u gradle -p 8080:8080 -v "$PWD":/home/gradle/project -w /home/gradle/project gradle gradle tomcatRun
            9. The task tomcatRun is started (takes some time) but for some reason the container terminates immediately after that. Maybe the task was completed without pressing any key.

            I also created a Docker issue about the problem.

            ...

            ANSWER

            Answered 2020-Jan-26 at 17:04

            Adding -t or --tty to docker command keeps Tomcat running. Also add -i or --interactive if you want to stop Tomcat with "any key" as Gretty says: "Press any key to stop the server."

            docker run --rm -u gradle -it -p 8080:8080 -v "$PWD":/home/gradle/project -w /home/gradle/project gradle gradle tomcatRun

            Thank you David Maze for helping.

            Source https://stackoverflow.com/questions/59917861

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install gretty

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link