Skip to content

Commit

Permalink
Maven local
Browse files Browse the repository at this point in the history
Rename

Fix build reproducibility

v2

Oops

Fix DashBuilder configuration of maven-deploy-plugin

Oops

Fix maven-m2-repo-via-http-image configuration

.

Fix config
  • Loading branch information
tiagobento committed Sep 30, 2024
1 parent 275c07d commit a52ba66
Show file tree
Hide file tree
Showing 85 changed files with 1,352 additions and 325 deletions.
2 changes: 1 addition & 1 deletion devbox.lock
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@
},
"[email protected]": {
"last_modified": "2024-03-22T11:26:23Z",
"plugin_version": "0.0.4",
"plugin_version": "0.0.3",
"resolved": "github:NixOS/nixpkgs/a3ed7406349a9335cb4c2a71369b697cecd9d351#python312",
"source": "devbox-search",
"version": "3.12.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +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("./mvn.tail").join(",")}
`);
25 changes: 25 additions & 0 deletions examples/drools-process-usertasks-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/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
50 changes: 32 additions & 18 deletions examples/drools-process-usertasks-quarkus-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,6 @@
<name>Kie-Tools Example :: Process with Usertasks Quarkus</name>
<description>Kogito user tasks orchestration - Quarkus</description>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-quarkus-devui-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
Expand All @@ -58,10 +46,6 @@
<groupId>org.jbpm</groupId>
<artifactId>jbpm-with-drools-quarkus</artifactId>
</dependency>
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-quarkus-devui</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-openapi</artifactId>
Expand Down Expand Up @@ -89,13 +73,43 @@
<artifactId>kie-addons-quarkus-process-svg</artifactId>
</dependency>
</dependencies>

<profiles>
<profile>
<id>kie-tools--maven-profile--1st-party-dependencies</id>
<activation>
<property>
<name>ignore--kie-tools--maven-profile--1st-party-dependencies</name>
<value>!true</value>
</property>
</activation>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-quarkus-devui-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-quarkus-devui</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>

<build>
<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,10 +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("./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
41 changes: 28 additions & 13 deletions examples/jbpm-compact-architecture-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,32 @@
</dependencies>

<profiles>
<profile>
<id>kie-tools--maven-profile--1st-party-dependencies</id>
<activation>
<property>
<name>ignore--kie-tools--maven-profile--1st-party-dependencies</name>
<value>!true</value>
</property>
</activation>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-quarkus-devui-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-quarkus-devui</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>container</id>
<properties>
Expand All @@ -138,17 +164,6 @@
<properties>
<quarkus.profile>dev</quarkus.profile>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-quarkus-devui-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jbpm</groupId>
Expand All @@ -162,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
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +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("./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
48 changes: 28 additions & 20 deletions examples/sonataflow-greeting-quarkus-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,6 @@
<name>KIE Tools Example :: SonataFlow Greeting :: Quarkus</name>
<description>SonataFlow Example - Quarkus</description>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.kie.sonataflow</groupId>
<artifactId>sonataflow-quarkus-devui-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.apache.kie.sonataflow</groupId>
Expand All @@ -67,10 +55,6 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jsonp</artifactId>
</dependency>
<dependency>
<groupId>org.apache.kie.sonataflow</groupId>
<artifactId>sonataflow-quarkus-devui</artifactId>
</dependency>
<dependency>
<groupId>org.kie</groupId>
<artifactId>kie-addons-quarkus-source-files</artifactId>
Expand All @@ -95,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 All @@ -114,7 +97,6 @@
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${version.failsafe.plugin}</version>
<configuration>
<systemPropertyVariables>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
Expand All @@ -133,6 +115,32 @@
</plugins>
</build>
<profiles>
<profile>
<id>kie-tools--maven-profile--1st-party-dependencies</id>
<activation>
<property>
<name>ignore--kie-tools--maven-profile--1st-party-dependencies</name>
<value>!true</value>
</property>
</activation>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.kie.sonataflow</groupId>
<artifactId>sonataflow-quarkus-devui-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.kie.sonataflow</groupId>
<artifactId>sonataflow-quarkus-devui</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>container</id>
<activation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +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("./mvn.tail").join(",")}
`);
Loading

0 comments on commit a52ba66

Please sign in to comment.