diff --git a/gwt/BUILD b/gwt/BUILD index 88f622d4469..5f47cec0b67 100644 --- a/gwt/BUILD +++ b/gwt/BUILD @@ -37,6 +37,7 @@ java_library( name = "manual_deps", tags = [ "maven_coordinates=com.google.dagger:dagger:%s:jar:sources" % POM_VERSION, + "maven_coordinates=jakarta.inject:jakarta.inject-api:2.0.1:jar:sources", "maven_coordinates=javax.inject:javax.inject:1:jar:sources", ], visibility = ["//visibility:private"], diff --git a/gwt/dagger/Dagger.gwt.xml b/gwt/dagger/Dagger.gwt.xml index ad106fd22a2..4bdae7cca7c 100644 --- a/gwt/dagger/Dagger.gwt.xml +++ b/gwt/dagger/Dagger.gwt.xml @@ -18,3 +18,8 @@ + + + + + diff --git a/gwt/jakarta/inject/Inject.gwt.xml b/gwt/jakarta/inject/Inject.gwt.xml new file mode 100644 index 00000000000..cf56dfb584f --- /dev/null +++ b/gwt/jakarta/inject/Inject.gwt.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/util/validate-artifacts.sh b/util/validate-artifacts.sh index d26c6b7d4b8..5d7f4fbe923 100755 --- a/util/validate-artifacts.sh +++ b/util/validate-artifacts.sh @@ -18,7 +18,7 @@ _validate_jar() { # Validate the package prefixes of the files in the jar. if [[ $artifact_id == "dagger-gwt" ]]; then python $(dirname $0)/validate-jar-entry-prefixes.py \ - $artifact_jar "dagger/,META-INF/,javax/inject/" + $artifact_jar "dagger/,META-INF/,javax/inject/,jakarta/inject/" elif [[ $artifact_id == "hilt-android" ]]; then python $(dirname $0)/validate-jar-entry-prefixes.py \ $artifact_jar "dagger/,META-INF/,hilt_aggregated_deps/"