blob: 198558f17e89a587a696da570a99ece4c4831a18 [file]
# Module-file fragment for Java/Maven external dependencies.
#
# This file is included from the root MODULE.bazel via include().
# It contains the rules_jvm_external configuration for Gitiles.
#
# NOTE: MODULE/.MODULE.bazel files are evaluated in the bzlmod resolution phase
# and do not allow load() or function definitions. Keep this file self-contained.
COMMONMARK_VERSION = "0.24.0"
FLOGGER_VERSION = "0.8"
SLF4J_VERSION = "2.0.20"
JETTY_VERSION = "12.1.13"
OW2_ASM_VERSION = "9.10.1"
BYTE_BUDDY_VERSION = "1.18.14"
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
name = "external_deps",
artifacts = [
"ch.qos.reload4j:reload4j:1.2.26",
"com.google.code.findbugs:jsr305:3.0.1",
"com.google.code.gson:gson:2.14.0",
"com.google.common.html.types:types:1.0.8",
"com.google.errorprone:error_prone_annotations:2.46.0",
"com.google.flogger:flogger:" + FLOGGER_VERSION,
"com.google.flogger:flogger-log4j-backend:" + FLOGGER_VERSION,
"com.google.flogger:flogger-system-backend:" + FLOGGER_VERSION,
"com.google.flogger:google-extensions:" + FLOGGER_VERSION,
"com.google.guava:failureaccess:1.0.3",
"com.google.guava:guava:33.5.0-jre",
"com.google.protobuf:protobuf-java:4.36.2",
"com.google.template:soy:2024-01-30",
"com.google.truth:truth:1.4.4",
"com.googlecode.javaewah:JavaEWAH:1.2.3",
"com.ibm.icu:icu4j:78.2",
"commons-codec:commons-codec:1.20.0",
"commons-io:commons-io:2.22.0",
"io.github.java-diff-utils:java-diff-utils:4.16",
"javax.servlet:javax.servlet-api:4.0.1",
"junit:junit:4.13.2",
"net.bytebuddy:byte-buddy:" + BYTE_BUDDY_VERSION,
"net.bytebuddy:byte-buddy-agent:" + BYTE_BUDDY_VERSION,
"org.apache.commons:commons-compress:1.28.0",
"org.apache.commons:commons-lang3:3.20.0",
"org.apache.commons:commons-text:1.15.0",
"org.commonmark:commonmark:" + COMMONMARK_VERSION,
"org.commonmark:commonmark-ext-autolink:" + COMMONMARK_VERSION,
"org.commonmark:commonmark-ext-gfm-strikethrough:" + COMMONMARK_VERSION,
"org.commonmark:commonmark-ext-gfm-tables:" + COMMONMARK_VERSION,
"org.commonmark:commonmark-ext-yaml-front-matter:" + COMMONMARK_VERSION,
"org.eclipse.jetty:jetty-http:" + JETTY_VERSION,
"org.eclipse.jetty:jetty-io:" + JETTY_VERSION,
"org.eclipse.jetty:jetty-security:" + JETTY_VERSION,
"org.eclipse.jetty:jetty-server:" + JETTY_VERSION,
"org.eclipse.jetty:jetty-session:" + JETTY_VERSION,
"org.eclipse.jetty:jetty-util:" + JETTY_VERSION,
"org.eclipse.jetty.ee8:jetty-ee8-nested:" + JETTY_VERSION,
"org.eclipse.jetty.ee8:jetty-ee8-security:" + JETTY_VERSION,
"org.eclipse.jetty.ee8:jetty-ee8-servlet:" + JETTY_VERSION,
"org.hamcrest:hamcrest:3.0",
"org.mockito:mockito-core:5.24.0",
"org.nibor.autolink:autolink:0.11.0",
"org.objenesis:objenesis:3.4",
"org.ow2.asm:asm:" + OW2_ASM_VERSION,
"org.ow2.asm:asm-analysis:" + OW2_ASM_VERSION,
"org.ow2.asm:asm-commons:" + OW2_ASM_VERSION,
"org.ow2.asm:asm-tree:" + OW2_ASM_VERSION,
"org.ow2.asm:asm-util:" + OW2_ASM_VERSION,
"org.slf4j:slf4j-api:" + SLF4J_VERSION,
"org.slf4j:slf4j-simple:" + SLF4J_VERSION,
"org.tukaani:xz:1.12",
],
# CRITICAL: Must remain "error".
# This guarantees fail-fast behavior if multiple versions of the same
# artifact are introduced by contributing modules. Downgrading this to
# "warn" would allow version skew from JGit to silently leak into Gitiles.
duplicate_version_warning = "error",
fail_if_repin_required = True,
fail_on_missing_checksum = True,
fetch_sources = True,
known_contributing_modules = [
"gitiles",
"jgit",
],
lock_file = "//:external_deps.lock.json",
repositories = [
"https://repo1.maven.org/maven2",
],
strict_visibility = True,
version_conflict_policy = "pinned",
)
use_repo(maven, "external_deps")