Replace javax.inject with jakarta.inject (#2372)

Note that Dagger currently doesn't work with the Jakarta namespace and
we have to cap the jakarta inject package version below 2.0 so that it
sill provides classes in the old namespace.
This commit is contained in:
Lai Jiang
2024-03-15 03:26:53 +00:00
committed by GitHub
parent 5f9c7de516
commit de372c4d47
20 changed files with 39 additions and 24 deletions
+7 -3
View File
@@ -98,6 +98,12 @@ ext {
// TODO: Remove the cap after the pins are removed.
'com.google.api-client:google-api-client:[1.31.3,2)!!',
// Dagger doesn't support the Jakarta namespace yet. Pre-2.0 Jakarta
// Inject still use the old javax namespace.
// TODO: Remove the cap when https://github.com/google/dagger/issues/2058
// is released.
'jakarta.inject:jakarta.inject-api:[1,2.0.0)!!',
// DYNAMIC VERSIONS START HERE.
@@ -152,6 +158,7 @@ ext {
'com.google.http-client:google-http-client-appengine:[1.39.0,)',
'com.google.http-client:google-http-client-jackson2:[1.39.0,)',
'com.google.http-client:google-http-client:[1.39.0,)',
// TODO: Remove after the old console is removed (dependency of soy).
'com.google.inject:guice:[5.0.1,)',
'com.google.monitoring-client:contrib:[1.0.7,)',
'com.google.monitoring-client:metrics:[1.0.7,)',
@@ -178,9 +185,6 @@ ext {
'io.github.classgraph:classgraph:[4.8.102,)',
'io.github.java-diff-utils:java-diff-utils:[4.9,)',
'io.netty:netty-tcnative-boringssl-static:[2.0.36.Final,)',
'javax.annotation:javax.annotation-api:[1.3.2,)',
'javax.annotation:jsr250-api:[1.0,)',
'javax.inject:javax.inject:[1,)',
// Upgrade to jakarta when we remove App Engine dependency
'javax.mail:mail:[1.4,)',
'javax.persistence:javax.persistence-api:[2.2,)',