TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Google Guice another abandonware from Google?

13 点作者 xendo超过 3 年前
It&#x27;s been already 4 months since JDK17 was released, but Guice (one of the most popular Java dependency injection frameworks) still didn&#x27;t release required compatibility changes [1]. There looks to be zero contact with maintainers at Google. In the meantime Spring was ready for JDK17 in July (3 months before JDK17 GA) [2]<p>For years I advocated to use Guice at my companies, as it&#x27;s considerably less bloated than Spring. Now I&#x27;m starting to get some heat on this as it&#x27;s clear that the support is just not there. Is this the right time to accept the defeat and start migrating back to Spring?<p>[1] https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;guice&#x2F;issues&#x2F;1536 [2] https:&#x2F;&#x2F;twitter.com&#x2F;snicoll&#x2F;status&#x2F;1420652097373188100

7 条评论

mark_march超过 3 年前
I work on the team that maintains Guice and we are working on a new release. And no, Guice is not abandonware since it is widely used inside Google. As part of this new release, we will be making some changes to the build setup so hopeful future releases will occur more frequently.
gedy超过 3 年前
Guice is pretty old now, like 12 years or so. That&#x27;s a pretty good run for a programming library, and wouldn&#x27;t put that in the same class of abandonment as other Google shutdowns.
评论 #29968622 未加载
science4sail超过 3 年前
Guice forms a core part of many of Google&#x27;s internal Java frameworks, so it&#x27;s unlikely to be deprecated anytime soon.<p>However, Google only upgraded to JDK11 in 2021, so there&#x27;s probably not much internal pressure yet to keep Guice up to date with JDK17.
kaixi超过 3 年前
Yes, I don&#x27;t know anyone who uses Guice, but lots of people who use Spring. The momentum was never there, nor it will be.
bzzzt超过 3 年前
If you&#x27;re just concerned about dependency injection there&#x27;s also the CDI standard way of doing things where there are multiple implementations to choose from.<p>If you&#x27;re concerned about bloat you could look into Quarkus. There&#x27;s a CDI implementation there combined with a really slick and fast runtime.
jsiepkes超过 3 年前
Hasn&#x27;t Google Guice been superseded by Google Dagger? [1] As far as I know Guice seemed to be in maintenance mode for quite a while now.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;dagger" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;dagger</a>
评论 #29968574 未加载
rurban超过 3 年前
Just fork it. But JDK17 support was fixed Sep 2021
评论 #29965234 未加载