Merge "Merge branch 'stable-2.16' into stable-3.0" into stable-3.0
This commit is contained in:
@@ -17,9 +17,12 @@ java_library(
|
||||
"//lib:junit",
|
||||
"//lib/guice",
|
||||
"//lib/httpcomponents:httpcore",
|
||||
"//lib/jackson:jackson-annotations",
|
||||
"//lib/jgit/org.eclipse.jgit:jgit",
|
||||
"//lib/log:api",
|
||||
"//lib/testcontainers",
|
||||
"//lib/testcontainers:docker-java-api",
|
||||
"//lib/testcontainers:docker-java-transport",
|
||||
"//lib/testcontainers:testcontainers-elasticsearch",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -19,6 +19,7 @@ import org.junit.AssumptionViolatedException;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.testcontainers.elasticsearch.ElasticsearchContainer;
|
||||
import org.testcontainers.utility.DockerImageName;
|
||||
|
||||
/* Helper class for running ES integration tests in docker container */
|
||||
public class ElasticContainer extends ElasticsearchContainer {
|
||||
@@ -63,7 +64,9 @@ public class ElasticContainer extends ElasticsearchContainer {
|
||||
}
|
||||
|
||||
private ElasticContainer(ElasticVersion version) {
|
||||
super(getImageName(version));
|
||||
super(
|
||||
DockerImageName.parse(getImageName(version))
|
||||
.asCompatibleSubstituteFor("docker.elastic.co/elasticsearch/elasticsearch"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
load("@rules_java//java:defs.bzl", "java_library")
|
||||
|
||||
java_library(
|
||||
name = "jackson-annotations",
|
||||
testonly = True,
|
||||
data = ["//lib:LICENSE-Apache2.0"],
|
||||
visibility = ["//visibility:public"],
|
||||
exports = ["@jackson-annotations//jar"],
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = "jackson-core",
|
||||
data = ["//lib:LICENSE-Apache2.0"],
|
||||
|
||||
@@ -12,6 +12,8 @@ grep 'name = "[^"]*"' ${bzl} | sed 's|^[^"]*"||g;s|".*$||g' | sort > $TMP/names
|
||||
|
||||
cat << EOF > $TMP/want
|
||||
cglib-3_2
|
||||
docker-java-api
|
||||
docker-java-transport
|
||||
dropwizard-core
|
||||
duct-tape
|
||||
eddsa
|
||||
@@ -22,6 +24,7 @@ flogger-system-backend
|
||||
httpasyncclient
|
||||
httpcore-nio
|
||||
j2objc
|
||||
jackson-annotations
|
||||
jackson-core
|
||||
javassist
|
||||
jna
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
load("@rules_java//java:defs.bzl", "java_library")
|
||||
|
||||
java_library(
|
||||
name = "docker-java-api",
|
||||
testonly = True,
|
||||
data = ["//lib:LICENSE-Apache2.0"],
|
||||
visibility = ["//visibility:public"],
|
||||
exports = ["@docker-java-api//jar"],
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = "docker-java-transport",
|
||||
testonly = True,
|
||||
data = ["//lib:LICENSE-Apache2.0"],
|
||||
visibility = ["//visibility:public"],
|
||||
exports = ["@docker-java-transport//jar"],
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = "duct-tape",
|
||||
testonly = True,
|
||||
|
||||
@@ -185,18 +185,40 @@ def declare_nongoogle_deps():
|
||||
sha1 = "3e83394258ae2089be7219b971ec21a8288528ad",
|
||||
)
|
||||
|
||||
TESTCONTAINERS_VERSION = "1.14.3"
|
||||
DOCKER_JAVA_VERS = "3.2.5"
|
||||
|
||||
maven_jar(
|
||||
name = "docker-java-api",
|
||||
artifact = "com.github.docker-java:docker-java-api:" + DOCKER_JAVA_VERS,
|
||||
sha1 = "8fe5c5e39f940ce58620e77cedc0a2a52d76f9d8",
|
||||
)
|
||||
|
||||
maven_jar(
|
||||
name = "docker-java-transport",
|
||||
artifact = "com.github.docker-java:docker-java-transport:" + DOCKER_JAVA_VERS,
|
||||
sha1 = "27af0ee7ebc2f5672e23ea64769497b5d55ce3ac",
|
||||
)
|
||||
|
||||
# https://github.com/docker-java/docker-java/blob/3.2.5/pom.xml#L61
|
||||
# <=> DOCKER_JAVA_VERS
|
||||
maven_jar(
|
||||
name = "jackson-annotations",
|
||||
artifact = "com.fasterxml.jackson.core:jackson-annotations:2.10.3",
|
||||
sha1 = "0f63b3b1da563767d04d2e4d3fc1ae0cdeffebe7",
|
||||
)
|
||||
|
||||
TESTCONTAINERS_VERSION = "1.15.0"
|
||||
|
||||
maven_jar(
|
||||
name = "testcontainers",
|
||||
artifact = "org.testcontainers:testcontainers:" + TESTCONTAINERS_VERSION,
|
||||
sha1 = "071fc82ba663f469447a19434e7db90f3a872753",
|
||||
sha1 = "b627535b444d88e7b14953bb953d80d9b7b3bd76",
|
||||
)
|
||||
|
||||
maven_jar(
|
||||
name = "testcontainers-elasticsearch",
|
||||
artifact = "org.testcontainers:elasticsearch:" + TESTCONTAINERS_VERSION,
|
||||
sha1 = "3709e2ebb0b6aa4e2ba2b6ca92ffdd3bf637a86c",
|
||||
sha1 = "2bd79fd915e5c7bcf9b5d86cd8e0b7a0fff4b8ce",
|
||||
)
|
||||
|
||||
maven_jar(
|
||||
|
||||
Reference in New Issue
Block a user