Add truth's java8 extensions to the external bzl & maven build and update the version we use.

PiperOrigin-RevId: 525459640
This commit is contained in:
Sam Berlin
2023-04-19 08:49:08 -07:00
committed by Guice Team
parent 9678847695
commit c6b5cdfa94
4 changed files with 30 additions and 4 deletions
+7 -1
View File
@@ -60,7 +60,13 @@ maven_install(
maven.artifact(
"com.google.truth",
"truth",
"0.45",
"1.1.3",
testonly = True,
),
maven.artifact(
"com.google.truth.extensions",
"truth-java8-extension",
"1.1.3",
testonly = True,
),
maven.artifact(
+5
View File
@@ -68,6 +68,11 @@
<artifactId>truth</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.truth.extensions</groupId>
<artifactId>truth-java8-extension</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
+7 -1
View File
@@ -170,7 +170,13 @@ See the Apache License Version 2.0 for the specific language governing permissio
<dependency>
<groupId>com.google.truth</groupId>
<artifactId>truth</artifactId>
<version>0.45</version>
<version>1.1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.truth.extensions</groupId>
<artifactId>truth-java8-extension</artifactId>
<version>1.1.3</version>
<scope>test</scope>
</dependency>
<dependency>
+11 -2
View File
@@ -1,6 +1,15 @@
load("@rules_java//java:defs.bzl", "java_library")
package(default_visibility = ["//:src"])
alias(
java_library(
name = "truth",
actual = "@maven//:com_google_truth_truth",
testonly = True,
exports = [
"@maven//:com_google_truth_extensions_truth_java8_extension",
"@maven//:com_google_truth_truth",
],
runtime_deps = [
"//third_party/java/asm",
],
)