Skip to content

Commit

Permalink
Use processor as provided dep, disable tests on jdk >= 12
Browse files Browse the repository at this point in the history
  • Loading branch information
chris922 committed Mar 16, 2019
1 parent 75ddbf3 commit f05e97d
Showing 1 changed file with 35 additions and 15 deletions.
50 changes: 35 additions & 15 deletions mapstruct-quarkus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,31 +69,24 @@
<artifactId>rest-assured</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<annotationProcessorPaths>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.version}</version>
<executions>
<execution>
<id>quarkus-build</id>
<goals>
<goal>build</goal>
</goals>
Expand Down Expand Up @@ -157,5 +150,32 @@
</plugins>
</build>
</profile>

<!-- there is an issue with JDK12 and Quarkus, see https://github.com/quarkusio/quarkus/issues/1534 -->
<!-- so we will skip the quarkus plugin and tests for now in case jdk >= 12 -->
<profile>
<id>java12+</id>
<activation>
<jdk>[12,)</jdk>
</activation>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
<build>
<plugins>
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.version}</version>
<executions>
<execution>
<id>quarkus-build</id>
<phase>none</phase> <!-- invalid phase to disable this execution -->
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit f05e97d

Please sign in to comment.