Advanced gradle plugin for running web-apps on jetty and tomcat.
132
stars
1,763
commits
Groovy
primary language
Jun 12, 2026
updated

Gretty is a feature-rich Gradle plugin for running web-apps on embedded servlet containers. It supports Jetty version 12, Tomcat version 11, 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.
You are looking at Gretty's master branch which is for Gretty 5. You also might want to look at the gretty-3.x one which is for Gretty 3 or gretty-4.x one which is for Gretty 4. They are still in development and supports older versions of Jetty and Tomcat.
If you are new with Gretty, try getting started page.
March 13, 2026, Gretty 5.0.2 is out and available at Gradle Plugins and Maven Central.
archivePath propertyDecember 6, 2025, Gretty 5.0.1 is out and available at Gradle Plugins and Maven Central.
servletContainer via the command line (thanks @codeconsole)November 27, 2025, Gretty 5.0.0 is out and available at Gradle Plugins and Maven Central.
See also: complete list of changes for more information.
You can learn about all Gretty features in online documentation.
Gretty requires JDK17+ and Gradle 7.0 or newer.
Gretty is an open-source project and is freely available in sources as well as in compiled form.
Releases of Gretty (gretty.org fork) from 2.1.0 onwards are available at Bintray. Old releases of Gretty up to and including version 2.0.0 are available at Bintray.
Copyright 2013-2020 (c) Andrey Hihlovskiy, Timur Shakurov and contributors.
All versions, present and past, of Gretty are licensed under MIT license.
(top 30 of 45)
Groovy
71.6%
Java
14.0%
HTML
10.5%
CSS
1.7%
JavaScript
1.3%
Advanced gradle plugin for running web-apps on jetty and tomcat.
132
stars
1,763
commits
Groovy
primary language
Jun 12, 2026
updated

Gretty is a feature-rich Gradle plugin for running web-apps on embedded servlet containers. It supports Jetty version 12, Tomcat version 11, 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.
You are looking at Gretty's master branch which is for Gretty 5. You also might want to look at the gretty-3.x one which is for Gretty 3 or gretty-4.x one which is for Gretty 4. They are still in development and supports older versions of Jetty and Tomcat.
If you are new with Gretty, try getting started page.
March 13, 2026, Gretty 5.0.2 is out and available at Gradle Plugins and Maven Central.
archivePath propertyDecember 6, 2025, Gretty 5.0.1 is out and available at Gradle Plugins and Maven Central.
servletContainer via the command line (thanks @codeconsole)November 27, 2025, Gretty 5.0.0 is out and available at Gradle Plugins and Maven Central.
See also: complete list of changes for more information.
You can learn about all Gretty features in online documentation.
Gretty requires JDK17+ and Gradle 7.0 or newer.
Gretty is an open-source project and is freely available in sources as well as in compiled form.
Releases of Gretty (gretty.org fork) from 2.1.0 onwards are available at Bintray. Old releases of Gretty up to and including version 2.0.0 are available at Bintray.
Copyright 2013-2020 (c) Andrey Hihlovskiy, Timur Shakurov and contributors.
All versions, present and past, of Gretty are licensed under MIT license.
(top 30 of 45)
Groovy
71.6%
Java
14.0%
HTML
10.5%
CSS
1.7%
JavaScript
1.3%