gradle中将Jetty版本升级到9

gradle中将Jetty版本升级到9

本文介绍了在build.gradle中将Jetty版本升级到9.4.8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在build.gradle中使用以下灰色配置:

I am currently using the following gretty configuration in build.gradle:

gretty {
  servletContainer = 'jetty9'
}

我想将码头版本升级到9.4.8.通过快速搜索,我发现jetty9代表版本Jetty 9.2.22.v20170606(来自: http://akhikhl.github.io/gretty-doc/Switching-between-servlet-containers.html ).关于如何升级到码头版本9.4.8,我一无所获.有人可以帮忙吗.

I want to upgrade the jetty version to 9.4.8.From a quick search I found that jetty9 stands for the version Jetty 9.2.22.v20170606 (from: http://akhikhl.github.io/gretty-doc/Switching-between-servlet-containers.html). I couldn't anything on how to upgrade to jetty version 9.4.8. Could someone please help.

推荐答案

是的,来自文档,您可以将gretty配置为使用'jetty9.4' (jdk 8 only)代替jetty9.

Yeah, from this doc, you can configure gretty to use 'jetty9.4' (jdk 8 only) instead of jetty9.

在最新的v2.0.0版本中,该插件将分别与9.2.22.v20170606jetty9v9.4.6.v20170531jetty9.4一起使用.(参考)

In the latest v2.0.0 release, plugin will work with jetty9 of 9.2.22.v20170606 and jetty9.4 of v9.4.6.v20170531, respectively.(ref)

jetty9_version=9.2.22.v20170606
jetty94_version=9.4.6.v20170531

您可以为 jetty94_version 公关.

[已更新]

我使用带有Jetty 9.4.8的Spring MVC创建了一个示例项目,特别是在此示例项目中提交.

I have created a sample project using Spring MVC with Jetty 9.4.8 particularly in this commit.

请使用" jetty9.4 "(而不是"jetty94")-请参阅此 github评论以获取更多信息

Please use 'jetty9.4' (instead of 'jetty94') - Refer to this github comment for more info

这篇关于在build.gradle中将Jetty版本升级到9.4.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-27 15:37