Skip to content

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobento committed Sep 27, 2024
1 parent a8b14dc commit 4fea8f6
Show file tree
Hide file tree
Showing 73 changed files with 415 additions and 417 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
*/

const buildEnv = require("./env");
const { setup } = require("@kie-tools/maven-config-setup-helper");
const { setupMavenConfigFile } = require("@kie-tools/maven-config-setup-helper");

setup(`
setupMavenConfigFile(`
-Drevision=${buildEnv.env.droolsProcessUsertasksQuarkusExample.version}
-Dmaven.repo.local.tail=${require(".").chain.join(",")}
-Dmaven.repo.local.tail=${require("./mvn.tail").join(",")}
`);
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
* under the License.
*/

const { join } = require("path");
const { tailIncludingSelf } = require("@kie-tools/maven-config-setup-helper");

const tail = [...require("@kie-tools/jbpm-quarkus-devui").chain];

module.exports = {
chain: [join(__dirname, "dist/1st-party-m2/repository"), ...tail],
tail,
};
module.exports = tailIncludingSelf(__dirname, [
require("@kie-tools/maven-base/mvn.tail"),
require("@kie-tools/jbpm-quarkus-devui/mvn.tail"),
]);
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build:prod": "pnpm lint && run-script-if --bool \"$(build-env examples.build)\" --then run-script-os",
"build:prod:darwin:linux": "mvn clean compile -DskipTests=$(build-env tests.run --not) -Dmaven.test.failure.ignore=$(build-env tests.ignoreFailures)",
"build:prod:win32": "pnpm powershell \"mvn clean compile `-DskipTests `-Dmaven.test.failure.ignore=$(build-env tests.ignoreFailures)\"",
"install": "node install.js",
"install": "node mvn.bootstrap.js",
"lint": "echo 'Linting'",
"powershell": "@powershell -NoProfile -ExecutionPolicy Unrestricted -Command",
"quarkus:dev": "run-script-os",
Expand Down
4 changes: 2 additions & 2 deletions examples/drools-process-usertasks-quarkus-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>${quarkus.platform.group-id}</groupId>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus-plugin.version}</version>
<version>${quarkus.platform.version}</version>
<executions>
<execution>
<goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
*/

const buildEnv = require("./env");
const { setup, setPomProperty } = require("@kie-tools/maven-config-setup-helper");
const { setupMavenConfigFile, setPomProperty } = require("@kie-tools/maven-config-setup-helper");

setup(`
setupMavenConfigFile(`
-Drevision=${buildEnv.env.jbpmCompactArchitectureExample.version}
-Dmaven.repo.local.tail=${require(".").chain.join(",")}
-Dmaven.repo.local.tail=${require("./mvn.tail").join(",")}
`);

setPomProperty({
Expand Down
25 changes: 25 additions & 0 deletions examples/jbpm-compact-architecture-example/mvn.tail.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

const { tailIncludingSelf } = require("@kie-tools/maven-config-setup-helper");

module.exports = tailIncludingSelf(__dirname, [
require("@kie-tools/maven-base/mvn.tail"),
require("@kie-tools/jbpm-quarkus-devui/mvn.tail"),
]);
2 changes: 1 addition & 1 deletion examples/jbpm-compact-architecture-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"build:prod": "pnpm lint && run-script-if --bool \"$(build-env examples.build)\" --then run-script-os",
"build:prod:darwin:linux": "mvn clean compile -DskipTests=$(build-env tests.run --not) -Dmaven.test.failure.ignore=$(build-env tests.ignoreFailures) -Pcontainer",
"build:prod:win32": "pnpm powershell \"mvn clean compile `-DskipTests `-Dmaven.test.failure.ignore=$(build-env tests.ignoreFailures) `-Pcontainer \"",
"install": "node install.js",
"install": "node mvn.bootstrap.js",
"lint": "echo 'Linting'",
"powershell": "@powershell -NoProfile -ExecutionPolicy Unrestricted -Command",
"quarkus:dev": "run-script-os",
Expand Down
4 changes: 2 additions & 2 deletions examples/jbpm-compact-architecture-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>${quarkus.platform.group-id}</groupId>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus-plugin.version}</version>
<version>${quarkus.platform.version}</version>
<executions>
<execution>
<goals>
Expand Down
27 changes: 0 additions & 27 deletions examples/sonataflow-greeting-quarkus-example/index.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
*/

const buildEnv = require("./env");
const { setup } = require("@kie-tools/maven-config-setup-helper");
const { setupMavenConfigFile } = require("@kie-tools/maven-config-setup-helper");

setup(`
setupMavenConfigFile(`
-Drevision=${buildEnv.env.sonataflowGreetingQuarkus.version}
-Dmaven.repo.local.tail=${require(".").chain.join(",")}
-Dmaven.repo.local.tail=${require("./mvn.tail").join(",")}
`);
25 changes: 25 additions & 0 deletions examples/sonataflow-greeting-quarkus-example/mvn.tail.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

const { tailIncludingSelf } = require("@kie-tools/maven-config-setup-helper");

module.exports = tailIncludingSelf(__dirname, [
require("@kie-tools/maven-base/mvn.tail"),
require("@kie-tools/sonataflow-quarkus-devui/mvn.tail"),
]);
2 changes: 1 addition & 1 deletion examples/sonataflow-greeting-quarkus-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build:prod": "pnpm lint && run-script-if --bool \"$(build-env examples.build)\" --then run-script-os",
"build:prod:darwin:linux": "mvn clean package -DskipTests=$(build-env tests.run --not) -Dmaven.test.failure.ignore=$(build-env tests.ignoreFailures)",
"build:prod:win32": "pnpm powershell \"mvn clean package `-DskipTests `-Dmaven.test.failure.ignore=$(build-env tests.ignoreFailures)\"",
"install": "node install.js",
"install": "node mvn.bootstrap.js",
"lint": "echo 'Linting'",
"powershell": "@powershell -NoProfile -ExecutionPolicy Unrestricted -Command",
"quarkus:dev": "run-script-os",
Expand Down
5 changes: 2 additions & 3 deletions examples/sonataflow-greeting-quarkus-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,14 @@
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
<configuration>
<release>${maven.compiler.release}</release>
</configuration>
</plugin>
<plugin>
<groupId>${quarkus.platform.group-id}</groupId>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus-plugin.version}</version>
<version>${quarkus.platform.version}</version>
<executions>
<execution>
<goals>
Expand Down
30 changes: 0 additions & 30 deletions packages/dashbuilder/index.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
*/

const buildEnv = require("./env");
const { setup } = require("@kie-tools/maven-config-setup-helper");
const { setupMavenConfigFile } = require("@kie-tools/maven-config-setup-helper");

setup(`
setupMavenConfigFile(`
-Drevision=${buildEnv.env.dashbuilder.version}
-Dmaven.repo.local.tail=${require(".").chain.join(",")}
-Dmaven.repo.local.tail=${require("./mvn.tail").join(",")}
`);
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
* under the License.
*/

const { join } = require("path");
const { tailIncludingSelf } = require("@kie-tools/maven-config-setup-helper");

const tail = [...require("@kie-tools/maven-base").chain];

module.exports = {
chain: [join(__dirname, "dist/1st-party-m2/repository"), ...tail],
tail,
};
module.exports = tailIncludingSelf(__dirname, [require("@kie-tools/maven-base/mvn.tail")]);
2 changes: 1 addition & 1 deletion packages/dashbuilder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"build:prod:win32": "pnpm powershell \"mvn clean install `-Dgwt.compiler.skip=true `-DskipTests\"",
"copy:components": "pnpm delete:components && copyfiles -u 3 \"../dashbuilder-component-assembler/dist/**/*\" ./dashbuilder-runtime-parent/dashbuilder-runtime-client/src/main/webapp/dashbuilder/component",
"delete:components": "rimraf ./dashbuilder-runtime-parent/dashbuilder-runtime-client/src/main/webapp/dashbuilder/component",
"install": "node install.js",
"install": "node mvn.bootstrap.js",
"lint": "echo 'Linting'",
"powershell": "@powershell -NoProfile -ExecutionPolicy Unrestricted -Command"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
*/

const buildEnv = require("./env");
const { setup, installMvnw } = require("@kie-tools/maven-config-setup-helper");
const { setupMavenConfigFile, installMvnw } = require("@kie-tools/maven-config-setup-helper");

setup(`
setupMavenConfigFile(`
-Drevision=${buildEnv.env.devDeploymentBaseImage.version}
-Dmaven.repo.local.tail=${require(".").chain.join(",")}
-Dmaven.repo.local.tail=${require("./mvn.tail").join(",")}
`);

installMvnw();
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
* under the License.
*/

const { join } = require("path");
const { tailIncludingSelf } = require("@kie-tools/maven-config-setup-helper");

const tail = [...require("@kie-tools/maven-base").chain];

module.exports = {
chain: [join(__dirname, "dist/1st-party-m2/repository"), ...tail],
tail,
};
module.exports = tailIncludingSelf(__dirname, [require("@kie-tools/maven-base/mvn.tail")]);
2 changes: 1 addition & 1 deletion packages/dev-deployment-base-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"create-test-image:minikube": "kie-tools--image-builder minikube -r \"$(build-env devDeploymentBaseImage.registry)\" -a \"$(build-env devDeploymentBaseImage.account)\" -n \"$(build-env devDeploymentBaseImage.name)\" -t \"$(build-env devDeploymentBaseImage.buildTag)\" --build-arg BUILDER_IMAGE_ARG=\"$(build-env devDeploymentBaseImage.builderImage)\"",
"create-test-image:openshift": "kie-tools--image-builder openshift -r \"$(build-env devDeploymentBaseImage.registry)\" -a \"$(build-env devDeploymentBaseImage.account)\" -n \"$(build-env devDeploymentBaseImage.name)\" -t \"$(build-env devDeploymentBaseImage.buildTag)\" --build-arg BUILDER_IMAGE_ARG=\"$(build-env devDeploymentBaseImage.builderImage)\"",
"image:docker:build": "kie-tools--image-builder build -r \"$(build-env devDeploymentBaseImage.registry)\" -a \"$(build-env devDeploymentBaseImage.account)\" -n \"$(build-env devDeploymentBaseImage.name)\" -t \"$(build-env devDeploymentBaseImage.buildTag)\" --build-arg BUILDER_IMAGE_ARG=\"$(build-env devDeploymentBaseImage.builderImage)\" --build-arg USER_ID_ARG=\"$(build-env devDeploymentBaseImage.userId)\" --build-arg HOME_PATH_ARG=\"$(build-env devDeploymentBaseImage.homePath)\"",
"install": "node install.js",
"install": "node mvn.bootstrap.js",
"powershell": "@powershell -NoProfile -ExecutionPolicy Unrestricted -Command"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

const buildEnv = require("./env");
const { setup } = require("@kie-tools/maven-config-setup-helper");
const { setupMavenConfigFile } = require("@kie-tools/maven-config-setup-helper");

setup(`
setupMavenConfigFile(`
-Drevision=${buildEnv.env.devDeploymentKogitoQuarkusBlankAppImage.version}
`);
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
*/

const buildEnv = require("./env");
const { setup, installMvnw } = require("@kie-tools/maven-config-setup-helper");
const { setupMavenConfigFile, installMvnw } = require("@kie-tools/maven-config-setup-helper");

setup(
setupMavenConfigFile(
`
--batch-mode
-Dstyle.color=always
-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(".").chain.join(",")}
-Dmaven.repo.local.tail=${require("./mvn.tail").join(",")}
`,
{ ignoreDefault: true } // Can't have special <repositories> configuration that only works inside this repo.
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
* under the License.
*/

const { join } = require("path");
const { tailIncludingSelf } = require("@kie-tools/maven-config-setup-helper");

const tail = [...require("@kie-tools/maven-base").chain];

module.exports = {
chain: [join(__dirname, "dist/1st-party-m2/repository"), ...tail],
tail,
};
module.exports = tailIncludingSelf(__dirname, [require("@kie-tools/jbpm-quarkus-devui/mvn.tail")]);
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build:prod": "pnpm lint && run-script-os",
"build:prod:darwin:linux": "mvn clean install -DskipTests=$(build-env tests.run --not) -Dmaven.test.failure.ignore=$(build-env tests.ignoreFailures)",
"build:prod:win32": "pnpm powershell \"mvn clean install `-DskipTests=$(build-env tests.run --not) `-Dmaven.test.failure.ignore=$(build-env tests.ignoreFailures)\"",
"install": "node install.js",
"install": "node mvn.bootstrap.js",
"lint": "echo 'Linting'",
"powershell": "@powershell -NoProfile -ExecutionPolicy Unrestricted -Command",
"quarkus:dev": "run-script-os",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
*/

const buildEnv = require("./env");
const { setup } = require("@kie-tools/maven-config-setup-helper");
const { setupMavenConfigFile } = require("@kie-tools/maven-config-setup-helper");

setup(`
setupMavenConfigFile(`
-Drevision=${buildEnv.env.dmnTestingModels.version}
-Dmaven.repo.local.tail=${require(".").chain.join(",")}
-Dmaven.repo.local.tail=${require("./mvn.tail").join(",")}
`);
Loading

0 comments on commit 4fea8f6

Please sign in to comment.