You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2020/09/05 09:58:44 UTC

[camel-quarkus] 04/05: Allow version literals for virtual dependencies

This is an automated email from the ASF dual-hosted git repository.

ppalaga pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit d6020d6d15fa83542982ded1a791bd00e66f99f5
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Fri Sep 4 22:54:29 2020 +0200

    Allow version literals for virtual dependencies
---
 tooling/scripts/validate-dependencies.groovy | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tooling/scripts/validate-dependencies.groovy b/tooling/scripts/validate-dependencies.groovy
index c35c139..e423b45 100644
--- a/tooling/scripts/validate-dependencies.groovy
+++ b/tooling/scripts/validate-dependencies.groovy
@@ -32,7 +32,10 @@ if (pomXml.exists()) {
     def pomXmlProject = new XmlParser().parseText(pomXml.getText('UTF-8'))
     pomXmlProject.dependencies.dependency
         .findAll {
-            !it.version.text().isEmpty()
+            !it.version.text().isEmpty() &&
+                !it.artifactId.text().endsWith('-deployment') &&
+                !'test'.equals(it.scope.text()) &&
+                !'pom'.equals(it.type.text())
         }
         .each {
             badDeps << "in ${relativePomPath} : ${it.groupId.text()}:${it.artifactId.text()}"