@@ -738,6 +738,35 @@ dev_maven.install(
738738 ],
739739)
740740
741+ # These repos are used for testing the artifact hash functions. See
742+ # `ArtifactsHashTest.java`
743+ dev_maven .install (
744+ name = "artifacts_hash_no_deps" ,
745+ artifacts = [
746+ # Has no dependencies
747+ "org.hamcrest:hamcrest-core:3.0" ,
748+ ],
749+ fail_if_repin_required = True ,
750+ lock_file = "//tests/custom_maven_install:artifacts_hash_no_deps_install.json" ,
751+ )
752+ dev_maven .install (
753+ name = "artifacts_hash_with_deps" ,
754+ artifacts = [
755+ "com.google.code.gson:gson:2.11.0" ,
756+ ],
757+ fail_if_repin_required = True ,
758+ lock_file = "//tests/custom_maven_install:artifacts_hash_with_deps_install.json" ,
759+ )
760+ dev_maven .install (
761+ name = "artifacts_hash_with_deps_from_maven" ,
762+ artifacts = [
763+ "com.google.guava:guava:33.3.1-jre" ,
764+ ],
765+ fail_if_repin_required = True ,
766+ lock_file = "//tests/custom_maven_install:artifacts_hash_with_deps_from_maven_install.json" ,
767+ resolver = "maven" ,
768+ )
769+
741770# Where there are file locks, the pinned and unpinned repos are listed
742771# next to each other. Where compat repositories are created, they are
743772# listed next to the repo that created them. The list is otherwise kept
@@ -746,6 +775,9 @@ dev_maven.install(
746775# want it to
747776use_repo (
748777 dev_maven ,
778+ "artifacts_hash_no_deps" ,
779+ "artifacts_hash_with_deps" ,
780+ "artifacts_hash_with_deps_from_maven" ,
749781 "duplicate_version_warning" ,
750782 "duplicate_version_warning_same_version" ,
751783 "exclusion_testing" ,
@@ -837,6 +869,7 @@ use_repo(
837869
838870http_file (
839871 name = "com.google.ar.sceneform_rendering" ,
872+ dev_dependency = True ,
840873 downloaded_file_path = "rendering-1.10.0.aar" ,
841874 sha256 = "d2f6cd1d54eee0d5557518d1edcf77a3ba37494ae94f9bb862e570ee426a3431" ,
842875 urls = [
@@ -846,6 +879,7 @@ http_file(
846879
847880http_file (
848881 name = "hamcrest_core_for_test" ,
882+ dev_dependency = True ,
849883 downloaded_file_path = "hamcrest-core-1.3.jar" ,
850884 sha256 = "66fdef91e9739348df7a096aa384a5685f4e875584cce89386a7a47251c4d8e9" ,
851885 urls = [
@@ -855,6 +889,7 @@ http_file(
855889
856890http_file (
857891 name = "hamcrest_core_srcs_for_test" ,
892+ dev_dependency = True ,
858893 downloaded_file_path = "hamcrest-core-1.3-sources.jar" ,
859894 sha256 = "e223d2d8fbafd66057a8848cc94222d63c3cedd652cc48eddc0ab5c39c0f84df" ,
860895 urls = [
@@ -864,6 +899,7 @@ http_file(
864899
865900http_file (
866901 name = "gson_for_test" ,
902+ dev_dependency = True ,
867903 downloaded_file_path = "gson-2.9.0.jar" ,
868904 sha256 = "c96d60551331a196dac54b745aa642cd078ef89b6f267146b705f2c2cbef052d" ,
869905 urls = [
@@ -873,6 +909,7 @@ http_file(
873909
874910http_file (
875911 name = "junit_platform_commons_for_test" ,
912+ dev_dependency = True ,
876913 downloaded_file_path = "junit-platform-commons-1.8.2.jar" ,
877914 sha256 = "d2e015fca7130e79af2f4608dc54415e4b10b592d77333decb4b1a274c185050" ,
878915 urls = [
@@ -883,6 +920,7 @@ http_file(
883920# https://github.com/bazelbuild/rules_jvm_external/issues/865
884921http_file (
885922 name = "google_api_services_compute_javadoc_for_test" ,
923+ dev_dependency = True ,
886924 downloaded_file_path = "google-api-services-compute-v1-rev235-1.25.0-javadoc.jar" ,
887925 sha256 = "b03be5ee8effba3bfbaae53891a9c01d70e2e3bd82ad8889d78e641b22bd76c2" ,
888926 urls = [
@@ -892,6 +930,7 @@ http_file(
892930
893931http_file (
894932 name = "lombok_for_test" ,
933+ dev_dependency = True ,
895934 downloaded_file_path = "lombok-1.18.22.jar" ,
896935 sha256 = "ecef1581411d7a82cc04281667ee0bac5d7c0a5aae74cfc38430396c91c31831" ,
897936 urls = [
0 commit comments