gretty | Advanced gradle plugin for running web | Build Tool library
kandi X-RAY | gretty Summary
kandi X-RAY | gretty Summary
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
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gretty
gretty Key Features
gretty Examples and Code Snippets
Community Discussions
Trending Discussions on gretty
QUESTION
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:07tl;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.
QUESTION
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:31I 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
QUESTION
I'm running a build in Azure DevOps with latest gradle (6.8) and I get NPE:
...ANSWER
Answered 2021-Jan-13 at 02:30NullPointerException 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.
QUESTION
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:
QUESTION
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:21Solved by adding --enable-preview
to the list of JVM arguments in gretty configuration:
build.gradle
QUESTION
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:57I can't write this as a comment, but your error most likely comes from your wrapper version.
When you type:
QUESTION
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:53How about just skipping the Gretty plugin entirely and just using Unit testing?
QUESTION
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:
- Install Docker.
- Clone https://github.com/haba713/hello_gretty.
cd hello_gretty
- Install Gradle wrapper:
docker run --rm -u gradle -v "$PWD":/home/gradle/project -w /home/gradle/project gradle gradle wrapper
- Run the task
tomcatRun
:./gradlew tomcatRun
- Browse http://localhost:8080/hello_gretty.
- Terminate the task by pressing enter in terminal.
- 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
- 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:04Adding -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.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gretty
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page