Skip to content

Commit bea926c

Browse files
Chang-EricDagger Team
authored andcommitted
Add GWT dependencies for Jakarta Inject
Issue #4391 RELNOTES=Add GWT dependencies for Jakarta Inject PiperOrigin-RevId: 665040399
1 parent c69189e commit bea926c

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

gwt/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ java_library(
3737
name = "manual_deps",
3838
tags = [
3939
"maven_coordinates=com.google.dagger:dagger:%s:jar:sources" % POM_VERSION,
40+
"maven_coordinates=jakarta.inject:jakarta.inject-api:2.0.1:jar:sources",
4041
"maven_coordinates=javax.inject:javax.inject:1:jar:sources",
4142
],
4243
visibility = ["//visibility:private"],

gwt/dagger/Dagger.gwt.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@
1818

1919
<source path=""/>
2020
</module>
21+
<module>
22+
<inherits name="jakarta.inject.Inject" />
23+
24+
<source path=""/>
25+
</module>

gwt/jakarta/inject/Inject.gwt.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!--
2+
Copyright (C) 2024 The Dagger Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
<module>
17+
<source path=""/>
18+
</module>

util/validate-artifacts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ _validate_jar() {
1818
# Validate the package prefixes of the files in the jar.
1919
if [[ $artifact_id == "dagger-gwt" ]]; then
2020
python $(dirname $0)/validate-jar-entry-prefixes.py \
21-
$artifact_jar "dagger/,META-INF/,javax/inject/"
21+
$artifact_jar "dagger/,META-INF/,javax/inject/,jakarta/inject/"
2222
elif [[ $artifact_id == "hilt-android" ]]; then
2323
python $(dirname $0)/validate-jar-entry-prefixes.py \
2424
$artifact_jar "dagger/,META-INF/,hilt_aggregated_deps/"

0 commit comments

Comments
 (0)