# How to upgrade jetty plugin version

**URL:** https://discuss.gradle.org/t/how-to-upgrade-jetty-plugin-version/6009
**Category:** Old Forum Archive
**Created:** [June 21, 2012, 1:27pm UTC](https://discuss.gradle.org/t/how-to-upgrade-jetty-plugin-version/6009 "2012-06-21T13:27:00Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![patel\_rakesh](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@patel\_rakesh](https://discuss.gradle.org/u/patel_rakesh)
#### Post date: [June 21, 2012, 1:27pm UTC](https://discuss.gradle.org/t/how-to-upgrade-jetty-plugin-version/6009/1 "2012-06-21T13:27:00Z")

</div>

my app is being deployed to Jetty 7. The internal Jetty 6 has been fine for testing until now, when I need to bundle a jetty-web.xml file. The move from Jetty 6 to Jetty 7 also changes the package names so gradle cannot find the correct class.

Is there a clean way to upgrade the gradle jetty plugin to use Jetty 7?

---

<div class="post-metadata">

### Author: ![rolfsuurd1](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@rolfsuurd1](https://discuss.gradle.org/u/rolfsuurd1)
#### Post date: [June 21, 2012, 2:47pm UTC](https://discuss.gradle.org/t/how-to-upgrade-jetty-plugin-version/6009/2 "2012-06-21T14:47:00Z")

</div>

At the moment, the Jetty version is not configurable in your build file (yet)

You’d have to fork gradle, and update the jetty versions in the build.gradle that’s in the project root.

Then build a distribution 🙂

Good luck!

---

<div class="post-metadata">

### Author: ![Andreas\_Sahlbach](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/andreas_sahlbach/32/94_2.png) [@Andreas\_Sahlbach](https://discuss.gradle.org/u/Andreas_Sahlbach)
#### Post date: [May 7, 2014, 8:16am UTC](https://discuss.gradle.org/t/how-to-upgrade-jetty-plugin-version/6009/3 "2014-05-07T08:16:00Z")

</div>

You could use my plugin instead of the built-in plugin:

[gradle-jetty-eclipse-plugin] ([https://github.com/Khoulaiz/gradle-jetty-eclipse-plugin](https://github.com/Khoulaiz/gradle-jetty-eclipse-plugin))

---

<div class="post-metadata">

### Author: ![Jack\_Holt](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/jack_holt/32/1475_2.png) [@Jack\_Holt](https://discuss.gradle.org/u/Jack_Holt)
#### Post date: [August 18, 2014, 11:51pm UTC](https://discuss.gradle.org/t/how-to-upgrade-jetty-plugin-version/6009/4 "2014-08-18T23:51:00Z")

</div>

IMHO, Andreas has the best answer. I have created an example of using Gradle with Spring 4 and Servlet 3 at [https://bitbucket.org/jackcholt/spring4hw](https://bitbucket.org/jackcholt/spring4hw). Until I configured it to use Andreas’ plugin instead of the bundled Jetty plugin, it simply didn’t work. Probably because I had used Spring 4 in such a way that it didn’t use a web.xml file. I believe getting rid of the web.xml was not supported before Servlet 3.

Thank you, Andreas!

---

<div class="post-metadata">

### Author: ![Andreas\_Sahlbach](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/andreas_sahlbach/32/94_2.png) [@Andreas\_Sahlbach](https://discuss.gradle.org/u/Andreas_Sahlbach)
#### Post date: [August 18, 2014, 11:55pm UTC](https://discuss.gradle.org/t/how-to-upgrade-jetty-plugin-version/6009/5 "2014-08-18T23:55:00Z")

</div>

You should also checkout the gretty plugin on github. Very nice plugin and very good maintained.
