You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2024/01/12 14:02:23 UTC

(camel-quarkus) branch main updated: Add option to skip sanity-checks script execution

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 1861562580 Add option to skip sanity-checks script execution
1861562580 is described below

commit 1861562580677004650d1b5e5b0af4b566054cef
Author: James Netherton <ja...@gmail.com>
AuthorDate: Fri Jan 12 11:42:23 2024 +0000

    Add option to skip sanity-checks script execution
---
 tooling/scripts/sanity-checks.groovy | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tooling/scripts/sanity-checks.groovy b/tooling/scripts/sanity-checks.groovy
index 06b1a39764..2a3c0c1264 100644
--- a/tooling/scripts/sanity-checks.groovy
+++ b/tooling/scripts/sanity-checks.groovy
@@ -20,12 +20,18 @@ import java.nio.file.Paths
 
 
 // check bad dependencies
+final Boolean skip = Boolean.getBoolean("sanity-checks.skip")
 final List<String> badDeps = []
 final File pomXml = new File(project.basedir, "pom.xml")
 
 final Path treeRootDir = Paths.get(System.getProperty('maven.multiModuleProjectDirectory'))
 final Path relativePomPath = treeRootDir.relativize(pomXml.toPath().normalize())
 
+if (skip) {
+    println "Sanity checks are disabled"
+    return
+}
+
 if (pomXml.exists()) {
     def pomXmlProject = new XmlParser().parseText(pomXml.getText('UTF-8'))
     pomXmlProject.dependencies.dependency