DBZ-3449 Moving QA releated plug-ins to separate profile, so to avoid loading them at all

This commit is contained in:
Gunnar Morling 2021-04-26 12:56:34 +02:00 committed by Jiri Pechanec
parent 98ce954332
commit dc02b896cd
12 changed files with 251 additions and 162 deletions

View File

@ -112,8 +112,9 @@ You can skip the integration tests and docker-builds with the following command:
You can skip all non-essential plug-ins (tests, integration tests, CheckStyle, formatter, API compatibility check, etc.) using the "quick" build profile: You can skip all non-essential plug-ins (tests, integration tests, CheckStyle, formatter, API compatibility check, etc.) using the "quick" build profile:
$ mvn clean verify -Pquick $ mvn clean verify -Dquick
This provides the fastes way for solely producing the output artifacts, without running any of the QA related Maven plug-ins.
This comes in handy for producing connector JARs and/or archives as quickly as possible, e.g. for manual testing in Kafka Connect. This comes in handy for producing connector JARs and/or archives as quickly as possible, e.g. for manual testing in Kafka Connect.
### Running tests of the Postgres connector using the wal2json or pgoutput logical decoding plug-ins ### Running tests of the Postgres connector using the wal2json or pgoutput logical decoding plug-ins

View File

@ -282,6 +282,12 @@
</profile> </profile>
<profile> <profile>
<id>quick</id> <id>quick</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>quick</name>
</property>
</activation>
<properties> <properties>
<skipITs>true</skipITs> <skipITs>true</skipITs>
<docker.skip>true</docker.skip> <docker.skip>true</docker.skip>

View File

@ -590,6 +590,12 @@
</profile> </profile>
<profile> <profile>
<id>quick</id> <id>quick</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>quick</name>
</property>
</activation>
<properties> <properties>
<skipITs>true</skipITs> <skipITs>true</skipITs>
<docker.skip>true</docker.skip> <docker.skip>true</docker.skip>

View File

@ -233,6 +233,12 @@
</profile> </profile>
<profile> <profile>
<id>quick</id> <id>quick</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>quick</name>
</property>
</activation>
<properties> <properties>
<skipITs>true</skipITs> <skipITs>true</skipITs>
<docker.skip>true</docker.skip> <docker.skip>true</docker.skip>

View File

@ -243,23 +243,6 @@
</systemPropertyVariables> </systemPropertyVariables>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
<configuration>
<analysisConfiguration combine.children="append">
<revapi.java>
<filter>
<packages>
<include>
<item>io.debezium.connector.postgresql.spi</item>
</include>
</packages>
</filter>
</revapi.java>
</analysisConfiguration>
</configuration>
</plugin>
</plugins> </plugins>
<resources> <resources>
<!-- Apply the properties set in the POM to the resource files --> <!-- Apply the properties set in the POM to the resource files -->
@ -326,12 +309,46 @@
</plugins> </plugins>
</build> </build>
</profile> </profile>
<profile>
<id>qa</id>
<activation>
<property>
<name>!quick</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
<configuration>
<analysisConfiguration combine.children="append">
<revapi.java>
<filter>
<packages>
<include>
<item>io.debezium.connector.postgresql.spi</item>
</include>
</packages>
</filter>
</revapi.java>
</analysisConfiguration>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile> <profile>
<id>quick</id> <id>quick</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>quick</name>
</property>
</activation>
<properties> <properties>
<skipITs>true</skipITs> <skipITs>true</skipITs>
<docker.skip>true</docker.skip> <docker.skip>true</docker.skip>
<revapi.skip>true</revapi.skip>
</properties> </properties>
</profile> </profile>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -256,6 +256,12 @@
</profile> </profile>
<profile> <profile>
<id>quick</id> <id>quick</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>quick</name>
</property>
</activation>
<properties> <properties>
<skipITs>true</skipITs> <skipITs>true</skipITs>
<docker.skip>true</docker.skip> <docker.skip>true</docker.skip>

View File

