Skip to content

Commit

Permalink
Add diffutils to //third_party/java in bazel-common and make it a run…
Browse files Browse the repository at this point in the history
…time dependency of truth.

Also change truth8 target to just export the truth target; I'm unclear on why it's a separate target for the same thing though.

RELNOTES=n/a
PiperOrigin-RevId: 336145537
  • Loading branch information
cgdecker authored and Google Java Core Libraries committed Oct 8, 2020
1 parent e388861 commit 6db2b87
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
26 changes: 26 additions & 0 deletions third_party/java/diffutils/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (C) 2018 The Google Bazel Common Authors.
#
# 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.

# BUILD rules for https://github.com/google/truth

load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

java_library(
name = "diffutils",
exports = [
"@com_googlecode_java_diff_utils_diffutils//jar",
],
)
6 changes: 4 additions & 2 deletions third_party/java/truth/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ java_library(
"@com_google_truth_extensions_truth_java8_extension//jar",
"@com_google_truth_truth//jar",
],
runtime_deps = [
"//third_party/java/diffutils",
],
)

java_library(
name = "truth8",
testonly = 1,
exports = [
"@com_google_truth_extensions_truth_java8_extension//jar",
"@com_google_truth_truth//jar",
":truth",
],
)

0 comments on commit 6db2b87

Please sign in to comment.