diff --git a/spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/repackage/ProjectLibraries.java b/spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/repackage/ProjectLibraries.java index 90e673df63..1a3e28e1b1 100644 --- a/spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/repackage/ProjectLibraries.java +++ b/spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/repackage/ProjectLibraries.java @@ -209,7 +209,8 @@ class ProjectLibraries implements Libraries { private final ResolvedArtifact artifact; public ResolvedArtifactLibrary(ResolvedArtifact artifact, LibraryScope scope) { - super(null, artifact.getFile(), scope); + super(artifact.getModuleVersion().getId().getGroup(), artifact.getFile(), + scope); this.artifact = artifact; }