Skip to content

Commit

Permalink
Merge pull request #40178 from geoand/#40152
Browse files Browse the repository at this point in the history
Turn beans from info extension into ApplicationScoped
gsmet authored Apr 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents d7708ef + a40c1c2 commit 4fe7808
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
import java.util.TimeZone;
import java.util.stream.Collectors;

import jakarta.inject.Singleton;
import jakarta.enterprise.context.ApplicationScoped;

import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.errors.GitAPIException;
@@ -122,7 +122,7 @@ void gitInfo(InfoBuildTimeConfig config,
valuesProducer.produce(new InfoBuildTimeValuesBuildItem("git", data));
beanProducer.produce(SyntheticBeanBuildItem.configure(GitInfo.class)
.supplier(recorder.gitInfoSupplier(branch, latestCommitId, latestCommitTime))
.scope(Singleton.class)
.scope(ApplicationScoped.class)
.setRuntimeInit()
.done());
} catch (Exception e) {
@@ -229,7 +229,7 @@ void buildInfo(CurateOutcomeBuildItem curateOutcomeBuildItem,
valuesProducer.produce(new InfoBuildTimeValuesBuildItem("build", data));
beanProducer.produce(SyntheticBeanBuildItem.configure(BuildInfo.class)
.supplier(recorder.buildInfoSupplier(group, artifact, version, time, quarkusVersion))
.scope(Singleton.class)
.scope(ApplicationScoped.class)
.setRuntimeInit()
.done());
}
@@ -251,7 +251,7 @@ void osInfo(InfoRecorder recorder,
valuesProducer.produce(new InfoBuildTimeContributorBuildItem(recorder.osInfoContributor()));
beanProducer.produce(SyntheticBeanBuildItem.configure(OsInfo.class)
.supplier(recorder.osInfoSupplier())
.scope(Singleton.class)
.scope(ApplicationScoped.class)
.setRuntimeInit()
.done());
}
@@ -264,7 +264,7 @@ void javaInfo(InfoRecorder recorder,
valuesProducer.produce(new InfoBuildTimeContributorBuildItem(recorder.javaInfoContributor()));
beanProducer.produce(SyntheticBeanBuildItem.configure(JavaInfo.class)
.supplier(recorder.javaInfoSupplier())
.scope(Singleton.class)
.scope(ApplicationScoped.class)
.setRuntimeInit()
.done());
}

0 comments on commit 4fe7808

Please sign in to comment.