Skip to content

Basic BOM support - #249

Merged
famod merged 1 commit into
gitflow-incremental-builder:masterfrom
famod:issue-241-bom-support
Sep 7, 2020
Merged

famod merged 1 commit into
gitflow-incremental-builder:masterfrom
famod:issue-241-bom-support

Conversation

@famod

@famod famod commented Sep 6, 2020 •

Copy link
Copy Markdown
Member

Resolves #241 (basic part without any semantic analysis which dependency versions changed).

template.zip now contains a "quarkus-scenario" (in branch quarkus) with some setup aspects of Quarkus.

/cc @mickroll @gastaldi

Diff for template.zip (some minor adjustments in build-parent/* omitted):

diff --git a/quarkus-scenario/README.txt b/quarkus-scenario/README.txt
new file mode 100644
index 0000000..3e94c44
--- /dev/null
+++ b/quarkus-scenario/README.txt
@@ -0,0 +1,7 @@
+This branch/tree tries to mimic some repo setup aspects of Quarkus (https://github.com/quarkusio/quarkus), e.g.:
+- some modules do not inherit from the root parent ("independent-projects" in the real Quarkus repo)
+- usage of a BOM module that is imported by many other modules
+
+References:
+- https://github.com/vackosar/gitflow-incremental-builder/pull/239
+- https://github.com/vackosar/gitflow-incremental-builder/issues/241
\ No newline at end of file
diff --git a/quarkus-scenario/bom/pom.xml b/quarkus-scenario/bom/pom.xml
new file mode 100644
index 0000000..2ce1ef3
--- /dev/null
+++ b/quarkus-scenario/bom/pom.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.acme</groupId>
+        <artifactId>parent</artifactId>
+        <version>999-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.acme</groupId>
+    <artifactId>bom</artifactId>
+    <packaging>pom</packaging>
+    <dependencyManagement>
+        <dependencies>
+            <dependency>    <!-- just some example -->
+                <groupId>org.eclipse.jgit</groupId>
+                <artifactId>org.eclipse.jgit</artifactId>
+                <version>${version.jgit}</version>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+</project>
diff --git a/quarkus-scenario/child1/pom.xml b/quarkus-scenario/child1/pom.xml
new file mode 100644
index 0000000..048a9da
--- /dev/null
+++ b/quarkus-scenario/child1/pom.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>build-parent</groupId>
+        <artifactId>build-parent</artifactId>
+        <version>1.0-SNAPSHOT</version>
+        <relativePath>../../build-parent/pom.xml</relativePath>
+    </parent>
+
+    <groupId>org.acme</groupId>
+    <artifactId>child1</artifactId>
+    <version>999-SNAPSHOT</version>
+    <packaging>jar</packaging>
+</project>
diff --git a/quarkus-scenario/child2/pom.xml b/quarkus-scenario/child2/pom.xml
new file mode 100644
index 0000000..69e45fb
--- /dev/null
+++ b/quarkus-scenario/child2/pom.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.acme</groupId>
+        <artifactId>parent</artifactId>
+        <version>999-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.acme</groupId>
+    <artifactId>child2</artifactId>
+    <packaging>jar</packaging>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.acme</groupId>
+                <artifactId>bom</artifactId>
+                <version>${project.version}</version>
+                <scope>import</scope>
+                <type>pom</type>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.acme</groupId>
+            <artifactId>child1</artifactId>
+            <version>999-SNAPSHOT</version>
+        </dependency>
+    </dependencies>
+</project>
diff --git a/quarkus-scenario/pom.xml b/quarkus-scenario/pom.xml
new file mode 100644
index 0000000..37f7d93
--- /dev/null
+++ b/quarkus-scenario/pom.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>build-parent</groupId>
+        <artifactId>build-parent</artifactId>
+        <version>1.0-SNAPSHOT</version>
+        <relativePath>../build-parent/pom.xml</relativePath>
+    </parent>
+
+    <groupId>org.acme</groupId>
+    <artifactId>parent</artifactId>
+    <version>999-SNAPSHOT</version>
+    <packaging>pom</packaging>
+
+    <modules>
+        <module>bom</module>
+        <module>child1</module>
+        <module>child2</module>
+    </modules>
+</project>

Resolves #241 (basic part without any semantic analysis _which_ dependency versions changed).

template.zip now contains a "quarkus-scenario" with some setup aspects of Quarkus.
@famod
famod merged commit 3f94d1a into gitflow-incremental-builder:master Sep 7, 2020
@famod
famod deleted the issue-241-bom-support branch September 7, 2020 20:39
@famod

famod commented Sep 7, 2020

Copy link
Copy Markdown
Member Author

Thanks @mickroll & @gastaldi for your feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support BOM incremental changes

3 participants