You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/04/26 10:34:34 UTC
[camel] branch master updated: camel-core readme should only say 1
artifact for the dataformats it includes out of the box
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 58356b6 camel-core readme should only say 1 artifact for the dataformats it includes out of the box
58356b6 is described below
commit 58356b6010d3599ff58ddfab6ad31aacee2439ad
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Apr 26 12:34:16 2019 +0200
camel-core readme should only say 1 artifact for the dataformats it includes out of the box
---
.../org/apache/camel/maven/packaging/PrepareReadmeMojo.java | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareReadmeMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareReadmeMojo.java
index bd8733e..ebb2b54 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareReadmeMojo.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareReadmeMojo.java
@@ -350,9 +350,14 @@ public class PrepareReadmeMojo extends AbstractMojo {
Collections.sort(models, new DataFormatComparator());
// how many different artifacts
- int count = models.stream()
- .map(DataFormatModel::getArtifactId)
- .collect(toSet()).size();
+ int count;
+ if (coreOnly) {
+ count = 1;
+ } else {
+ count = models.stream()
+ .map(DataFormatModel::getArtifactId)
+ .collect(toSet()).size();
+ }
// how many deprecated
long deprecated = models.stream()