@ -74,6 +74,18 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
</plugins>
</build>
<profiles>
<profile>
<id>qa</id>
<activation>
<property>
<name>!quick</name>
</property>
</activation>
<build>
<plugins>
<plugin> <plugin>
<!-- https://github.com/antlr/antlr4test-maven-plugin --> <!-- https://github.com/antlr/antlr4test-maven-plugin -->
<groupId>com.khubla.antlr</groupId> <groupId>com.khubla.antlr</groupId>
@ -116,12 +128,6 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<profiles>
<profile>
<id>quick</id>
<properties>
<antlr.tests.enabled>false</antlr.tests.enabled>
</properties>
</profile> </profile>
<profile> <profile>
<id>skip-tests</id> <id>skip-tests</id>

View File

@ -171,33 +171,6 @@
</plugins> </plugins>
</pluginManagement> </pluginManagement>
<plugins> <plugins>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>${format.formatter.goal}</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.revelc.code</groupId>
<artifactId>impsort-maven-plugin</artifactId>
<configuration>
<removeUnused>true</removeUnused>
</configuration>
<executions>
<execution>
<id>sort-imports</id>
<goals>
<goal>${format.imports.goal}</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
@ -269,6 +242,60 @@
<useSystemClassLoader>${useSystemClassLoader}</useSystemClassLoader> <useSystemClassLoader>${useSystemClassLoader}</useSystemClassLoader>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<!-- Serves as support for configuring Revapi -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>parse-version</id>
<goals>
<!-- This defines the ${parsedVersion.*} properties used in the Revapi config. -->
<goal>parse-version</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>qa</id>
<activation>
<property>
<name>!quick</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>${format.formatter.goal}</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.revelc.code</groupId>
<artifactId>impsort-maven-plugin</artifactId>
<configuration>
<removeUnused>true</removeUnused>
</configuration>
<executions>
<execution>
<id>sort-imports</id>
<goals>
<goal>${format.imports.goal}</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId> <artifactId>maven-checkstyle-plugin</artifactId>
@ -303,21 +330,6 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<!-- Serves as support for configuring Revapi -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>parse-version</id>
<goals>
<!-- This defines the ${parsedVersion.*} properties used in the Revapi config. -->
<goal>parse-version</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.revapi</groupId> <groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId> <artifactId>revapi-maven-plugin</artifactId>
@ -355,7 +367,7 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<profiles> </profile>
<!-- <!--
################################################################### ###################################################################
Enable remotely debugging on the command line Enable remotely debugging on the command line

View File

@ -362,6 +362,12 @@
</profile> </profile>
<profile> <profile>
<id>quick</id> <id>quick</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>quick</name>
</property>
</activation>
<properties> <properties>
<skipITs>true</skipITs> <skipITs>true</skipITs>
</properties> </properties>

View File

@ -144,6 +144,12 @@
<profiles> <profiles>
<profile> <profile>
<id>quick</id> <id>quick</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>quick</name>
</property>
</activation>
<properties> <properties>
<skipITs>true</skipITs> <skipITs>true</skipITs>
<docker.skip>true</docker.skip> <docker.skip>true</docker.skip>

View File

@ -138,6 +138,12 @@
<profiles> <profiles>
<profile> <profile>
<id>quick</id> <id>quick</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>quick</name>
</property>
</activation>
<properties> <properties>
<skipITs>true</skipITs> <skipITs>true</skipITs>
<docker.skip>true</docker.skip> <docker.skip>true</docker.skip>

17
pom.xml
View File

@ -296,13 +296,24 @@
</plugins> </plugins>
</build> </build>
<profiles> <profiles>
<profile>
<id>qa</id>
<activation>
<property>
<name>!quick</name>
</property>
</activation>
</profile>
<profile> <profile>
<id>quick</id> <id>quick</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>quick</name>
</property>
</activation>
<properties> <properties>
<skipTests>true</skipTests> <skipTests>true</skipTests>
<checkstyle.skip>true</checkstyle.skip>
<format.skip>true</format.skip>
<docker.skip>true</docker.skip>
</properties> </properties>
</profile> </profile>
<profile> <profile>