|
| 1 | +module( |
| 2 | + name = "copybara", |
| 3 | + version = "0.0.0-20240326-6485af6", |
| 4 | + compatibility_level = 0, |
| 5 | +) |
| 6 | + |
| 7 | +bazel_dep(name = "bazel_skylib", version = "1.5.0") |
| 8 | +bazel_dep(name = "platforms", version = "0.0.8") |
| 9 | +bazel_dep(name = "rules_java", version = "7.5.0") |
| 10 | +bazel_dep(name = "rules_jvm_external", version = "6.0") |
| 11 | +bazel_dep(name = "rules_license", version = "0.0.8") |
| 12 | +bazel_dep(name = "rules_pkg", version = "0.10.1") |
| 13 | +bazel_dep(name = "rules_python", version = "0.31.0") |
| 14 | + |
| 15 | +non_module_deps = use_extension("//:repositories.bzl", "non_module_deps") |
| 16 | +use_repo(non_module_deps, "JCommander", "io_bazel") |
| 17 | + |
| 18 | +single_version_override( |
| 19 | + module_name = "rules_jvm_external", |
| 20 | + patch_strip = 1, |
| 21 | + # Copied from bazelbuild/bazel/third_party has to be kept in sync |
| 22 | + patches = ["//third_party/bazel:rules_jvm_external_6.0.patch"], |
| 23 | + version = "6.0", |
| 24 | +) |
| 25 | + |
| 26 | +bazel_dep(name = "buildozer", version = "6.4.0.2") |
| 27 | +bazel_dep(name = "buildifier_prebuilt", version = "6.4.0") |
| 28 | + |
| 29 | +maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") |
| 30 | +maven.install( |
| 31 | + name = "copybara_maven", |
| 32 | + artifacts = [ |
| 33 | + "com.github.stephenc.jcip:jcip-annotations:1.0-1", |
| 34 | + "com.google.auto.service:auto-service-annotations:1.1.1", |
| 35 | + "com.google.auto.service:auto-service:1.1.1", |
| 36 | + "com.google.auto.value:auto-value-annotations:1.10.2", |
| 37 | + "com.google.auto.value:auto-value:1.10.2", |
| 38 | + "com.google.auto:auto-common:1.2.2", |
| 39 | + "com.google.code.findbugs:jsr305:3.0.2", |
| 40 | + "com.google.code.gson:gson:2.10.1", |
| 41 | + "com.google.errorprone:error_prone_type_annotations:2.20.0", |
| 42 | + "com.google.flogger:flogger-system-backend:0.7.4", |
| 43 | + "com.google.flogger:flogger:0.7.4", |
| 44 | + "com.google.flogger:google-extensions:0.7.4", |
| 45 | + "com.google.guava:failureaccess:1.0.1", |
| 46 | + "com.google.guava:guava-testlib:33.0.0-jre", |
| 47 | + "com.google.guava:guava:33.0.0-jre", |
| 48 | + "com.google.http-client:google-http-client-gson:1.43.3", |
| 49 | + "com.google.http-client:google-http-client-test:1.43.3", |
| 50 | + "com.google.http-client:google-http-client:1.43.3", |
| 51 | + "com.google.jimfs:jimfs:1.2", |
| 52 | + "com.google.re2j:re2j:1.7", |
| 53 | + "com.google.testparameterinjector:test-parameter-injector:1.8", |
| 54 | + "com.google.truth.extensions:truth-java8-extension:1.3.0", |
| 55 | + "com.google.truth:truth:1.3.0", |
| 56 | + "com.googlecode.java-diff-utils:diffutils:1.3.0", |
| 57 | + "com.ryanharter.auto.value:auto-value-gson-extension:1.3.1", |
| 58 | + "com.ryanharter.auto.value:auto-value-gson-factory:1.3.1", |
| 59 | + "com.ryanharter.auto.value:auto-value-gson-runtime:1.3.1", |
| 60 | + "com.sun.mail:javax.mail:1.5.6", |
| 61 | + "commons-codec:commons-codec:1.16.0", |
| 62 | + "junit:junit:4.13.2", |
| 63 | + "net.bytebuddy:byte-buddy-agent:1.14.5", |
| 64 | + "net.bytebuddy:byte-buddy:1.14.5", |
| 65 | + "org.apache.commons:commons-compress:1.25.0", |
| 66 | + "org.apache.tomcat:tomcat-annotations-api:8.0.5", |
| 67 | + "org.apache.velocity:velocity:1.7", |
| 68 | + "org.jsoup:jsoup:1.16.1", |
| 69 | + "org.mockito:mockito-core:4.5.1", |
| 70 | + "org.objenesis:objenesis:1.0", |
| 71 | + "org.tomlj:tomlj:1.1.1", |
| 72 | + ], |
| 73 | + fail_if_repin_required = True, |
| 74 | + repositories = [ |
| 75 | + "https://repo1.maven.org/maven2", |
| 76 | + "https://maven.google.com", |
| 77 | + ], |
| 78 | +) |
| 79 | +use_repo(maven, "copybara_maven") |
| 80 | + |
| 81 | +# Copied from bazelbuild/bazel/MODULE.bazel, has to be kept in sync |
| 82 | +maven.install( |
| 83 | + name = "maven", |
| 84 | + artifacts = [ |
| 85 | + "com.beust:jcommander:1.82", |
| 86 | + "com.github.ben-manes.caffeine:caffeine:3.0.5", |
| 87 | + "com.github.kevinstern:software-and-algorithms:1.0", |
| 88 | + "com.github.stephenc.jcip:jcip-annotations:1.0-1", |
| 89 | + "com.google.api-client:google-api-client-gson:1.35.2", |
| 90 | + "com.google.api-client:google-api-client:1.35.2", |
| 91 | + "com.google.auth:google-auth-library-credentials:1.6.0", |
| 92 | + "com.google.auth:google-auth-library-oauth2-http:1.6.0", |
| 93 | + "com.google.auto.service:auto-service-annotations:1.0.1", |
| 94 | + "com.google.auto.service:auto-service:1.0", |
| 95 | + "com.google.auto.value:auto-value-annotations:1.9", |
| 96 | + "com.google.auto.value:auto-value:1.8.2", |
| 97 | + "com.google.auto:auto-common:1.2.1", |
| 98 | + "com.google.code.findbugs:jsr305:3.0.2", |
| 99 | + "com.google.code.gson:gson:2.9.0", |
| 100 | + "com.google.code.java-allocation-instrumenter:java-allocation-instrumenter:3.3.0", |
| 101 | + "com.google.errorprone:error_prone_annotation:2.22.0", |
| 102 | + "com.google.errorprone:error_prone_annotations:2.22.0", |
| 103 | + "com.google.errorprone:error_prone_check_api:2.22.0", |
| 104 | + "com.google.errorprone:error_prone_core:2.22.0", |
| 105 | + "com.google.errorprone:error_prone_type_annotations:2.22.0", |
| 106 | + "com.google.flogger:flogger-system-backend:0.5.1", |
| 107 | + "com.google.flogger:flogger:0.5.1", |
| 108 | + "com.google.flogger:google-extensions:0.5.1", |
| 109 | + "com.google.guava:failureaccess:1.0.1", |
| 110 | + "com.google.guava:guava:31.1-jre", |
| 111 | + "com.google.http-client:google-http-client-gson:1.42.0", |
| 112 | + "com.google.http-client:google-http-client:1.42.0", |
| 113 | + "com.google.j2objc:j2objc-annotations:1.3", |
| 114 | + "com.google.turbine:turbine:0.4.0", |
| 115 | + "com.ryanharter.auto.value:auto-value-gson-extension:1.3.1", |
| 116 | + "com.ryanharter.auto.value:auto-value-gson-runtime:1.3.1", |
| 117 | + "com.ryanharter.auto.value:auto-value-gson-factory:1.3.1", |
| 118 | + "com.squareup:javapoet:1.12.0", |
| 119 | + "commons-collections:commons-collections:3.2.2", |
| 120 | + "commons-lang:commons-lang:2.6", |
| 121 | + "io.github.java-diff-utils:java-diff-utils:4.12", |
| 122 | + "io.grpc:grpc-api:1.48.1", |
| 123 | + "io.grpc:grpc-auth:1.48.1", |
| 124 | + "io.grpc:grpc-context:1.48.1", |
| 125 | + "io.grpc:grpc-core:1.48.1", |
| 126 | + "io.grpc:grpc-netty:1.48.1", |
| 127 | + "io.grpc:grpc-protobuf-lite:1.48.1", |
| 128 | + "io.grpc:grpc-protobuf:1.48.1", |
| 129 | + "io.grpc:grpc-stub:1.48.1", |
| 130 | + "io.netty:netty-buffer:4.1.93.Final", |
| 131 | + "io.netty:netty-codec-http2:4.1.93.Final", |
| 132 | + "io.netty:netty-codec-http:4.1.93.Final", |
| 133 | + "io.netty:netty-codec:4.1.93.Final", |
| 134 | + "io.netty:netty-common:4.1.93.Final", |
| 135 | + "io.netty:netty-handler-proxy:4.1.93.Final", |
| 136 | + "io.netty:netty-handler:4.1.93.Final", |
| 137 | + "io.netty:netty-resolver-dns:4.1.93.Final", |
| 138 | + "io.netty:netty-resolver:4.1.93.Final", |
| 139 | + "io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64:2.0.56.Final", |
| 140 | + "io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64:2.0.56.Final", |
| 141 | + "io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64:2.0.56.Final", |
| 142 | + "io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64:2.0.56.Final", |
| 143 | + "io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64:2.0.56.Final", |
| 144 | + "io.netty:netty-tcnative-classes:2.0.56.Final", |
| 145 | + "io.netty:netty-transport-classes-epoll:4.1.93.Final", |
| 146 | + "io.netty:netty-transport-classes-kqueue:4.1.93.Final", |
| 147 | + "io.netty:netty-transport-native-epoll:jar:linux-aarch_64:4.1.93.Final", |
| 148 | + "io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.93.Final", |
| 149 | + "io.netty:netty-transport-native-kqueue:jar:osx-aarch_64:4.1.93.Final", |
| 150 | + "io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.93.Final", |
| 151 | + "io.netty:netty-transport-native-unix-common:4.1.93.Final", |
| 152 | + "io.netty:netty-transport-native-unix-common:jar:linux-aarch_64:4.1.93.Final", |
| 153 | + "io.netty:netty-transport-native-unix-common:jar:linux-x86_64:4.1.93.Final", |
| 154 | + "io.netty:netty-transport-native-unix-common:jar:osx-aarch_64:4.1.93.Final", |
| 155 | + "io.netty:netty-transport-native-unix-common:jar:osx-x86_64:4.1.93.Final", |
| 156 | + "io.netty:netty-transport:4.1.93.Final", |
| 157 | + "io.reactivex.rxjava3:rxjava:3.1.2", |
| 158 | + "it.unimi.dsi:fastutil:7.2.1", |
| 159 | + "javax.activation:javax.activation-api:1.2.0", |
| 160 | + "javax.annotation:javax.annotation-api:1.3.2", |
| 161 | + "javax.inject:javax.inject:1", |
| 162 | + "net.bytebuddy:byte-buddy-agent:1.14.5", |
| 163 | + "net.bytebuddy:byte-buddy:1.14.5", |
| 164 | + "org.apache.commons:commons-compress:1.20", |
| 165 | + "org.apache.commons:commons-pool2:2.8.0", |
| 166 | + "org.apache.tomcat:tomcat-annotations-api:8.0.5", |
| 167 | + "org.apache.velocity:velocity:1.7", |
| 168 | + "org.checkerframework:checker-qual:3.19.0", |
| 169 | + "org.ow2.asm:asm-analysis:9.2", |
| 170 | + "org.ow2.asm:asm-commons:9.2", |
| 171 | + "org.ow2.asm:asm-tree:9.2", |
| 172 | + "org.ow2.asm:asm-util:9.2", |
| 173 | + "org.ow2.asm:asm:9.2", |
| 174 | + "org.pcollections:pcollections:3.1.4", |
| 175 | + "org.threeten:threeten-extra:1.5.0", |
| 176 | + "org.tukaani:xz:1.9", |
| 177 | + "org.yaml:snakeyaml:1.28", |
| 178 | + "tools.profiler:async-profiler:3.0", |
| 179 | + # The following jars are for testing. |
| 180 | + # junit is not test only due to //src/java_tools/junitrunner/java/com/google/testing/junit/junit4:runner, |
| 181 | + # and hamcrest is a dependency of junit. |
| 182 | + "junit:junit:4.13.2", |
| 183 | + "org.hamcrest:hamcrest-core:1.3", |
| 184 | + ], |
| 185 | + excluded_artifacts = [ |
| 186 | + # org.apache.httpcomponents and org.eclipse.jgit:org.eclipse.jgit |
| 187 | + # require java.security.jgss module to be embedded in the Bazel binary. |
| 188 | + "org.apache.httpcomponents:httpclient", |
| 189 | + "org.apache.httpcomponents:httpcore", |
| 190 | + "org.eclipse.jgit:org.eclipse.jgit", |
| 191 | + # We build protobuf Java library from source, exclude protobuf jars to be safe. |
| 192 | + "com.google.protobuf:protobuf-java", |
| 193 | + "com.google.protobuf:protobuf-javalite", |
| 194 | + ], |
| 195 | + repositories = [ |
| 196 | + "https://repo1.maven.org/maven2", |
| 197 | + ], |
| 198 | + strict_visibility = True, |
| 199 | +) |
| 200 | +use_repo(maven, "maven") |
0 commit comments