-
Notifications
You must be signed in to change notification settings - Fork 49
/
WORKSPACE
62 lines (50 loc) · 1.97 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
# Copyright (c) 2017-2021, salesforce.com, inc.
# All rights reserved.
# Licensed under the BSD 3-Clause license.
# For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
#
workspace(name = "rules_spring")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
#
# RULE_JVM_EXTERNAL
#
# This section is only used for building the examples. This is not a required
# dependency of rules_spring itself
#
RULES_JVM_EXTERNAL_TAG = "3.3"
RULES_JVM_EXTERNAL_SHA = "d85951a92c0908c80bd8551002d66cb23c3434409c814179c0ff026b53544dab"
http_archive(
name = "rules_jvm_external",
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
sha256 = RULES_JVM_EXTERNAL_SHA,
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG,
)
load("//:repositories.bzl", "rules_spring_example_deps")
rules_spring_example_deps()
load("@maven//:defs.bzl", "pinned_maven_install")
pinned_maven_install()
load("@spring_boot_starter_jetty//:defs.bzl", pinned_spring_boot_starter_jetty_install = "pinned_maven_install")
pinned_spring_boot_starter_jetty_install()
#
# CAPTIVE PYTHON
#
# Install a specific version of python to be used by the Bazel build with the invocation below.
# Before this will work, you need to follow the instructions in //tools/python_interpreter.
#register_toolchains(
# "//tools/python_interpreter:captive_python_toolchain",
#)
#
# STARDOC
#
# Enable only when generating the doc, then disable again before releasing. We don't want to require
# users of the rule to configure stardoc in their workspace. You need to uncomment the stardoc generation in
# //springboot/BUILD as well.
#git_repository(
# name = "io_bazel_stardoc",
# remote = "https://github.com/bazelbuild/stardoc.git",
# tag = "0.4.0",
#)
#load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories")
#stardoc_repositories()