There are 2 comments.
 
 
XWiki Infrastructure / cid:jira-generated-image-avatar-0f98891d-4005-4d7d-bdce-49eb15196dfa XINFRA-286 In Progress

Create proper GitHub releases with the xwiki release script

 
View issue   ยท   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-57183edb-f131-4e15-b02b-5e9a5c28f15e Thomas Mortagne on 09/Jan/25 12:10
 

I experimented with https://github.com/RagedUnicorn/github-release-maven-plugin and it's working well.

Unfortunately, the fact that it does not have any special support for multi-module project is not great: if you want the plugin to be executed only once (and you do want, otherwise it will fail because "the release already exist" and it's not great for performances anyway) you need to use the standard Maven <inherited>false</inherited>, but then it means that:
1. it's executed at the beginning, while it would be much better to execute it at the end (when the release perform is a success)
2. it means that you need to declare the plugin in each contrib project (with <inherited>false</inherited> if the contrib project has several modules)

For now, I'm going to configure it without any goal and execute the goal in the XWiki Standard release script, after the maven build.

 
cid:jira-generated-image-avatar-57183edb-f131-4e15-b02b-5e9a5c28f15e Thomas Mortagne on 09/Jan/25 12:11
 
I experimented with [ https://github.com/RagedUnicorn/github-release-maven-plugin ] and it's working well.

Unfortunately, the fact that it does not have any special support for multi-module project is not great: if you want the plugin to be executed only once (and you do want, otherwise it will fail because "the release already exist" and it's not great for performances anyway) you need to use the standard Maven <inherited>false</inherited>, but then it means that:
1. # it's executed at the beginning, while it would be much better to execute it at the end (when the release perform is a success)
2. # it means that you need to declare the plugin in each contrib project (with <inherited>false</inherited> if the contrib project has several modules)

For now, I'm going to configure it without any goal and execute the goal in the XWiki Standard release script, after the maven build.