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:junit", | ||||||
|         "//lib/guice", |         "//lib/guice", | ||||||
|         "//lib/httpcomponents:httpcore", |         "//lib/httpcomponents:httpcore", | ||||||
|  |         "//lib/jackson:jackson-annotations", | ||||||
|         "//lib/jgit/org.eclipse.jgit:jgit", |         "//lib/jgit/org.eclipse.jgit:jgit", | ||||||
|         "//lib/log:api", |         "//lib/log:api", | ||||||
|         "//lib/testcontainers", |         "//lib/testcontainers", | ||||||
|  |         "//lib/testcontainers:docker-java-api", | ||||||
|  |         "//lib/testcontainers:docker-java-transport", | ||||||
|         "//lib/testcontainers:testcontainers-elasticsearch", |         "//lib/testcontainers:testcontainers-elasticsearch", | ||||||
|     ], |     ], | ||||||
| ) | ) | ||||||
|   | |||||||
| @@ -19,6 +19,7 @@ import org.junit.AssumptionViolatedException; | |||||||
| import org.slf4j.Logger; | import org.slf4j.Logger; | ||||||
| import org.slf4j.LoggerFactory; | import org.slf4j.LoggerFactory; | ||||||
| import org.testcontainers.elasticsearch.ElasticsearchContainer; | import org.testcontainers.elasticsearch.ElasticsearchContainer; | ||||||
|  | import org.testcontainers.utility.DockerImageName; | ||||||
|  |  | ||||||
| /* Helper class for running ES integration tests in docker container */ | /* Helper class for running ES integration tests in docker container */ | ||||||
| public class ElasticContainer extends ElasticsearchContainer { | public class ElasticContainer extends ElasticsearchContainer { | ||||||
| @@ -63,7 +64,9 @@ public class ElasticContainer extends ElasticsearchContainer { | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   private ElasticContainer(ElasticVersion version) { |   private ElasticContainer(ElasticVersion version) { | ||||||
|     super(getImageName(version)); |     super( | ||||||
|  |         DockerImageName.parse(getImageName(version)) | ||||||
|  |             .asCompatibleSubstituteFor("docker.elastic.co/elasticsearch/elasticsearch")); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   @Override |   @Override | ||||||
|   | |||||||
| @@ -1,5 +1,13 @@ | |||||||
| load("@rules_java//java:defs.bzl", "java_library") | 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( | java_library( | ||||||
|     name = "jackson-core", |     name = "jackson-core", | ||||||
|     data = ["//lib:LICENSE-Apache2.0"], |     data = ["//lib:LICENSE-Apache2.0"], | ||||||
|   | |||||||
| @@ -12,6 +12,8 @@ grep 'name = "[^"]*"' ${bzl} | sed 's|^[^"]*"||g;s|".*$||g' | sort > $TMP/names | |||||||
|  |  | ||||||
| cat << EOF > $TMP/want | cat << EOF > $TMP/want | ||||||
| cglib-3_2 | cglib-3_2 | ||||||
|  | docker-java-api | ||||||
|  | docker-java-transport | ||||||
| dropwizard-core | dropwizard-core | ||||||
| duct-tape | duct-tape | ||||||
| eddsa | eddsa | ||||||
| @@ -22,6 +24,7 @@ flogger-system-backend | |||||||
| httpasyncclient | httpasyncclient | ||||||
| httpcore-nio | httpcore-nio | ||||||
| j2objc | j2objc | ||||||
|  | jackson-annotations | ||||||
| jackson-core | jackson-core | ||||||
| javassist | javassist | ||||||
| jna | jna | ||||||
|   | |||||||
| @@ -1,5 +1,21 @@ | |||||||
| load("@rules_java//java:defs.bzl", "java_library") | 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( | java_library( | ||||||
|     name = "duct-tape", |     name = "duct-tape", | ||||||
|     testonly = True, |     testonly = True, | ||||||
|   | |||||||
| @@ -185,18 +185,40 @@ def declare_nongoogle_deps(): | |||||||
|         sha1 = "3e83394258ae2089be7219b971ec21a8288528ad", |         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( |     maven_jar( | ||||||
|         name = "testcontainers", |         name = "testcontainers", | ||||||
|         artifact = "org.testcontainers:testcontainers:" + TESTCONTAINERS_VERSION, |         artifact = "org.testcontainers:testcontainers:" + TESTCONTAINERS_VERSION, | ||||||
|         sha1 = "071fc82ba663f469447a19434e7db90f3a872753", |         sha1 = "b627535b444d88e7b14953bb953d80d9b7b3bd76", | ||||||
|     ) |     ) | ||||||
|  |  | ||||||
|     maven_jar( |     maven_jar( | ||||||
|         name = "testcontainers-elasticsearch", |         name = "testcontainers-elasticsearch", | ||||||
|         artifact = "org.testcontainers:elasticsearch:" + TESTCONTAINERS_VERSION, |         artifact = "org.testcontainers:elasticsearch:" + TESTCONTAINERS_VERSION, | ||||||
|         sha1 = "3709e2ebb0b6aa4e2ba2b6ca92ffdd3bf637a86c", |         sha1 = "2bd79fd915e5c7bcf9b5d86cd8e0b7a0fff4b8ce", | ||||||
|     ) |     ) | ||||||
|  |  | ||||||
|     maven_jar( |     maven_jar( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Edwin Kempin
					Edwin Kempin