You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2020/05/01 15:59:01 UTC
[plc4x-build-tools] branch develop updated: - Made the
autoVersionSubmodules a default setting for the release plugin - Removed
the autoVersionSubmodules property from the documentation
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x-build-tools.git
The following commit(s) were added to refs/heads/develop by this push:
new 8cf2f32 - Made the autoVersionSubmodules a default setting for the release plugin - Removed the autoVersionSubmodules property from the documentation
8cf2f32 is described below
commit 8cf2f32f15cc79bc892ddf382c7140246d24552e
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Fri May 1 17:58:51 2020 +0200
- Made the autoVersionSubmodules a default setting for the release plugin
- Removed the autoVersionSubmodules property from the documentation
---
code-generation/pom.xml | 11 +++++++++++
.../src/site/asciidoc/developers/release-build-tools.adoc | 9 +++------
.../plc4x-website/src/site/asciidoc/developers/release.adoc | 9 +++------
3 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/code-generation/pom.xml b/code-generation/pom.xml
index fbd044d..77a831a 100644
--- a/code-generation/pom.xml
+++ b/code-generation/pom.xml
@@ -175,6 +175,17 @@
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.0.0</version>
</plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <configuration>
+ <!-- Tell the plugin to always release all modules using the same version -->
+ <autoVersionSubmodules>true</autoVersionSubmodules>
+ <!-- Set the line separator to the unix style separator (Needed for reproducible builds -->
+ <arguments>-Papache-release -Dline.separator='\n' ${arguments}</arguments>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
</build>
diff --git a/plc4x-site-skin/src/it/plc4x-website/src/site/asciidoc/developers/release-build-tools.adoc b/plc4x-site-skin/src/it/plc4x-website/src/site/asciidoc/developers/release-build-tools.adoc
index 110d420..66825ae 100644
--- a/plc4x-site-skin/src/it/plc4x-website/src/site/asciidoc/developers/release-build-tools.adoc
+++ b/plc4x-site-skin/src/it/plc4x-website/src/site/asciidoc/developers/release-build-tools.adoc
@@ -45,17 +45,14 @@ This can and should be automated by the `maven-release-plugin`.
Per default the plugin will ask for the working copy version during the build execution.
This is the version the `develop` branch will be changed to.
-The parameter `autoVersionSubmodules` will tell the release plugin to release all modules with the same version.
-Otherwise we would have to define the working copy version for each module.
-
- mvn release:branch -DbranchName=rel/code-generation/{minor-version} -DautoVersionSubmodules=true
+ mvn release:branch -DbranchName=rel/code-generation/{minor-version}
Per default the plugin suggests the next bugfix version as working version, however we want it to use the next minor version.
So in case of preparing the release branch for `{project.version}` the command would be the following:
[subs="verbatim,attributes"]
----
- mvn release:branch -DbranchName=rel/code-generation/{current-short-version} -DautoVersionSubmodules=true
+ mvn release:branch -DbranchName=rel/code-generation/{current-short-version}
----
The plugin will then aks for the version:
@@ -120,7 +117,7 @@ In order to prepare a release-candidate, the first step is switching to the corr
After that, the following command will to all preparation steps for the release:
- mvn release:prepare -DautoVersionSubmodules=true
+ mvn release:prepare
In general the plugin will now ask you 3 questions:
diff --git a/plc4x-site-skin/src/it/plc4x-website/src/site/asciidoc/developers/release.adoc b/plc4x-site-skin/src/it/plc4x-website/src/site/asciidoc/developers/release.adoc
index ffa5d2f..ca68c4c 100644
--- a/plc4x-site-skin/src/it/plc4x-website/src/site/asciidoc/developers/release.adoc
+++ b/plc4x-site-skin/src/it/plc4x-website/src/site/asciidoc/developers/release.adoc
@@ -101,17 +101,14 @@ This can and should be automated by the `maven-release-plugin`.
Per default the plugin will ask for the working copy version during the build execution.
This is the version the `develop` branch will be changed to.
-The parameter `autoVersionSubmodules` will tell the release plugin to release all modules with the same version.
-Otherwise we would have to define the working copy version for each module.
-
- mvn release:branch -P with-sandbox,with-cpp,with-boost,with-dotnet,with-python,with-proxies,with-logstash -DbranchName=rel/{minor-version} -DautoVersionSubmodules=true
+ mvn release:branch -P with-sandbox,with-cpp,with-boost,with-dotnet,with-python,with-proxies,with-logstash -DbranchName=rel/{minor-version}
Per default the plugin suggests the next bugfix version as working version, however we want it to use the next minor version.
So in case of preparing the release branch for `0.6.0-SNAPSHOT` the command would be the following:
[subs="verbatim,attributes"]
----
- mvn release:branch -P with-sandbox,with-cpp,with-boost,with-dotnet,with-python,with-proxies,with-logstash -DbranchName=rel/{current-short-version} -DautoVersionSubmodules=true
+ mvn release:branch -P with-sandbox,with-cpp,with-boost,with-dotnet,with-python,with-proxies,with-logstash -DbranchName=rel/{current-short-version}
----
The plugin will then aks for the version:
@@ -172,7 +169,7 @@ In order to prepare a release-candidate, the first step is switching to the corr
After that, the following command will to all preparation steps for the release:
- mvn release:prepare -P with-sandbox,with-cpp,with-boost,with-dotnet,with-python,with-proxies,with-logstash -DautoVersionSubmodules=true
+ mvn release:prepare -P with-sandbox,with-cpp,with-boost,with-dotnet,with-python,with-proxies,with-logstash
(The `-P with-sandbox,with-cpp,with-boost,with-dotnet,with-python,with-proxies,with-logstash` tells maven to activate the all profiles that partition the build and makes sure the versions of all modules are updated as part of the release)
In general the plugin will now ask you 3 questions: