guava
51,922
Stars
11,243
Forks
2,318
Watchers
769
Open Issues
Apache-2.0
许可证
Java
语言
2014-05-29
创建时间
2026-11-11
最近更新
项目能做什么
Google 官方推出的 Java 核心基础类库与扩展工具集合。
来源:基于仓库元数据
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Guava: Google Core Libraries for Java
[](https://github.com/google/guava/releases/latest)
[](https://github.com/google/guava/actions/workflows/ci.yml)
[](https://www.bestpractices.dev/projects/7197)
Guava is a set of core Java libraries from Google that includes new collection
types (such as multimap and multiset), immutable collections, a graph library,
and utilities for concurrency, I/O, hashing, primitives, strings, and more! It
is widely used on most Java projects within Google, and widely used by many
other companies as well.
Guava comes in two flavors:
* The JRE flavor requires JDK 1.8 or higher.
* If you need support for Android, use
[the Android flavor](https://github.com/google/guava/wiki/Android). You can
find the Android Guava source in the [`android` directory].
[`android` directory]: https://github.com/google/guava/tree/master/android
## Adding Guava to your build
Guava's Maven group ID is `com.google.guava`, and its artifact ID is `guava`.
Guava provides two different "flavors": one for use on a (Java 8+) JRE and one
for use on Android or by any library that wants to be compatible with Android.
These flavors are specified in the Maven version field as either `33.8.0-jre` or
`33.8.0-android`. For more about depending on Guava, see
[using Guava in your build].
To add a dependency on Guava using Maven, use the following:
```xml
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>33.8.0-jre</version>
<!-- or, for Android: -->
<version>33.8.0-android</version>
</dependency>
```
To add a dependency using Gradle:
```gradle
dependencies {
// Pick one:
// 1. Use Guava in your implementation only:
implementation("com.google.guava:guava:33.8.0-jre")
// 2. Use Guava types in your public API:
api("com.google.guava:guava:33.8.0-jre")
// 3. Android - Use Guava in your implementation only:
implementation("com.google.guava:guava:33.8.0-android")
// 4. Android - Use Guava types in your public API:
api("com.google.guava:guava:33.8.0-android")
}
```
For more information on when to use `api` and when to use `implementation`,
consult the
[Gradle documentation on API and implementation separation](https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_separation).
## Snapshots and Documentation
We no longer publish binary snapshot releases to Sonatype's Maven Central, only
versioned releases.
We continue to publish snapshot *documentation*
([API Javadoc][guava-snapshot-api-docs] and
[API Diffs][guava-snapshot-api-diffs]), and we encourage you to refer and link
to the snapshot Javadoc rather than to that of specific releases.
An easy way to get to the snapshot Javadoc is to open
[guava.dev/api](https://guava.de
阅读完整原文
项目深度分析 规则生成(AI 未配置)
综合评分 38.4 分。该项目在“个人可实施性”维度得 37 分,“付费可能性”维度得 20.0 分,差异化空间 40.0 分(评分依据见评分卡)。
面向细分需求的二次开发产品
| 产品构想 | 基于 guava 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。 |
| 目标用户 | 该细分场景用户 |
| 难度/周期 | 中 · 2~6 周 |
| 收费模式 | 买断制 / 订阅制 / 广告 |
| 竞争风险 | 细分需求规模需验证 |
| 依据 | AI 推测:基于项目主题标签的判断 |
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
相似项目数据正在完善中,暂不展示(避免误导)
项目优势与风险
| 技术成熟度 | 创建于 2014-05-29,近 30 天仍在推送,发布过 62 个 Release |
| 社区活跃 | Star 51,922 / Fork 11,243 / Issue 769(数据支持,可自行核实) |
| 许可证 | Apache-2.0 |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。