File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -409,4 +409,41 @@ tools.jackson.core.*;version=${project.version}
409409 <scope >test</scope >
410410 </dependency >
411411 </dependencies >
412+
413+ <profiles >
414+ <!-- 26-Jun-2026, tatu: [core#1625] (regression of [core#1561]) Javadoc generation
415+ is broken when built with JDK 17 (the produced `-javadoc.jar` is missing the
416+ index/search/overview files, so javadoc.io cannot render it). JDK 21+ is needed
417+ to produce a complete Javadoc jar. Releases run via `release:perform` with
418+ `-Prelease` (see maven-release-plugin config in parent), and the `release`
419+ profile is where the Javadoc jar gets attached, so guard exactly that build
420+ and fail fast if it is not run on JDK 21 or higher. Normal development on JDK 17
421+ is unaffected.
422+ -->
423+ <profile >
424+ <id >release</id >
425+ <build >
426+ <plugins >
427+ <plugin >
428+ <artifactId >maven-enforcer-plugin</artifactId >
429+ <executions >
430+ <execution >
431+ <id >enforce-jdk21-for-release</id >
432+ <phase >validate</phase >
433+ <goals ><goal >enforce</goal ></goals >
434+ <configuration >
435+ <rules >
436+ <requireJavaVersion >
437+ <version >[21,)</version >
438+ <message >[ERROR] Releases must be built with JDK 21 or higher so that the Javadoc jar is complete (see jackson-core#1561 / #1625).</message >
439+ </requireJavaVersion >
440+ </rules >
441+ </configuration >
442+ </execution >
443+ </executions >
444+ </plugin >
445+ </plugins >
446+ </build >
447+ </profile >
448+ </profiles >
412449</project >
You can’t perform that action at this time.
0 commit comments