| workspace(name = "jgit") |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| load("//tools:bazlets.bzl", "load_bazlets") |
| |
| load_bazlets(commit = "f9c119e45d9a241bee720b7fbd6c7fdbc952da5f") |
| |
| load( |
| "@com_googlesource_gerrit_bazlets//tools:maven_jar.bzl", |
| "maven_jar", |
| ) |
| |
| http_archive( |
| name = "rules_java", |
| sha256 = "4da3761f6855ad916568e2bfe86213ba6d2637f56b8360538a7fb6125abf6518", |
| urls = [ |
| "https://github.com/bazelbuild/rules_java/releases/download/7.5.0/rules_java-7.5.0.tar.gz", |
| ], |
| ) |
| |
| load("@rules_java//java:repositories.bzl", "rules_java_dependencies", "rules_java_toolchains") |
| |
| rules_java_dependencies() |
| |
| http_archive( |
| name = "ubuntu2204_jdk17", |
| sha256 = "8ea82b81c9707e535ff93ef5349d11e55b2a23c62bcc3b0faaec052144aed87d", |
| strip_prefix = "rbe_autoconfig-5.1.0", |
| urls = [ |
| "https://gerrit-bazel.storage.googleapis.com/rbe_autoconfig/v5.1.0.tar.gz", |
| "https://github.com/davido/rbe_autoconfig/releases/download/v5.1.0/v5.1.0.tar.gz", |
| ], |
| ) |
| |
| register_toolchains("//tools:error_prone_warnings_toolchain_java17_definition") |
| |
| register_toolchains("//tools:error_prone_warnings_toolchain_java21_definition") |
| |
| # Order of registering toolchains matters. rules_java toolchains take precedence |
| # over the custom toolchains, so the default jdk21 toolchain gets picked |
| # (one without custom package_config). That's why the `rules_java_toolchains()` |
| # must be called after the `register_toolchain()` invocation. |
| rules_java_toolchains() |
| |
| JMH_VERS = "1.37" |
| |
| maven_jar( |
| name = "jmh-core", |
| artifact = "org.openjdk.jmh:jmh-core:" + JMH_VERS, |
| attach_source = False, |
| sha1 = "896f27e49105b35ea1964319c83d12082e7a79ef", |
| ) |
| |
| maven_jar( |
| name = "jmh-annotations", |
| artifact = "org.openjdk.jmh:jmh-generator-annprocess:" + JMH_VERS, |
| attach_source = False, |
| sha1 = "da93888682df163144edf9b13d2b78e54166063a", |
| ) |
| |
| maven_jar( |
| name = "jopt", |
| artifact = "net.sf.jopt-simple:jopt-simple:5.0.4", |
| attach_source = False, |
| sha1 = "4fdac2fbe92dfad86aa6e9301736f6b4342a3f5c", |
| ) |
| |
| maven_jar( |
| name = "math3", |
| artifact = "org.apache.commons:commons-math3:3.6.1", |
| attach_source = False, |
| sha1 = "e4ba98f1d4b3c80ec46392f25e094a6a2e58fcbf", |
| ) |
| |
| maven_jar( |
| name = "eddsa", |
| artifact = "net.i2p.crypto:eddsa:0.3.0", |
| sha1 = "1901c8d4d8bffb7d79027686cfb91e704217c3e1", |
| ) |
| |
| maven_jar( |
| name = "jsch", |
| artifact = "com.jcraft:jsch:0.1.55", |
| sha1 = "bbd40e5aa7aa3cfad5db34965456cee738a42a50", |
| ) |
| |
| maven_jar( |
| name = "jzlib", |
| artifact = "com.jcraft:jzlib:1.1.3", |
| sha1 = "c01428efa717624f7aabf4df319939dda9646b2d", |
| ) |
| |
| maven_jar( |
| name = "javaewah", |
| artifact = "com.googlecode.javaewah:JavaEWAH:1.2.3", |
| sha1 = "13a27c856e0c8808cee9a64032c58eee11c3adc9", |
| ) |
| |
| maven_jar( |
| name = "httpclient", |
| artifact = "org.apache.httpcomponents:httpclient:4.5.14", |
| sha1 = "1194890e6f56ec29177673f2f12d0b8e627dec98", |
| ) |
| |
| maven_jar( |
| name = "httpcore", |
| artifact = "org.apache.httpcomponents:httpcore:4.4.16", |
| sha1 = "51cf043c87253c9f58b539c9f7e44c8894223850", |
| ) |
| |
| SSHD_VERS = "2.13.2" |
| |
| maven_jar( |
| name = "sshd-osgi", |
| artifact = "org.apache.sshd:sshd-osgi:" + SSHD_VERS, |
| sha1 = "34914a5bef9ba3d04971fdec1273b47df835b038", |
| ) |
| |
| maven_jar( |
| name = "sshd-sftp", |
| artifact = "org.apache.sshd:sshd-sftp:" + SSHD_VERS, |
| sha1 = "334f42d5bbc8afb7f1149a37d10f8718cf59cc06", |
| ) |
| |
| JNA_VERS = "5.14.0" |
| |
| maven_jar( |
| name = "jna", |
| artifact = "net.java.dev.jna:jna:" + JNA_VERS, |
| sha1 = "67bf3eaea4f0718cb376a181a629e5f88fa1c9dd", |
| ) |
| |
| maven_jar( |
| name = "jna-platform", |
| artifact = "net.java.dev.jna:jna-platform:" + JNA_VERS, |
| sha1 = "28934d48aed814f11e4c584da55c49fa7032b31b", |
| ) |
| |
| maven_jar( |
| name = "commons-codec", |
| artifact = "commons-codec:commons-codec:1.17.1", |
| sha1 = "973638b7149d333563584137ebf13a691bb60579", |
| ) |
| |
| maven_jar( |
| name = "commons-logging", |
| artifact = "commons-logging:commons-logging:1.3.4", |
| sha1 = "b9fc14968d63a8b8a8a2c1885fe3e90564239708", |
| ) |
| |
| maven_jar( |
| name = "log-api", |
| artifact = "org.slf4j:slf4j-api:1.7.36", |
| sha1 = "6c62681a2f655b49963a5983b8b0950a6120ae14", |
| ) |
| |
| maven_jar( |
| name = "slf4j-simple", |
| artifact = "org.slf4j:slf4j-simple:1.7.36", |
| sha1 = "a41f9cfe6faafb2eb83a1c7dd2d0dfd844e2a936", |
| ) |
| |
| maven_jar( |
| name = "servlet-api", |
| artifact = "jakarta.servlet:jakarta.servlet-api:6.0.0", |
| sha1 = "abecc699286e65035ebba9844c03931357a6a963", |
| ) |
| |
| maven_jar( |
| name = "commons-compress", |
| artifact = "org.apache.commons:commons-compress:1.27.1", |
| sha1 = "a19151084758e2fbb6b41eddaa88e7b8ff4e6599", |
| ) |
| |
| maven_jar( |
| name = "commons-lang3", |
| artifact = "org.apache.commons:commons-lang3:3.16.0", |
| sha1 = "3eb54effe40946dfb06dc5cd6c7ce4116cd51ea4", |
| ) |
| |
| maven_jar( |
| name = "commons-io", |
| artifact = "commons-io:commons-io:2.16.1", |
| sha1 = "377d592e740dc77124e0901291dbfaa6810a200e", |
| ) |
| |
| maven_jar( |
| name = "tukaani-xz", |
| artifact = "org.tukaani:xz:1.10", |
| sha1 = "1be8166f89e035a56c6bfc67dbc423996fe577e2", |
| ) |
| |
| maven_jar( |
| name = "args4j", |
| artifact = "args4j:args4j:2.37", |
| sha1 = "244f60c057d72a785227c0562d3560f42a7ea54b", |
| ) |
| |
| maven_jar( |
| name = "junit", |
| artifact = "junit:junit:4.13.2", |
| sha1 = "8ac9e16d933b6fb43bc7f576336b8f4d7eb5ba12", |
| ) |
| |
| maven_jar( |
| name = "hamcrest", |
| artifact = "org.hamcrest:hamcrest:2.2", |
| sha1 = "1820c0968dba3a11a1b30669bb1f01978a91dedc", |
| ) |
| |
| maven_jar( |
| name = "mockito", |
| artifact = "org.mockito:mockito-core:5.12.0", |
| sha1 = "22f8bbaf478e6789164787fa411a3b5ed986e110", |
| ) |
| |
| maven_jar( |
| name = "assertj-core", |
| artifact = "org.assertj:assertj-core:3.26.3", |
| sha1 = "0d26263eb7524252d98e602fc6942996a3195e29", |
| ) |
| |
| BYTE_BUDDY_VERSION = "1.15.0" |
| |
| maven_jar( |
| name = "bytebuddy", |
| artifact = "net.bytebuddy:byte-buddy:" + BYTE_BUDDY_VERSION, |
| sha1 = "a5b1159b91c5334015de0f22ab4b1188cd42bbff", |
| ) |
| |
| maven_jar( |
| name = "bytebuddy-agent", |
| artifact = "net.bytebuddy:byte-buddy-agent:" + BYTE_BUDDY_VERSION, |
| sha1 = "e32740c43acebaac9d55b86399ecf6a5df3c17fb", |
| ) |
| |
| maven_jar( |
| name = "objenesis", |
| artifact = "org.objenesis:objenesis:3.4", |
| sha1 = "675cbe121a68019235d27f6c34b4f0ac30e07418", |
| ) |
| |
| maven_jar( |
| name = "gson", |
| artifact = "com.google.code.gson:gson:2.11.0", |
| sha1 = "527175ca6d81050b53bdd4c457a6d6e017626b0e", |
| ) |
| |
| JETTY_VER = "12.0.12" |
| |
| maven_jar( |
| name = "jetty-servlet", |
| artifact = "org.eclipse.jetty.ee10:jetty-ee10-servlet:" + JETTY_VER, |
| sha1 = "12f25f260a8f9fb519b6d3058260564277e618cd", |
| src_sha1 = "16a22f6ed585c6dcab07d111de290301373db1c7", |
| ) |
| |
| maven_jar( |
| name = "jetty-security", |
| artifact = "org.eclipse.jetty:jetty-security:" + JETTY_VER, |
| sha1 = "962d2c5748f750aae667399481915bd02a9746e0", |
| src_sha1 = "e953d0e19e6e420f5e7c1f62424c4bbe0d385d15", |
| ) |
| |
| maven_jar( |
| name = "jetty-server", |
| artifact = "org.eclipse.jetty:jetty-server:" + JETTY_VER, |
| sha1 = "77591ab10113d7de7eb8a01bb4d9d23b234aebd1", |
| src_sha1 = "952873398a59bc5a964d9d2d130227af807559e9", |
| ) |
| |
| maven_jar( |
| name = "jetty-session", |
| artifact = "org.eclipse.jetty:jetty-session:" + JETTY_VER, |
| sha1 = "fceae460fb4677a6cec80d3b70b1fc3ae2a114a7", |
| src_sha1 = "ba95d5e17a3d7f09ca908d4c0773e913f3612425", |
| ) |
| |
| maven_jar( |
| name = "jetty-http", |
| artifact = "org.eclipse.jetty:jetty-http:" + JETTY_VER, |
| sha1 = "549fe58ae50b9c061d09803fb0d2659a93ce0ecd", |
| src_sha1 = "c7afad980b9eade12b473172a9d069d96d016677", |
| ) |
| |
| maven_jar( |
| name = "jetty-io", |
| artifact = "org.eclipse.jetty:jetty-io:" + JETTY_VER, |
| sha1 = "4e2cd5c23e8ba550238f35c361c22ffb1e7bf00c", |
| src_sha1 = "42397797c496a51520900a529ba7e1b315aba768", |
| ) |
| |
| maven_jar( |
| name = "jetty-util", |
| artifact = "org.eclipse.jetty:jetty-util:" + JETTY_VER, |
| sha1 = "f7b1e4f835c38d12668b426d327118e767d2f1d4", |
| src_sha1 = "0fdb95a123cc50f6adf4154edc5316cabca05f58", |
| ) |
| |
| maven_jar( |
| name = "jetty-util-ajax", |
| artifact = "org.eclipse.jetty:jetty-util-ajax:" + JETTY_VER, |
| sha1 = "330e692032c82c305cd52c6a8e9bfba0f1da2555", |
| src_sha1 = "d6b9274b3ef0419a6ba869c828fd0c59c570cd9d", |
| ) |
| |
| BOUNCYCASTLE_VER = "1.78.1" |
| |
| maven_jar( |
| name = "bcpg", |
| artifact = "org.bouncycastle:bcpg-jdk18on:" + BOUNCYCASTLE_VER, |
| sha1 = "6c8dbcec20355278ec54840e735f63db2479150e", |
| src_sha1 = "2ddef60d84dd8c14ebce4c13100f0bc55fed6922", |
| ) |
| |
| maven_jar( |
| name = "bcprov", |
| artifact = "org.bouncycastle:bcprov-jdk18on:" + BOUNCYCASTLE_VER, |
| sha1 = "39e9e45359e20998eb79c1828751f94a818d25f8", |
| src_sha1 = "70f58ec93da543dda6a21614b768cb2e386fd512", |
| ) |
| |
| maven_jar( |
| name = "bcutil", |
| artifact = "org.bouncycastle:bcutil-jdk18on:" + BOUNCYCASTLE_VER, |
| sha1 = "5353ca39fe2f148dab9ca1d637a43d0750456254", |
| src_sha1 = "8d2e0747f5d806f39a602f7f91610444d88c4e2c", |
| ) |
| |
| maven_jar( |
| name = "bcpkix", |
| artifact = "org.bouncycastle:bcpkix-jdk18on:" + BOUNCYCASTLE_VER, |
| sha1 = "17b3541f736df97465f87d9f5b5dfa4991b37bb3", |
| src_sha1 = "3aeaf221772ad0c9c04593688cb86c6eb74d48b9", |
| ) |