Merge pull request #10 from Yannic:add_repositories.bzl PiperOrigin-RevId: 260874946 Change-Id: Id579b85d543ed57110e5aa88df4fc3e3d50bc0d5
diff --git a/WORKSPACE b/WORKSPACE index 186cacc..c820ee6 100644 --- a/WORKSPACE +++ b/WORKSPACE
@@ -1 +1,5 @@ -# Empty WORKSPACE file. +workspace(name = "rules_java") + +load("@rules_java//java:repositories.bzl", "rules_java_dependencies", "rules_java_toolchains") +rules_java_dependencies() +rules_java_toolchains()
diff --git a/java/repositories.bzl b/java/repositories.bzl new file mode 100644 index 0000000..5829afc --- /dev/null +++ b/java/repositories.bzl
@@ -0,0 +1,27 @@ +# Copyright 2019 The Bazel Authors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +def rules_java_dependencies(): + """An utility method to load all dependencies of rules_java. + + It doesn't do anything at the moment. + """ + pass + +def rules_java_toolchains(): + """An utility method to load all Java toolchains. + + It doesn't do anything at the moment. + """ + pass