joelittlejohn / jsonschema2pojo

Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, etc
http://www.jsonschema2pojo.org
Apache License 2.0
6.22k stars 1.66k forks source link

versie 1.2.1: setting <useJakartaValidation>true</useJakartaValidation> stil generates import javax.annotation.Generated; #1586

Open aevers1967 opened 7 months ago

aevers1967 commented 7 months ago

We are upgrading to jakarta and the tool does not generate. import jakarta.annotation.Generated;

maven configuration

org.jsonschema2pojo jsonschema2pojo-maven-plugin 1.2.1 json true true true true true true true ${basedir}/src/main/resources/bcm json generate "
unkish commented 7 months ago

useJakartaValidation is not supposed to generate import jakarta.annotation.Generated; since as the configuration name implies it is related to validation and neither javax.annotation.Generated nor jakarta.annotation.Generated are part of validation-api, both belong to annotation-api.

This has been discussed in #1461