Skip to content

Commit 0667546

Browse files
committed
Create repositories.bzl
This will help if we need to add dependencies or declare toolchains in the future because users already have everything in their WORKSPACE
1 parent 981f06c commit 0667546

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

WORKSPACE

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
# Empty WORKSPACE file.
1+
workspace(name = "rules_java")
2+
3+
load("//java:repositories.bzl", "rules_java_dependencies", "rules_java_toolchains")
4+
rules_java_dependencies()
5+
rules_java_toolchains()

java/repositories.bzl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2019 The Bazel Authors. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
def rules_java_dependencies():
16+
# Nothing to do here (yet).
17+
pass
18+
19+
def rules_java_toolchains():
20+
# Nothing to do here (yet).
21+
pass

0 commit comments

Comments
 (0)