Skip to content

Commit

Permalink
Fix build reproducibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobento committed Sep 27, 2024
1 parent 9ac64b4 commit a8b14dc
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(",")}
`);
2 changes: 1 addition & 1 deletion examples/jbpm-compact-architecture-example/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion examples/sonataflow-greeting-quarkus-example/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(",")}
`);
2 changes: 1 addition & 1 deletion packages/dashbuilder/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(",")}
`);
2 changes: 1 addition & 1 deletion packages/dev-deployment-base-image/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Original file line number Diff line number Diff line change
Expand Up @@ -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 <repositories> configuration that only works inside this repo.
);
Expand Down
2 changes: 1 addition & 1 deletion packages/dmn-testing-models/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(",")}
`);
2 changes: 1 addition & 1 deletion packages/extended-services-java/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(",")}
`);
2 changes: 1 addition & 1 deletion packages/jbpm-quarkus-devui/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(",")}
`);
2 changes: 1 addition & 1 deletion packages/maven-base/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
);
Expand Down
3 changes: 2 additions & 1 deletion packages/maven-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,10 @@
<artifactId>maven-install-plugin</artifactId>
<executions>
<execution>
<!-- This installs JARs in the `maven.repo.local` directory -->
<id>default-install</id>
<phase>none</phase>
<!-- This installs JARs in the `maven.repo.local` directory -->
<!-- We skip it to prevent undeclared access to previously built files. -->
</execution>
</executions>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <repositories> configuration that only works inside this repo.
);
2 changes: 1 addition & 1 deletion packages/serverless-workflow-diagram-editor/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <repositories> configuration doesn't work for this module. Since this module is not going to last long, we rely on this workaround for a while.
2 changes: 1 addition & 1 deletion packages/sonataflow-quarkus-devui/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(",")}
`);
2 changes: 1 addition & 1 deletion packages/stunner-editors/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <repositories> configuration doesn't work for this module. Since this module is not going to last long, we rely on this workaround for a while.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion packages/yard-model/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
2 changes: 1 addition & 1 deletion packages/yard-validator-worker/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit a8b14dc

Please sign in to comment.