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/15 13:43:02 UTC
[plc4x] branch develop updated: - Merged changes from the release
branch
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.git
The following commit(s) were added to refs/heads/develop by this push:
new 631cfd5 - Merged changes from the release branch
631cfd5 is described below
commit 631cfd57dca9012f3e69575cd8f5737f6b836618
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Fri May 15 15:42:47 2020 +0200
- Merged changes from the release branch
---
NOTICE | 2 +-
RELEASE_NOTES | 2 +-
plc4j/drivers/ads/pom.xml | 4 ++--
pom.xml | 8 +++++--
sandbox/test-java-amsads-driver/pom.xml | 4 ++--
.../amsads/configuration/AdsConfiguration.java | 5 +++++
sandbox/test-java-df1-driver/pom.xml | 4 ++--
.../java/df1/configuration/Df1Configuration.java | 5 +++++
src/main/script/prerequisiteCheck.groovy | 25 ++++++++++++++++++++++
src/site/asciidoc/developers/release/release.adoc | 14 +++++++++---
10 files changed, 60 insertions(+), 13 deletions(-)
diff --git a/NOTICE b/NOTICE
index ca23d65..1a3ca2a 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
Apache PLC4X
-Copyright 2017-2019 The Apache Software Foundation
+Copyright 2017-2020 The Apache Software Foundation
This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
diff --git a/RELEASE_NOTES b/RELEASE_NOTES
index 83ac400..c780022 100644
--- a/RELEASE_NOTES
+++ b/RELEASE_NOTES
@@ -1,5 +1,5 @@
==============================================================
-(Unreleased) Apache PLC4X 0.7.0-SNAPSHOT
+Apache PLC4X 0.7.0-SNAPSHOT
==============================================================
This version is the first after a major refactoring of the driver
diff --git a/plc4j/drivers/ads/pom.xml b/plc4j/drivers/ads/pom.xml
index 1b03a82..7c355fe 100644
--- a/plc4j/drivers/ads/pom.xml
+++ b/plc4j/drivers/ads/pom.xml
@@ -55,8 +55,8 @@
</dependency>
<dependency>
<groupId>org.apache.plc4x</groupId>
- <artifactId>plc4j-trannsport-serial</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <artifactId>plc4j-transport-serial</artifactId>
+ <version>0.8.0-SNAPSHOT</version>
</dependency>
<dependency>
diff --git a/pom.xml b/pom.xml
index 81c572e..be527ea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -103,7 +103,7 @@
<plc4x-code-generation.version>1.2.0</plc4x-code-generation.version>
- <antlr.version>4.7.2</antlr.version>
+ <antlr.version>4.8</antlr.version>
<apiguardian.version>1.1.0</apiguardian.version>
<asm.version>5.0.4</asm.version>
<assertj.version>3.11.1</assertj.version>
@@ -1239,6 +1239,8 @@
-->
<detectLinks>false</detectLinks>
<validateLinks>false</validateLinks>
+ <failOnWarnings>false</failOnWarnings>
+ <failOnError>false</failOnError>
</configuration>
</plugin>
@@ -1285,7 +1287,9 @@
<!-- 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>
+ <!-- TODO: try to find out why antlr doesn't like the line.separator setting -->
+ <!--arguments>-Papache-release -Dline.separator='\n' ${arguments}</arguments-->
+ <arguments>-Papache-release ${arguments}</arguments>
</configuration>
</plugin>
</plugins>
diff --git a/sandbox/test-java-amsads-driver/pom.xml b/sandbox/test-java-amsads-driver/pom.xml
index d2fc447..d63f182 100644
--- a/sandbox/test-java-amsads-driver/pom.xml
+++ b/sandbox/test-java-amsads-driver/pom.xml
@@ -67,8 +67,8 @@
</dependency>
<dependency>
<groupId>org.apache.plc4x</groupId>
- <artifactId>plc4j-trannsport-serial</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <artifactId>plc4j-transport-serial</artifactId>
+ <version>0.8.0-SNAPSHOT</version>
</dependency>
<dependency>
diff --git a/sandbox/test-java-amsads-driver/src/main/java/org/apache/plc4x/java/amsads/configuration/AdsConfiguration.java b/sandbox/test-java-amsads-driver/src/main/java/org/apache/plc4x/java/amsads/configuration/AdsConfiguration.java
index 606bc24..2f21d3e 100644
--- a/sandbox/test-java-amsads-driver/src/main/java/org/apache/plc4x/java/amsads/configuration/AdsConfiguration.java
+++ b/sandbox/test-java-amsads-driver/src/main/java/org/apache/plc4x/java/amsads/configuration/AdsConfiguration.java
@@ -85,6 +85,11 @@ public class AdsConfiguration implements Configuration, TcpTransportConfiguratio
return AMSADSPlcDriver.TCP_PORT;
}
+ @Override
+ public int getBaudRate() {
+ return 57600;
+ }
+
public static class AmsNetIdConverter implements ConfigurationParameterConverter<AmsNetId> {
@Override
diff --git a/sandbox/test-java-df1-driver/pom.xml b/sandbox/test-java-df1-driver/pom.xml
index 570c837..417d718 100644
--- a/sandbox/test-java-df1-driver/pom.xml
+++ b/sandbox/test-java-df1-driver/pom.xml
@@ -62,8 +62,8 @@
<dependency>
<groupId>org.apache.plc4x</groupId>
- <artifactId>plc4j-trannsport-serial</artifactId>
- <version>0.7.0-SNAPSHOT</version>
+ <artifactId>plc4j-transport-serial</artifactId>
+ <version>0.8.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.plc4x</groupId>
diff --git a/sandbox/test-java-df1-driver/src/main/java/org/apache/plc4x/java/df1/configuration/Df1Configuration.java b/sandbox/test-java-df1-driver/src/main/java/org/apache/plc4x/java/df1/configuration/Df1Configuration.java
index 90c2a7d..56cf3d8 100644
--- a/sandbox/test-java-df1-driver/src/main/java/org/apache/plc4x/java/df1/configuration/Df1Configuration.java
+++ b/sandbox/test-java-df1-driver/src/main/java/org/apache/plc4x/java/df1/configuration/Df1Configuration.java
@@ -30,4 +30,9 @@ public class Df1Configuration implements Configuration, SerialTransportConfigura
@ConfigurationParameter("remote-addr")
private short remoteAddr;
+ @Override
+ public int getBaudRate() {
+ return 57600;
+ }
+
}
diff --git a/src/main/script/prerequisiteCheck.groovy b/src/main/script/prerequisiteCheck.groovy
index a0d8322..514270b 100644
--- a/src/main/script/prerequisiteCheck.groovy
+++ b/src/main/script/prerequisiteCheck.groovy
@@ -140,6 +140,26 @@ def checkJavaVersion(String minVersion, String maxVersion) {
}
}
+def checkMavenVersion(String minVersion, String maxVersion) {
+ print "Detecting Maven version: "
+ def curVersion = project.projectBuilderConfiguration.systemProperties['maven.version']
+ def result
+ if (minVersion != null) {
+ result = checkVersionAtLeast(curVersion, minVersion)
+ if (!result) {
+ allConditionsMet = false
+ return
+ }
+ }
+ if (maxVersion != null) {
+ result = checkVersionAtMost(curVersion, maxVersion)
+ if (!result) {
+ allConditionsMet = false
+ return
+ }
+ }
+}
+
def checkFlex() {
print "Detecting Flex version: "
def output
@@ -526,6 +546,11 @@ if (sandboxEnabled && dockerEnabled) {
checkDocker()
}
+if (proxiesEnabled || cppEnabled || cEnabled) {
+ // CMake requires at least maven 3.6.0
+ checkMavenVersion("3.6.0", null)
+}
+
if (apacheReleaseEnabled) {
// TODO: Check libpcap is installed
}
diff --git a/src/site/asciidoc/developers/release/release.adoc b/src/site/asciidoc/developers/release/release.adoc
index 0b0990c..fd40636 100644
--- a/src/site/asciidoc/developers/release/release.adoc
+++ b/src/site/asciidoc/developers/release/release.adoc
@@ -113,6 +113,14 @@ If you happen to have multiple keys, adding the following profile to your `setti
</properties>
</profile>
+Currently there is a Java-Version sweet-spot for being able to release all modules and that is Java 11.
+
+So be sure to set `Java 11` as the java version used to do the release.
+
+Also at least `Maven 3.6` is required for CMake.
+
+Ideally use the Maven-Wrapper to ensure the Maven version fits the build.
+
=== Preparing the codebase for a release
Usually you will have to update the RELEASE_NOTES document to the new version.
@@ -140,14 +148,14 @@ This is the version the `develop` branch will be changed to.
In contrast to normal builds, it is important to enable all profiles when creating the branch as only this way will all modules versions be updated.
Otherwise the non-default modules on develop will reference the old version which will cause problems when building.
- mvn release:branch -P with-sandbox,with-cpp,with-boost,with-dotnet,with-python,with-proxies,with-logstash -DbranchName=rel/{minor-version}
+ mvn release:branch -P with-boost,with-c,with-cpp,with-docker,with-dotnet,with-logstash,with-proxies,with-python,with-sandbox -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 `{current-full-version}-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}
+ mvn release:branch -P with-boost,with-c,with-cpp,with-docker,with-dotnet,with-logstash,with-proxies,with-python,with-sandbox -DbranchName=rel/{current-short-version}
----
The plugin will then aks for the version:
@@ -212,7 +220,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
+ mvn release:prepare -P with-boost,with-c,with-cpp,with-docker,with-dotnet,with-logstash,with-proxies,with-python,with-sandbox
(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: