From a8b14dca60c8a485587380aa732c7a55169c9db6 Mon Sep 17 00:00:00 2001 From: Tiago Bento Date: Fri, 27 Sep 2024 14:00:21 -0400 Subject: [PATCH] Fix build reproducibility --- examples/drools-process-usertasks-quarkus-example/install.js | 2 +- examples/jbpm-compact-architecture-example/install.js | 2 +- examples/sonataflow-greeting-quarkus-example/install.js | 2 +- packages/dashbuilder/install.js | 2 +- packages/dev-deployment-base-image/install.js | 2 +- packages/dev-deployment-kogito-quarkus-blank-app/install.js | 2 +- packages/dmn-testing-models/install.js | 2 +- packages/extended-services-java/install.js | 2 +- packages/jbpm-quarkus-devui/install.js | 2 +- packages/maven-base/install.js | 2 +- packages/maven-base/pom.xml | 3 ++- .../install.js | 2 +- packages/serverless-workflow-diagram-editor/install.js | 2 +- packages/sonataflow-quarkus-devui/install.js | 2 +- packages/stunner-editors/install.js | 2 +- .../vscode-java-code-completion-extension-plugin/install.js | 2 +- packages/yard-model/install.js | 2 +- packages/yard-validator-worker/install.js | 2 +- 18 files changed, 19 insertions(+), 18 deletions(-) diff --git a/examples/drools-process-usertasks-quarkus-example/install.js b/examples/drools-process-usertasks-quarkus-example/install.js index f0bc677e794..850cb97de06 100644 --- a/examples/drools-process-usertasks-quarkus-example/install.js +++ b/examples/drools-process-usertasks-quarkus-example/install.js @@ -22,5 +22,5 @@ const { setup } = require("@kie-tools/maven-config-setup-helper"); setup(` -Drevision=${buildEnv.env.droolsProcessUsertasksQuarkusExample.version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `); diff --git a/examples/jbpm-compact-architecture-example/install.js b/examples/jbpm-compact-architecture-example/install.js index 45009a0c921..df4b2b92b53 100644 --- a/examples/jbpm-compact-architecture-example/install.js +++ b/examples/jbpm-compact-architecture-example/install.js @@ -22,7 +22,7 @@ const { setup, setPomProperty } = require("@kie-tools/maven-config-setup-helper" setup(` -Drevision=${buildEnv.env.jbpmCompactArchitectureExample.version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `); setPomProperty({ diff --git a/examples/sonataflow-greeting-quarkus-example/install.js b/examples/sonataflow-greeting-quarkus-example/install.js index 7ccd23ce09e..669d172ea67 100644 --- a/examples/sonataflow-greeting-quarkus-example/install.js +++ b/examples/sonataflow-greeting-quarkus-example/install.js @@ -22,5 +22,5 @@ const { setup } = require("@kie-tools/maven-config-setup-helper"); setup(` -Drevision=${buildEnv.env.sonataflowGreetingQuarkus.version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `); diff --git a/packages/dashbuilder/install.js b/packages/dashbuilder/install.js index 3cc251c8b1b..69612d66de0 100644 --- a/packages/dashbuilder/install.js +++ b/packages/dashbuilder/install.js @@ -22,5 +22,5 @@ const { setup } = require("@kie-tools/maven-config-setup-helper"); setup(` -Drevision=${buildEnv.env.dashbuilder.version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `); diff --git a/packages/dev-deployment-base-image/install.js b/packages/dev-deployment-base-image/install.js index 49491e650c8..679c45cf64e 100644 --- a/packages/dev-deployment-base-image/install.js +++ b/packages/dev-deployment-base-image/install.js @@ -22,7 +22,7 @@ const { setup, installMvnw } = require("@kie-tools/maven-config-setup-helper"); setup(` -Drevision=${buildEnv.env.devDeploymentBaseImage.version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `); installMvnw(); diff --git a/packages/dev-deployment-kogito-quarkus-blank-app/install.js b/packages/dev-deployment-kogito-quarkus-blank-app/install.js index 0490d44056b..5b25546c24b 100644 --- a/packages/dev-deployment-kogito-quarkus-blank-app/install.js +++ b/packages/dev-deployment-kogito-quarkus-blank-app/install.js @@ -27,7 +27,7 @@ setup( -Drevision=${buildEnv.env.devDeploymentQuarkusApp.version} -Dquarkus.platform.version=${buildEnv.env.quarkusPlatform.version} -Dversion.org.kie.kogito=${buildEnv.env.kogitoRuntime.version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `, { ignoreDefault: true } // Can't have special configuration that only works inside this repo. ); diff --git a/packages/dmn-testing-models/install.js b/packages/dmn-testing-models/install.js index 636be018588..2cd1197f3b9 100644 --- a/packages/dmn-testing-models/install.js +++ b/packages/dmn-testing-models/install.js @@ -22,5 +22,5 @@ const { setup } = require("@kie-tools/maven-config-setup-helper"); setup(` -Drevision=${buildEnv.env.dmnTestingModels.version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `); diff --git a/packages/extended-services-java/install.js b/packages/extended-services-java/install.js index 5c2c359d88d..ceba78ce7aa 100644 --- a/packages/extended-services-java/install.js +++ b/packages/extended-services-java/install.js @@ -24,5 +24,5 @@ setup(` -Drevision=${buildEnv.env.extendedServicesJava.version} -Dquarkus.http.port=${buildEnv.env.extendedServicesJava.port} -Dquarkus.http.host=${buildEnv.env.extendedServicesJava.host} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `); diff --git a/packages/jbpm-quarkus-devui/install.js b/packages/jbpm-quarkus-devui/install.js index 011cddb55b4..38a8e0182dc 100644 --- a/packages/jbpm-quarkus-devui/install.js +++ b/packages/jbpm-quarkus-devui/install.js @@ -22,5 +22,5 @@ const { setup } = require("@kie-tools/maven-config-setup-helper"); setup(` -Drevision=${buildEnv.env.jbpmQuarkusDevuiExtension.version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `); diff --git a/packages/maven-base/install.js b/packages/maven-base/install.js index b1279942bf2..1c665f32152 100644 --- a/packages/maven-base/install.js +++ b/packages/maven-base/install.js @@ -25,7 +25,7 @@ setup( --batch-mode -Dstyle.color=always -Drevision=${buildEnv.env.mavenBase.version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `, { ignoreDefault: true } ); diff --git a/packages/maven-base/pom.xml b/packages/maven-base/pom.xml index 2061359a945..db2d5def7ba 100644 --- a/packages/maven-base/pom.xml +++ b/packages/maven-base/pom.xml @@ -182,9 +182,10 @@ maven-install-plugin + default-install none - + diff --git a/packages/serverless-logic-web-tools-swf-deployment-quarkus-app/install.js b/packages/serverless-logic-web-tools-swf-deployment-quarkus-app/install.js index 89d3f15d959..2ea0cc3a593 100644 --- a/packages/serverless-logic-web-tools-swf-deployment-quarkus-app/install.js +++ b/packages/serverless-logic-web-tools-swf-deployment-quarkus-app/install.js @@ -27,7 +27,7 @@ setup( -Drevision=${buildEnv.env.swfDeploymentQuarkusApp.version} -Dquarkus.platform.version=${buildEnv.env.quarkusPlatform.version} -Dversion.org.kie.kogito=${buildEnv.env.kogitoRuntime.version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `, { ignoreDefault: true } // Can't have special configuration that only works inside this repo. ); diff --git a/packages/serverless-workflow-diagram-editor/install.js b/packages/serverless-workflow-diagram-editor/install.js index 5f303959690..16bf8df3e25 100644 --- a/packages/serverless-workflow-diagram-editor/install.js +++ b/packages/serverless-workflow-diagram-editor/install.js @@ -25,7 +25,7 @@ setup( --batch-mode -Dstyle.color=always -Drevision=${buildEnv.env.swfDiagramEditor.version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `, { ignoreDefault: true } ); // Default configuration doesn't work for this module. Since this module is not going to last long, we rely on this workaround for a while. diff --git a/packages/sonataflow-quarkus-devui/install.js b/packages/sonataflow-quarkus-devui/install.js index b2d68c3a451..22fd2ba0be8 100644 --- a/packages/sonataflow-quarkus-devui/install.js +++ b/packages/sonataflow-quarkus-devui/install.js @@ -22,5 +22,5 @@ const { setup } = require("@kie-tools/maven-config-setup-helper"); setup(` -Drevision=${buildEnv.env.sonataflowQuarkusDevuiExtension.version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `); diff --git a/packages/stunner-editors/install.js b/packages/stunner-editors/install.js index 624e1d752c8..3f50d133cc5 100644 --- a/packages/stunner-editors/install.js +++ b/packages/stunner-editors/install.js @@ -26,7 +26,7 @@ setup( -Dstyle.color=always -Drevision=${buildEnv.env.stunnerEditors.version} -Dversion.org.kie.kogito=${buildEnv.env.kogitoRuntime.version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `, { ignoreDefault: true } ); // Default configuration doesn't work for this module. Since this module is not going to last long, we rely on this workaround for a while. diff --git a/packages/vscode-java-code-completion-extension-plugin/install.js b/packages/vscode-java-code-completion-extension-plugin/install.js index 5550067a21d..efaa0144037 100644 --- a/packages/vscode-java-code-completion-extension-plugin/install.js +++ b/packages/vscode-java-code-completion-extension-plugin/install.js @@ -24,7 +24,7 @@ const version = buildEnv.env.vscodeJavaCodeCompletionExtensionPlugin.version; setup(` -Drevision=${version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `); installMvnw(); diff --git a/packages/yard-model/install.js b/packages/yard-model/install.js index fd7fd35a911..1b1f7559adb 100644 --- a/packages/yard-model/install.js +++ b/packages/yard-model/install.js @@ -22,7 +22,7 @@ const { setup, installMvnw } = require("@kie-tools/maven-config-setup-helper"); setup(` -Drevision=${buildEnv.env.yardModel.version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")} + -Dmaven.repo.local.tail=${require(".").chain.join(",")} `); installMvnw(); diff --git a/packages/yard-validator-worker/install.js b/packages/yard-validator-worker/install.js index 32c04a82947..e4fa13d2574 100644 --- a/packages/yard-validator-worker/install.js +++ b/packages/yard-validator-worker/install.js @@ -22,6 +22,6 @@ const { setup, installMvnw } = require("@kie-tools/maven-config-setup-helper"); setup(` -Drevision=${buildEnv.env.yardValidator.version} - -Dmaven.repo.local.tail=${require(".").tail.join(",")}`); + -Dmaven.repo.local.tail=${require(".").chain.join(",")}`); installMvnw();