How to update the quarkus version used

淺唱寂寞╮ 提交于 2020-01-25 06:41:59

问题


What is the recommended way of upgrading the quarkus version used in an existing application?

I have taken a look at my pom.xml, since the quarkus extensions dont specify the version used, I assume that they will get updated based on the main quarkus version. The properties which look to be relevant in the update are quarkus-plugin.version, quarkus.platform.group-id and surefire-plugin.version. How can I decide which ones to change, and is there anything else to be aware of?


回答1:


There is one important thing to know, we have:

  • Quarkus Core: this is the main Quarkus artifacts + all the core extensions: the quarkus-bom is the one of Core. The Quarkus Maven plugin is part of it too.
  • Quarkus Platform: it contains more extensions such as Camel Quarkus: the quarkus-universe-bom is the one from the Platform, it contains the Core + the additional extensions

We usually release Quarkus core then Quarkus Platform with a few days between the two as we often need a release of Camel Quarkus, which is an Apache project and organizes a 72 hours vote for each release.

In a newly created project, you have the following properties:

    <quarkus-plugin.version>1.1.1.Final</quarkus-plugin.version>
    <quarkus.platform.artifact-id>quarkus-universe-bom</quarkus.platform.artifact-id>
    <quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
    <quarkus.platform.version>1.1.1.Final</quarkus.platform.version>
  • quarkus-plugin.version is the version of the Quarkus Maven plugin, it should be in line with the version of the core you use
  • quarkus.platform.artifact-id can right now either be quarkus-universe-bom for the whole Platform or just quarkus-bom for the Core only.
  • quarkus.platform.version is the version of the BOM.

Usually all these versions should be aligned. But... it could happen that we would need some quick update in the Platform and not of the core and we could then only release a new version of the platform. This hasn't happened yet to be honest.

Let's take an example of what happened today: I released Quarkus Core 1.2.0.Final but we are still waiting for Camel Quarkus to be released to release the Platform.

If you want to update early, you can change the BOM to use the quarkus-bom and update everything to 1.2.0.Final.

Or you can wait for the Platform to be released early next week and stay on the Platform quarkus-universe-bom.

We also only update the website documentation and code.quarkus.io when the full Platform is released.



来源:https://stackoverflow.com/questions/59880235/how-to-update-the-quarkus-version-used

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!