/** * Get the copyright years for the project * * @param projectConfig Project configuration * @return Copyright years */ private static String getCopyrightYearTemplate(ProjectConfig projectConfig) { String year = "\\${year}"; Integer inceptionYear = projectConfig.getInceptionYear(); if (inceptionYear != null && inceptionYear != LocalDate.now().getYear()) { year = inceptionYear.toString() + "-" + year; } return year; } }
/** * Get the copyright years for the project * * @param projectConfig Project configuration * @return Copyright years */ private static String getCopyrightYearTemplate(ProjectConfig projectConfig) { String year = "\\${year}"; Integer inceptionYear = projectConfig.getInceptionYear(); if (inceptionYear != null && inceptionYear != LocalDate.now().getYear()) { year = inceptionYear.toString() + "-" + year; } return year; } }
if (projectConfig.getInceptionYear() == null) { LOGGER.warn("Please configure projectConfig.inceptionYear");
if (projectConfig.getInceptionYear() == null) { LOGGER.warn("Please configure projectConfig.inceptionYear");
Element pom = xml.asElement(); Nodes.setChildValue(pom, "inceptionYear", this.projectConfig.getInceptionYear()); Nodes.setChildValue(pom, "url", this.projectConfig.getWebsiteUrl());
Element pom = xml.asElement(); Nodes.setChildValue(pom, "inceptionYear", this.projectConfig.getInceptionYear()); Nodes.setChildValue(pom, "url", this.projectConfig.getWebsiteUrl());