Skip to content

Commit 7fa0b2c

Browse files
Closure Teamcopybara-github
Closure Team
authored andcommitted
Add load() statements for the builtin Bazel java rules
Loads are being added in preparation for moving the rules out of Bazel and into `rules_java`. PiperOrigin-RevId: 621521768
1 parent eadc84e commit 7fa0b2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bazel/oss_java_library.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
1514
"""See oss_jar_set"""
1615

1716
load("@google_bazel_common//tools/javadoc:javadoc.bzl", "javadoc_library")
17+
load("@rules_java//java:defs.bzl", "java_library")
1818

1919
def oss_java_library(
2020
name,
@@ -34,7 +34,7 @@ def oss_java_library(
3434
<name>.javadoc: (javadoc_library)
3535
<name>.sources: (sources JAR)
3636
"""
37-
native.java_library(
37+
java_library(
3838
name = name,
3939
**_copy_and_merge(shared_attrs, java_attrs)
4040
)

0 commit comments

Comments
 (0)