Skip to content

Commit

Permalink
Handle empty archivesBaseName
Browse files Browse the repository at this point in the history
  • Loading branch information
rnc committed May 24, 2024
1 parent 6dadbf2 commit 82b46c2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@

import static java.util.Comparator.comparingInt;
import static org.apache.commons.lang.StringUtils.isEmpty;
import static org.apache.commons.lang.StringUtils.isNotEmpty;
import static org.gradle.api.Project.DEFAULT_VERSION;
import static org.jboss.gm.common.io.ManipulationIO.writeManipulationModel;
import static org.jboss.gm.common.utils.FileUtils.append;
Expand Down Expand Up @@ -197,7 +198,7 @@ public void perform() {
Project rootProject = project.getRootProject();

final String archivesBaseName = ProjectUtils.getArchivesBaseName(project);
if (archivesBaseName != null) {
if (isNotEmpty(archivesBaseName)) {
logger.warn("Found archivesBaseName override ; resetting project name '{}' to '{}' ", project.getName(),
archivesBaseName);
projectName = archivesBaseName;
Expand Down

0 comments on commit 82b46c2

Please sign in to comment.