Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn beans from info extension into ApplicationScoped #40178

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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());
}
Expand All @@ -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());
}
Expand All @@ -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());
}
Expand Down