[jOOQ/jOOQ#14180] MANIFEST.MF contains unnecessary javax.persistence

dependency
This commit is contained in:
Lukas Eder 2022-11-08 13:52:13 +01:00
parent e38aef0c37
commit cf7ae615dd
2 changed files with 5 additions and 2 deletions

View File

@ -3958,7 +3958,10 @@ final class Tools {
}
catch (Throwable e) {
try {
Class.forName("javax.persistence.Column");
// [#14180] Break the maven-bundle-plugin class analyser, to prevent
// adding a package import to MANIFEST.MF for this lookup
Class.forName(new String("javax.persistence.") + new String("Column"));
jpaNamespace = JPANamespace.JAVAX;
JooqLogger.getLogger(Tools.class, "isJPAAvailable", 1).info("javax.persistence.Column was found on the classpath instead of jakarta.persistence.Column. jOOQ 3.16 requires you to upgrade to Jakarta EE if you wish to use JPA annotations in your DefaultRecordMapper");
}

View File

@ -689,7 +689,7 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>4.2.1</version>
<version>5.1.8</version>
<!-- [#10150] Required to build on JDK 15 -->
<dependencies>