Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit d7aa910
Author: Jan Stastny <[email protected]>
Date:   Tue Apr 6 09:18:13 2021 +0200

    add kogito-quarkus-bom in integration-tests-springboot

commit 9d511dc
Author: Jan Stastny <[email protected]>
Date:   Thu Apr 1 19:02:49 2021 +0200

    disable snapshots in jenkinsfile

commit 4062428
Author: Jan Stastny <[email protected]>
Date:   Thu Apr 1 19:01:10 2021 +0200

    add missing explicit test dependencies

commit d052ee5
Author: Jan Stastny <[email protected]>
Date:   Thu Apr 1 19:00:24 2021 +0200

    Fix failures when no user settings file available

commit 34b4e7b
Author: Jan Stastny <[email protected]>
Date:   Wed Mar 31 19:24:57 2021 +0200

    KOGITO-4847 Fix local builds for integration tests
  • Loading branch information
evacchi committed Apr 7, 2021
1 parent eba8af5 commit 4c5125c
Show file tree
Hide file tree
Showing 25 changed files with 233 additions and 39 deletions.
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ void checkoutOptaplannerRepo() {
MavenCommand getMavenCommand(String directory, boolean addQuarkusVersion=true, boolean canNative = false) {
mvnCmd = new MavenCommand(this, ['-fae'])
.withSettingsXmlId('kogito_release_settings')
.withSnapshotsDisabledInSettings()
// add timestamp to Maven logs
.withOptions(['-Dorg.slf4j.simpleLogger.showDateTime=true', '-Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS'])
.inDirectory(directory)
Expand Down
20 changes: 17 additions & 3 deletions addons/cloudevents/cloudevents-spring-boot-addon-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,23 @@
<artifactId>kogito-maven-plugin</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-springboot-starter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-cloudevents-spring-boot-addon</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -33,9 +50,6 @@
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<streamLogs>true</streamLogs>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<useLocalRepository>true</useLocalRepository>
<postBuildHookScript>verify</postBuildHookScript> <!-- no extension required -->
</configuration>
<executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@
<excludes>
<exclude>**/Native*IT.java</exclude>
</excludes>
<systemProperties>
<systemPropertyVariables combine.children="append">
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
</systemProperties>
</systemPropertyVariables>
</configuration>
<executions>
<execution>
Expand Down
2 changes: 1 addition & 1 deletion addons/persistence/infinispan-quarkus-health-addon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<goal>verify</goal>
</goals>
<configuration>
<systemPropertyVariables>
<systemPropertyVariables combine.children="append">
<container.image.infinispan>${container.image.infinispan}</container.image.infinispan>
</systemPropertyVariables>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<includes>
<include>org/kie/kogito/task/management/test/*</include>
</includes>
<systemPropertyVariables>
<systemPropertyVariables combine.children="append">
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<container.image.infinispan>${container.image.infinispan}</container.image.infinispan>
</systemPropertyVariables>
Expand Down
12 changes: 12 additions & 0 deletions archetypes/kogito-quarkus-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
22 changes: 22 additions & 0 deletions archetypes/kogito-quarkus-dm-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,28 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-rules</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-decisions</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-predictions</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
6 changes: 6 additions & 0 deletions archetypes/kogito-springboot-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-springboot-starter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
6 changes: 6 additions & 0 deletions archetypes/kogito-springboot-dm-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-springboot-starter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
40 changes: 39 additions & 1 deletion archetypes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,26 @@
<maven.compiler.release>11</maven.compiler.release>
</properties>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<configuration>
<localRepositoryPath>${session.request.localRepositoryPath.path}</localRepositoryPath>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>!productized</name>
</property>
</activation>
<modules>
<module>kogito-springboot-archetype</module>
Expand All @@ -38,6 +53,29 @@
<module>kogito-quarkus-dm-archetype</module>
</modules>
</profile>
<profile>
<!--
This profile serves at optionally passing settingsFile property to archetype::integration-test goal.
Reason is that the ${session.request.userSettingsFile.path} property defaults to ~/.m2/settings.xml even
if that file does not actually exist. Tests were in such case failing.
-->
<id>set-settings-when-provided</id>
<activation>
<file><exists>${session.request.userSettingsFile.path}</exists></file>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<configuration>
<settingsFile>${session.request.userSettingsFile.path}</settingsFile>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>

</project>
23 changes: 20 additions & 3 deletions integration-tests/integration-tests-kogito-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,26 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>process-management-addon</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -28,9 +48,6 @@
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<streamLogs>true</streamLogs>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<useLocalRepository>true</useLocalRepository>
<postBuildHookScript>verify</postBuildHookScript> <!-- no extension required -->
<properties>
<version.io.quarkus>${version.io.quarkus}</version.io.quarkus>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>@version.surefire.plugin@</version>
<configuration>
<systemProperties>
<systemPropertyVariables>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
<!-- quarkus plugin and being run by invoker, need to pass explicitly -->
<maven.repo.local>${session.request.localRepositoryPath.path}</maven.repo.local>
<maven.settings>${session.request.userSettingsFile.path}</maven.settings>
</systemProperties>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/integration-tests-quarkus-decisions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@
<goal>verify</goal>
</goals>
<configuration>
<systemProperties>
<systemPropertyVariables combine.children="append">
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
</systemProperties>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<systemPropertyVariables combine.children="append">
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<container.image.infinispan>${container.image.infinispan}</container.image.infinispan>
</systemPropertyVariables>
Expand Down Expand Up @@ -160,9 +160,9 @@
<goal>verify</goal>
</goals>
<configuration>
<systemProperties>
<systemPropertyVariables combine.children="append">
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
</systemProperties>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
Expand Down
8 changes: 4 additions & 4 deletions integration-tests/integration-tests-quarkus-processes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
<includes>
<include>org/kie/kogito/integrationtests/quarkus/*</include>
</includes>
<systemPropertyVariables>
<systemPropertyVariables combine.children="append">
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<container.image.infinispan>${container.image.infinispan}</container.image.infinispan>
<container.image.kafka>${container.image.kafka}</container.image.kafka>
Expand Down Expand Up @@ -206,7 +206,7 @@
<include>org/kie/kogito/integrationtests/quarkus/*</include>
<include>org/kie/kogito/integrationtests/quarkus/infinispan/*</include>
</includes>
<systemPropertyVariables>
<systemPropertyVariables combine.children="append">
<enable.resource.infinispan>true</enable.resource.infinispan>
</systemPropertyVariables>
</configuration>
Expand Down Expand Up @@ -242,9 +242,9 @@
<goal>verify</goal>
</goals>
<configuration>
<systemProperties>
<systemPropertyVariables combine.children="append">
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
</systemProperties>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
Expand Down
6 changes: 3 additions & 3 deletions integration-tests/integration-tests-quarkus-rules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<systemPropertyVariables combine.children="append">
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<container.image.infinispan>${container.image.infinispan}</container.image.infinispan>
</systemPropertyVariables>
Expand Down Expand Up @@ -164,9 +164,9 @@
<goal>verify</goal>
</goals>
<configuration>
<systemProperties>
<systemPropertyVariables combine.children="append">
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
</systemProperties>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
Expand Down
38 changes: 34 additions & 4 deletions integration-tests/integration-tests-springboot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,40 @@
<scope>test</scope>
</dependency>


<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-cloudevents-spring-boot-addon</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-test-utils</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>process-management-springboot-addon</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>task-management-springboot-addon</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-spring-boot-starter-remote</artifactId>
Expand Down Expand Up @@ -92,9 +125,6 @@
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<streamLogs>true</streamLogs>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<useLocalRepository>true</useLocalRepository>
<postBuildHookScript>verify</postBuildHookScript> <!-- no extension required -->
<properties>
<container.image.infinispan>${container.image.infinispan}</container.image.infinispan>
Expand Down
Loading

0 comments on commit 4c5125c

Please sign in to comment.