[gradle] Set copyright year if Kordamp's info.inceptionYear is present. Fixes
@@ -55,8 +55,11 @@ class KordampJReleaserAdapter {
jreleaser.project.license.set(license.name)
}
}
- if (jreleaser.project.extraProperties.present &&
- !jreleaser.project.extraProperties.get().containsKey('inceptionYear')) {
+ if (jreleaser.project.extraProperties.present) {
+ if (!jreleaser.project.extraProperties.get().containsKey('inceptionYear')) {
+ jreleaser.project.extraProperties.put('inceptionYear', config.info.inceptionYear)
+ }
+ } else {
jreleaser.project.extraProperties.put('inceptionYear', config.info.inceptionYear)
}
}
