feat(ant): Support additional properties in release auto-config. Relates to
@@ -50,11 +50,12 @@ import static org.jreleaser.util.FileUtils.resolveOutputDirectory;
* @since 0.3.0
*/
public class JReleaserAutoConfigReleaseTask extends Task {
- protected final List<String> selectPlatforms = new ArrayList<>();
- protected final List<String> globs = new ArrayList<>();
+ private final List<String> authors = new ArrayList<>();
+ private final List<String> selectPlatforms = new ArrayList<>();
+ private final List<String> globs = new ArrayList<>();
private final List<String> updateSections = new ArrayList<>();
- protected Path outputDir;
- protected boolean selectCurrentPlatform;
+ private Path outputDir;
+ private boolean selectCurrentPlatform;
private JReleaserLogger logger;
private Path actualBasedir;
private File basedir;
@@ -66,6 +67,10 @@ public class JReleaserAutoConfigReleaseTask extends Task {
private String projectSnapshotPattern;
private String projectSnapshotLabel;
private boolean projectSnapshotFullChangelog;
+ private String projectCopyright;
+ private String projectDescription;
+ private String projectInceptionYear;
+ private String projectStereotype;
private String tagName;
private String previousTagName;
private String releaseName;
@@ -127,6 +132,28 @@ public class JReleaserAutoConfigReleaseTask extends Task {
this.projectSnapshotFullChangelog = projectSnapshotFullChangelog;
}
+ public void setProjectCopyright(String projectCopyright) {
+ this.projectCopyright = projectCopyright;
+ }
+
+ public void setProjectDescription(String projectDescription) {
+ this.projectDescription = projectDescription;
+ }
+
+ public void setProjectInceptionYear(String projectInceptionYear) {
+ this.projectInceptionYear = projectInceptionYear;
+ }
+
+ public void setProjectStereotype(String projectStereotype) {
+ this.projectStereotype = projectStereotype;
+ }
+
+ public void setAuthors(List<String> authors) {
+ if (null != authors) {
+ this.authors.addAll(authors);
+ }
+ }
+
public void setTagName(String tagName) {
this.tagName = tagName;
}
@@ -248,6 +275,11 @@ public class JReleaserAutoConfigReleaseTask extends Task {
.projectSnapshotPattern(projectSnapshotPattern)
.projectSnapshotLabel(projectSnapshotLabel)
.projectSnapshotFullChangelog(projectSnapshotFullChangelog)
+ .projectCopyright(projectCopyright)
+ .projectDescription(projectDescription)
+ .projectInceptionYear(projectInceptionYear)
+ .projectStereotype(projectStereotype)
+ .authors(authors)
.tagName(tagName)
.previousTagName(previousTagName)
.releaseName(releaseName)
