Skip to content

Commit f4f1745

Browse files
committed
Bump guice version to 6.0.0
Guice 6.x release is adding support for jakarta.inject, see this issue for more details: [1]. Guice release 7.0.0 will remove support for javax.inject annotation and only support jakarta.inject. Also add new dependency to jakarta.inject library. [1] google/guice#1383 Release-Notes: Update guice version to 6.0.0 Change-Id: I0eb5320289bde532ac57bdd376802b37c1cee47f
1 parent 4732870 commit f4f1745

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

Documentation/licenses.txt

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Apache2.0
6363
* guice:guice-assistedinject
6464
* guice:guice-library
6565
* guice:guice-servlet
66+
* guice:jakarta-inject
6667
* guice:javax_inject
6768
* httpcomponents:httpclient
6869
* httpcomponents:httpcore

lib/guice/BUILD

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ java_library(
66
visibility = ["//visibility:public"],
77
exports = [
88
":guice-library",
9+
":jakarta-inject",
910
":javax_inject",
1011
],
1112
)
@@ -40,6 +41,13 @@ java_library(
4041
exports = ["@aopalliance//jar"],
4142
)
4243

44+
java_library(
45+
name = "jakarta-inject",
46+
data = ["//lib:LICENSE-Apache2.0"],
47+
visibility = ["//visibility:public"],
48+
exports = ["@jakarta-inject-api//jar"],
49+
)
50+
4351
java_library(
4452
name = "javax_inject",
4553
data = ["//lib:LICENSE-Apache2.0"],

tools/deps.bzl

+6
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ def java_dependencies():
6868
sha1 = "3cd63d075497751784b2fa84be59432f4905bf7c",
6969
)
7070

71+
maven_jar(
72+
name = "jakarta-inject-api",
73+
artifact = "jakarta.inject:jakarta.inject-api:2.0.1",
74+
sha1 = "4c28afe1991a941d7702fe1362c365f0a8641d1e",
75+
)
76+
7177
# JGit's transitive dependencies
7278

7379
maven_jar(

tools/nongoogle.bzl

+4-4
Original file line numberDiff line numberDiff line change
@@ -177,24 +177,24 @@ def declare_nongoogle_deps():
177177
sha1 = GUAVA_TESTLIB_BIN_SHA1,
178178
)
179179

180-
GUICE_VERS = "5.1.0"
180+
GUICE_VERS = "6.0.0"
181181

182182
maven_jar(
183183
name = "guice-library",
184184
artifact = "com.google.inject:guice:" + GUICE_VERS,
185-
sha1 = "da25056c694c54ba16e78e4fc35f17fc60f0d1b4",
185+
sha1 = "9b422c69c4fa1ea95b2615444a94fede9b02fc40",
186186
)
187187

188188
maven_jar(
189189
name = "guice-assistedinject",
190190
artifact = "com.google.inject.extensions:guice-assistedinject:" + GUICE_VERS,
191-
sha1 = "58a8956f00d6939978d7da735f393d7af7db5c02",
191+
sha1 = "849d991e4adf998cb9877124fe74b063c88726cf",
192192
)
193193

194194
maven_jar(
195195
name = "guice-servlet",
196196
artifact = "com.google.inject.extensions:guice-servlet:" + GUICE_VERS,
197-
sha1 = "cb89ddec4246a469698a3461e69de1f245016c5d",
197+
sha1 = "1a505f5f1a269e01946790e863178a5055de4fa0",
198198
)
199199

200200
# Keep this version of Soy synchronized with the version used in Gitiles.

0 commit comments

Comments
 (0)