|
if (extension.annotate) { |
|
writer << "import javax.annotation.Generated;\n\n" |
|
} |
As you may know, javax moved to jakarta. And such, for projects which have moved the dependency fail to compile because of this. The workaround is disabling to write of this piece of code (and the one below for the annotation), but this is not really ideal.
So please consider adding either an option for this (like an if (extension.javax) or something) or releasing a new version of the plugin with the package set to jakarta instead.
https://mvnrepository.com/artifact/javax.annotation/javax.annotation-api
https://mvnrepository.com/artifact/jakarta.annotation/jakarta.annotation-api
gversion-plugin/src/main/groovy/com/peterabeles/GVersion.groovy
Lines 273 to 275 in 48fcd0d
As you may know, javax moved to jakarta. And such, for projects which have moved the dependency fail to compile because of this. The workaround is disabling to write of this piece of code (and the one below for the annotation), but this is not really ideal.
So please consider adding either an option for this (like an
if (extension.javax)or something) or releasing a new version of the plugin with the package set to jakarta instead.https://mvnrepository.com/artifact/javax.annotation/javax.annotation-api
https://mvnrepository.com/artifact/jakarta.annotation/jakarta.annotation-api