Skip to content

Commit

Permalink
Added the name of the application in build section:
Browse files Browse the repository at this point in the history
The application name does not always match the artifactId value.

(cherry picked from commit 67bda9c)
  • Loading branch information
amusarra committed Dec 6, 2024
1 parent 7fffa4c commit 85387f9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.annotations.ExecutionTime;
import io.quarkus.deployment.annotations.Record;
import io.quarkus.deployment.builditem.ApplicationInfoBuildItem;
import io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem;
import io.quarkus.deployment.pkg.builditem.OutputTargetBuildItem;
import io.quarkus.info.BuildInfo;
Expand Down Expand Up @@ -209,10 +210,13 @@ void buildInfo(CurateOutcomeBuildItem curateOutcomeBuildItem,
InfoBuildTimeConfig config,
BuildProducer<InfoBuildTimeValuesBuildItem> valuesProducer,
BuildProducer<SyntheticBeanBuildItem> beanProducer,
ApplicationInfoBuildItem infoApplication,
InfoRecorder recorder) {
ApplicationModel applicationModel = curateOutcomeBuildItem.getApplicationModel();
ResolvedDependency appArtifact = applicationModel.getAppArtifact();
Map<String, Object> buildData = new LinkedHashMap<>();
String name = infoApplication.getName();
buildData.put("name", name);
String group = appArtifact.getGroupId();
buildData.put("group", group);
String artifact = appArtifact.getArtifactId();
Expand Down

0 comments on commit 85387f9

Please sign in to comment.