-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since we are building the renderer from source and using rules_jvm_external to pull in Maven deps, the WORKSPACE setup for a user of Stardoc is now significantly more complicated; the user will now need to do the multi-step rules_jvm_external initialization and maven_install. For convenience, let's wrap maven_install in a macro - and finally split out the legacy-test-only maven deps into their own .json file and repo. Update stardoc_repositories to pull in all the new deps we need to build Java code. Update maintainer guide.
- Loading branch information
Showing
10 changed files
with
924 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Copyright 2023 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. | ||
|
||
"""WORKSPACE dependency definitions for Stardoc.""" | ||
|
||
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") | ||
load("@rules_jvm_external//:defs.bzl", "maven_install") | ||
|
||
# Maven artifacts required by Stardoc | ||
STARDOC_MAVEN_ARTIFACTS = [ | ||
"com.beust:jcommander:1.82", | ||
"com.google.escapevelocity:escapevelocity:1.1", | ||
"com.google.guava:guava:31.1-jre", | ||
"com.google.truth:truth:1.1.3", | ||
"junit:junit:4.13.2", | ||
] | ||
|
||
def stardoc_external_deps(): | ||
""" | ||
Sets up Stardoc's workspace dependencies. | ||
Requires stardoc_repositories() to be called first. | ||
Normally should be followed up by | ||
```bzl | ||
load("@stardoc_maven//:defs.bzl", stardoc_pinned_maven_install = "pinned_maven_install") | ||
stardoc_pinned_maven_install() | ||
``` | ||
""" | ||
protobuf_deps() | ||
|
||
maven_install( | ||
name = "stardoc_maven", | ||
artifacts = STARDOC_MAVEN_ARTIFACTS, | ||
fail_if_repin_required = True, | ||
maven_install_json = "@io_bazel_stardoc//:maven_install.json", | ||
repositories = [ | ||
"https://repo1.maven.org/maven2", | ||
], | ||
strict_visibility = True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.