Skip to content

Commit

Permalink
Don't run kapt on Java 17+ until KT-47583 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
famod committed Jul 18, 2021
1 parent 37b2919 commit 0164706
Showing 1 changed file with 32 additions and 12 deletions.
44 changes: 32 additions & 12 deletions extensions/panache/hibernate-orm-panache-kotlin/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,7 @@
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<executions>
<execution>
<id>kapt</id>
<phase>generate-sources</phase>
<goals>
<goal>kapt</goal>
</goals>
<configuration>
<annotationProcessors>
<annotationProcessor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</annotationProcessor>
</annotationProcessors>
</configuration>
</execution>
<!-- see profile futher down for kapt execution -->
<execution>
<id>compile</id>
<phase>compile</phase>
Expand Down Expand Up @@ -184,4 +173,35 @@
</plugin>
</plugins>
</build>
<profiles>
<!-- Execute kapt, but not on Java 17 or higher due to https://youtrack.jetbrains.com/issue/KT-47583 -->
<profile>
<id>kapt-not-on-jdk17</id>
<activation>
<jdk>(,17)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<executions>
<execution>
<id>kapt</id>
<phase>generate-sources</phase>
<goals>
<goal>kapt</goal>
</goals>
<configuration>
<annotationProcessors>
<annotationProcessor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</annotationProcessor>
</annotationProcessors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 0164706

Please sign in to comment.