| 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.15.0" |
| |
| maven_jar( |
| name = "jna", |
| artifact = "net.java.dev.jna:jna:" + JNA_VERS, |
| sha1 = "01ee1d80ff44f08280188f7c0e740d57207841ac", |
| ) |
| |
| maven_jar( |
| name = "jna-platform", |
| artifact = "net.java.dev.jna:jna-platform:" + JNA_VERS, |
| sha1 = "86b502cad57d45da172b5e3231c537b042e296ef", |
| ) |
| |
| 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.1.0", |
| sha1 = "1169a246913fe3823782af7943e7a103634867c5", |
| ) |
| |
| 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.17.0", |
| sha1 = "b17d2136f0460dcc0d2016ceefca8723bdf4ee70", |
| ) |
| |
| maven_jar( |
| name = "commons-io", |
| artifact = "commons-io:commons-io:2.17.0", |
| sha1 = "ddcc8433eb019fb48fe25207c0278143f3e1d7e2", |
| ) |
| |
| 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.14.1", |
| sha1 = "a89b0ce9ee5d92646522caeb27fb92c02a0b4c55", |
| ) |
| |
| maven_jar( |
| name = "assertj-core", |
| artifact = "org.assertj:assertj-core:3.26.3", |
| sha1 = "0d26263eb7524252d98e602fc6942996a3195e29", |
| ) |
| |
| BYTE_BUDDY_VERSION = "1.15.3" |
| |
| maven_jar( |
| name = "bytebuddy", |
| artifact = "net.bytebuddy:byte-buddy:" + BYTE_BUDDY_VERSION, |
| sha1 = "01b3069696cd9ed55d90b9114ffe3429035ff924", |
| ) |
| |
| maven_jar( |
| name = "bytebuddy-agent", |
| artifact = "net.bytebuddy:byte-buddy-agent:" + BYTE_BUDDY_VERSION, |
| sha1 = "e619d89ed41a6cedc23bee3549cec8c4ffdaee7b", |
| ) |
| |
| 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.13" |
| |
| maven_jar( |
| name = "jetty-servlet", |
| artifact = "org.eclipse.jetty.ee10:jetty-ee10-servlet:" + JETTY_VER, |
| sha1 = "e1cb00629ed0d4091caad7e4ee542878d60978d2", |
| src_sha1 = "15c9b6eced1fc9fb55450b43410acdef03903282", |
| ) |
| |
| maven_jar( |
| name = "jetty-security", |
| artifact = "org.eclipse.jetty:jetty-security:" + JETTY_VER, |
| sha1 = "c71b4755750198d3639cd26b55c32c87be568cce", |
| src_sha1 = "6a181480c9c2075abfb75d03abf0ff00a7545e58", |
| ) |
| |
| maven_jar( |
| name = "jetty-server", |
| artifact = "org.eclipse.jetty:jetty-server:" + JETTY_VER, |
| sha1 = "f7e2f539dacb3426fef1bcd66ca7a5c13d5f6409", |
| src_sha1 = "be6cb0c0c3a7abc9b835fe1c918af3fef9cb3689", |
| ) |
| |
| maven_jar( |
| name = "jetty-session", |
| artifact = "org.eclipse.jetty:jetty-session:" + JETTY_VER, |
| sha1 = "dd79f830f79bd827ba8d7c9e3fd35e03315afbd8", |
| src_sha1 = "970836d155c4b5e6d273ad32d40a384ceda2f2e8", |
| ) |
| |
| maven_jar( |
| name = "jetty-http", |
| artifact = "org.eclipse.jetty:jetty-http:" + JETTY_VER, |
| sha1 = "4cc207e1006a747796cb99072087d58182193ad8", |
| src_sha1 = "3e047c2f4842cf6a9e3b68db36a1a667aefa6a1d", |
| ) |
| |
| maven_jar( |
| name = "jetty-io", |
| artifact = "org.eclipse.jetty:jetty-io:" + JETTY_VER, |
| sha1 = "a8377234b4a3967ee9ecc65ee25ef93dcffeb0f8", |
| src_sha1 = "ad84fef838609a88d50a0ced859972a8f4dc0f19", |
| ) |
| |
| maven_jar( |
| name = "jetty-util", |
| artifact = "org.eclipse.jetty:jetty-util:" + JETTY_VER, |
| sha1 = "ad63179e37e1037b901feaa9d7423c27f70fcdfe", |
| src_sha1 = "93354fb32122f3be1ea23c6c44c00bbf58ac506a", |
| ) |
| |
| maven_jar( |
| name = "jetty-util-ajax", |
| artifact = "org.eclipse.jetty:jetty-util-ajax:" + JETTY_VER, |
| sha1 = "d5caa4713c49aa2984505849b7bcab0c57b1d4c6", |
| src_sha1 = "dd4630c8b243725a6715caf268a8230ff9b6083a", |
| ) |
| |
| 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", |
| ) |