summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2021-10-01 13:05:14 +0200
committerGitHub <noreply@github.com>2021-10-01 13:05:14 +0200
commit249c68820cb078bca0765aa516a04e4c82e60703 (patch)
tree971e2efb4f8428dfed6cacb008cec8fba817717d
parent2f74bf462fa321d9612fb6bdd144c0f77a0b09f8 (diff)
parent7963cb974fdc63ae529b0c0895ea4ccc339b6a53 (diff)
Merge pull request #19383 from vespa-engine/merge-http-utils-into-vespajlib
Merge http utils into vespajlib [run-systemtest]
-rw-r--r--cloud-tenant-base-dependencies-enforcer/pom.xml1
-rw-r--r--config-model/pom.xml4
-rwxr-xr-xconfig/pom.xml6
-rw-r--r--configserver-client/pom.xml7
-rw-r--r--configserver/pom.xml6
-rw-r--r--container-core/pom.xml5
-rw-r--r--controller-server/pom.xml7
-rw-r--r--http-utils/OWNERS1
-rw-r--r--http-utils/README.md2
-rw-r--r--http-utils/pom.xml91
-rw-r--r--metrics-proxy/pom.xml5
-rw-r--r--node-repository/pom.xml6
-rw-r--r--pom.xml1
-rw-r--r--service-monitor/pom.xml12
-rw-r--r--vespa-http-client/pom.xml21
-rw-r--r--vespajlib/pom.xml22
-rw-r--r--vespajlib/src/main/java/ai/vespa/util/http/hc4/VespaHttpClientBuilder.java (renamed from http-utils/src/main/java/ai/vespa/util/http/hc4/VespaHttpClientBuilder.java)0
-rw-r--r--vespajlib/src/main/java/ai/vespa/util/http/hc4/package-info.java5
-rw-r--r--vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/DelaySupplier.java (renamed from http-utils/src/main/java/ai/vespa/util/http/hc4/retry/DelaySupplier.java)0
-rw-r--r--vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/DelayedConnectionLevelRetryHandler.java (renamed from http-utils/src/main/java/ai/vespa/util/http/hc4/retry/DelayedConnectionLevelRetryHandler.java)0
-rw-r--r--vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/DelayedResponseLevelRetryHandler.java (renamed from http-utils/src/main/java/ai/vespa/util/http/hc4/retry/DelayedResponseLevelRetryHandler.java)0
-rw-r--r--vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/RetryConsumer.java (renamed from http-utils/src/main/java/ai/vespa/util/http/hc4/retry/RetryConsumer.java)0
-rw-r--r--vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/RetryFailedConsumer.java (renamed from http-utils/src/main/java/ai/vespa/util/http/hc4/retry/RetryFailedConsumer.java)0
-rw-r--r--vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/RetryPredicate.java (renamed from http-utils/src/main/java/ai/vespa/util/http/hc4/retry/RetryPredicate.java)0
-rw-r--r--vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/Sleeper.java (renamed from http-utils/src/main/java/ai/vespa/util/http/hc4/retry/Sleeper.java)0
-rw-r--r--vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/package-info.java5
-rw-r--r--vespajlib/src/main/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlanner.java (renamed from http-utils/src/main/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlanner.java)0
-rw-r--r--vespajlib/src/main/java/ai/vespa/util/http/hc5/VespaAsyncHttpClientBuilder.java (renamed from http-utils/src/main/java/ai/vespa/util/http/hc5/VespaAsyncHttpClientBuilder.java)0
-rw-r--r--vespajlib/src/main/java/ai/vespa/util/http/hc5/VespaHttpClientBuilder.java (renamed from http-utils/src/main/java/ai/vespa/util/http/hc5/VespaHttpClientBuilder.java)0
-rw-r--r--vespajlib/src/main/java/ai/vespa/util/http/hc5/package-info.java5
-rw-r--r--vespajlib/src/test/java/ai/vespa/util/http/hc4/VespaHttpClientBuilderTest.java (renamed from http-utils/src/test/java/ai/vespa/util/http/hc4/VespaHttpClientBuilderTest.java)0
-rw-r--r--vespajlib/src/test/java/ai/vespa/util/http/hc4/retry/DelayedConnectionLevelRetryHandlerTest.java (renamed from http-utils/src/test/java/ai/vespa/util/http/hc4/retry/DelayedConnectionLevelRetryHandlerTest.java)0
-rw-r--r--vespajlib/src/test/java/ai/vespa/util/http/hc4/retry/DelayedResponseLevelRetryHandlerTest.java (renamed from http-utils/src/test/java/ai/vespa/util/http/hc4/retry/DelayedResponseLevelRetryHandlerTest.java)0
-rw-r--r--vespajlib/src/test/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlannerTest.java (renamed from http-utils/src/test/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlannerTest.java)0
34 files changed, 63 insertions, 149 deletions
diff --git a/cloud-tenant-base-dependencies-enforcer/pom.xml b/cloud-tenant-base-dependencies-enforcer/pom.xml
index ab8c9b7d136..69408eef621 100644
--- a/cloud-tenant-base-dependencies-enforcer/pom.xml
+++ b/cloud-tenant-base-dependencies-enforcer/pom.xml
@@ -160,7 +160,6 @@
<include>com.yahoo.vespa:fileacquirer:*:jar:provided</include>
<include>com.yahoo.vespa:fsa:*:jar:provided</include>
<include>com.yahoo.vespa:hosted-zone-api:*:jar:provided</include>
- <include>com.yahoo.vespa:http-utils:*:jar:provided</include>
<include>com.yahoo.vespa:jdisc_core:*:jar:provided</include>
<include>com.yahoo.vespa:jrt:*:jar:provided</include>
<include>com.yahoo.vespa:linguistics:*:jar:provided</include>
diff --git a/config-model/pom.xml b/config-model/pom.xml
index 0059d8067e4..926c53039d2 100644
--- a/config-model/pom.xml
+++ b/config-model/pom.xml
@@ -108,10 +108,6 @@
<exclusions>
<!-- Not needed to generate config and saves 1 MB. -->
<exclusion>
- <groupId>com.yahoo.vespa</groupId>
- <artifactId>http-utils</artifactId>
- </exclusion>
- <exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
diff --git a/config/pom.xml b/config/pom.xml
index 8355587c10b..c3ecc90ad02 100755
--- a/config/pom.xml
+++ b/config/pom.xml
@@ -63,12 +63,6 @@
<version>${project.version}</version>
</dependency>
<dependency>
- <groupId>com.yahoo.vespa</groupId>
- <artifactId>http-utils</artifactId>
- <version>${project.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
diff --git a/configserver-client/pom.xml b/configserver-client/pom.xml
index 39005c9ccab..3e9f3d3fcf0 100644
--- a/configserver-client/pom.xml
+++ b/configserver-client/pom.xml
@@ -17,13 +17,6 @@
<dependencies>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>http-utils</artifactId>
- <version>${project.version}</version>
- <scope>compile</scope>
- </dependency>
-
- <dependency>
- <groupId>com.yahoo.vespa</groupId>
<artifactId>vespa-athenz</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
diff --git a/configserver/pom.xml b/configserver/pom.xml
index ac98cfa5d5d..fa67bebef91 100644
--- a/configserver/pom.xml
+++ b/configserver/pom.xml
@@ -242,12 +242,6 @@
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>com.yahoo.vespa</groupId>
- <artifactId>http-utils</artifactId>
- <version>${project.version}</version>
- <scope>compile</scope>
- </dependency>
</dependencies>
<build>
<plugins>
diff --git a/container-core/pom.xml b/container-core/pom.xml
index 3627e3f37a7..590201171ac 100644
--- a/container-core/pom.xml
+++ b/container-core/pom.xml
@@ -59,11 +59,6 @@
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>http-utils</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>com.yahoo.vespa</groupId>
<artifactId>linguistics</artifactId>
<version>${project.version}</version>
<exclusions>
diff --git a/controller-server/pom.xml b/controller-server/pom.xml
index a0d05588a0d..3ee48ed2efc 100644
--- a/controller-server/pom.xml
+++ b/controller-server/pom.xml
@@ -158,13 +158,6 @@
</dependency>
<dependency>
- <groupId>com.yahoo.vespa</groupId>
- <artifactId>http-utils</artifactId>
- <version>${project.version}</version>
- <scope>compile</scope>
- </dependency>
-
- <dependency>
<!-- required by java-jwt -->
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
diff --git a/http-utils/OWNERS b/http-utils/OWNERS
deleted file mode 100644
index 569bf1cc3a1..00000000000
--- a/http-utils/OWNERS
+++ /dev/null
@@ -1 +0,0 @@
-bjorncs
diff --git a/http-utils/README.md b/http-utils/README.md
deleted file mode 100644
index 714b7581ad4..00000000000
--- a/http-utils/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-<!-- Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
-# Http utilities for Java
diff --git a/http-utils/pom.xml b/http-utils/pom.xml
deleted file mode 100644
index 2a8ec1b9bb9..00000000000
--- a/http-utils/pom.xml
+++ /dev/null
@@ -1,91 +0,0 @@
-<?xml version="1.0"?>
-<!-- Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>com.yahoo.vespa</groupId>
- <artifactId>parent</artifactId>
- <version>7-SNAPSHOT</version>
- <relativePath>../parent/pom.xml</relativePath>
- </parent>
- <artifactId>http-utils</artifactId>
- <packaging>jar</packaging>
- <version>7-SNAPSHOT</version>
-
- <properties>
- <!-- vespa-http-client targets jdk8 and uses this library -->
- <!-- TODO remove once vespa-http-client no longer builds against jdk8 -->
- <maven.compiler.release>8</maven.compiler.release>
- </properties>
-
- <dependencies>
- <!-- provided -->
- <dependency>
- <groupId>com.yahoo.vespa</groupId>
- <artifactId>security-utils</artifactId>
- <version>${project.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <!-- Apache client artifacts are provided by the jdisc container and are therefore scoped as such -->
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpclient</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpcore</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents.client5</groupId>
- <artifactId>httpclient5</artifactId>
- <scope>provided</scope>
- <exclusions>
- <exclusion>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
-
- <!-- test scope -->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <jdkToolchain>
- <version>${java.version}</version>
- </jdkToolchain>
- <source>${java.version}</source>
- <target>${java.version}</target>
- <showDeprecation>true</showDeprecation>
- <compilerArgs>
- <arg>-Xlint:all</arg>
- <arg>-Xlint:-serial</arg>
- <arg>-Werror</arg>
- </compilerArgs>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
diff --git a/metrics-proxy/pom.xml b/metrics-proxy/pom.xml
index 19b545df616..2a9e3cebf3a 100644
--- a/metrics-proxy/pom.xml
+++ b/metrics-proxy/pom.xml
@@ -99,11 +99,6 @@
<!-- compile scope -->
<dependency>
- <groupId>com.yahoo.vespa</groupId>
- <artifactId>http-utils</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient</artifactId>
</dependency>
diff --git a/node-repository/pom.xml b/node-repository/pom.xml
index 2c17fb9ca5d..a09c4865ec0 100644
--- a/node-repository/pom.xml
+++ b/node-repository/pom.xml
@@ -84,12 +84,6 @@
<version>6.0.4</version>
<scope>compile</scope>
</dependency>
- <dependency>
- <groupId>com.yahoo.vespa</groupId>
- <artifactId>http-utils</artifactId>
- <version>${project.version}</version>
- <scope>compile</scope>
- </dependency>
<!-- test -->
<dependency>
diff --git a/pom.xml b/pom.xml
index 25370012a6c..9f23ef863a6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -83,7 +83,6 @@
<module>hosted-api</module>
<module>hosted-tenant-base</module>
<module>hosted-zone-api</module>
- <module>http-utils</module>
<module>indexinglanguage</module>
<module>jaxrs_client_utils</module>
<module>jaxrs_utils</module>
diff --git a/service-monitor/pom.xml b/service-monitor/pom.xml
index df28737f352..0bdce4a2176 100644
--- a/service-monitor/pom.xml
+++ b/service-monitor/pom.xml
@@ -16,12 +16,6 @@
<description>Service monitor component for hosted vespa.</description>
<dependencies>
- <dependency>
- <groupId>com.yahoo.vespa</groupId>
- <artifactId>http-utils</artifactId>
- <version>${project.version}</version>
- <scope>compile</scope>
- </dependency>
<!-- provided scope -->
<dependency>
@@ -91,6 +85,12 @@
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>vespajlib</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<scope>provided</scope>
diff --git a/vespa-http-client/pom.xml b/vespa-http-client/pom.xml
index 19161e720ba..2007d269ee4 100644
--- a/vespa-http-client/pom.xml
+++ b/vespa-http-client/pom.xml
@@ -60,9 +60,28 @@
<dependency>
<!-- Needed for Vespa TLS configuration. Standard jar artifact -->
<groupId>com.yahoo.vespa</groupId>
- <artifactId>http-utils</artifactId>
+ <artifactId>vespajlib</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
+ <exclusions>
+ <!-- Optimization: exclude artifacts that are not used by this module -->
+ <exclusion>
+ <groupId>io.airlift</groupId>
+ <artifactId>aircompressor</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>net.java.dev.jna</groupId>
+ <artifactId>jna</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-exec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.lz4</groupId>
+ <artifactId>lz4-java</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<!-- Needed for Vespa TLS configuration. -->
diff --git a/vespajlib/pom.xml b/vespajlib/pom.xml
index 0f2ebadac82..2587d919434 100644
--- a/vespajlib/pom.xml
+++ b/vespajlib/pom.xml
@@ -51,10 +51,32 @@
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
+ <artifactId>security-utils</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
<artifactId>yolean</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents.client5</groupId>
+ <artifactId>httpclient5</artifactId>
+ <scope>provided</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
<!-- test scope -->
<dependency>
diff --git a/http-utils/src/main/java/ai/vespa/util/http/hc4/VespaHttpClientBuilder.java b/vespajlib/src/main/java/ai/vespa/util/http/hc4/VespaHttpClientBuilder.java
index 53bf7b866af..53bf7b866af 100644
--- a/http-utils/src/main/java/ai/vespa/util/http/hc4/VespaHttpClientBuilder.java
+++ b/vespajlib/src/main/java/ai/vespa/util/http/hc4/VespaHttpClientBuilder.java
diff --git a/vespajlib/src/main/java/ai/vespa/util/http/hc4/package-info.java b/vespajlib/src/main/java/ai/vespa/util/http/hc4/package-info.java
new file mode 100644
index 00000000000..823bfdcde4b
--- /dev/null
+++ b/vespajlib/src/main/java/ai/vespa/util/http/hc4/package-info.java
@@ -0,0 +1,5 @@
+// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+@ExportPackage
+package ai.vespa.util.http.hc4;
+
+import com.yahoo.osgi.annotation.ExportPackage;
diff --git a/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/DelaySupplier.java b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/DelaySupplier.java
index b202966c412..b202966c412 100644
--- a/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/DelaySupplier.java
+++ b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/DelaySupplier.java
diff --git a/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/DelayedConnectionLevelRetryHandler.java b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/DelayedConnectionLevelRetryHandler.java
index 3ba92c08e30..3ba92c08e30 100644
--- a/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/DelayedConnectionLevelRetryHandler.java
+++ b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/DelayedConnectionLevelRetryHandler.java
diff --git a/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/DelayedResponseLevelRetryHandler.java b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/DelayedResponseLevelRetryHandler.java
index d4ceb44a3ab..d4ceb44a3ab 100644
--- a/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/DelayedResponseLevelRetryHandler.java
+++ b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/DelayedResponseLevelRetryHandler.java
diff --git a/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/RetryConsumer.java b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/RetryConsumer.java
index c168f7d50c9..c168f7d50c9 100644
--- a/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/RetryConsumer.java
+++ b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/RetryConsumer.java
diff --git a/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/RetryFailedConsumer.java b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/RetryFailedConsumer.java
index 801c8a5af2f..801c8a5af2f 100644
--- a/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/RetryFailedConsumer.java
+++ b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/RetryFailedConsumer.java
diff --git a/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/RetryPredicate.java b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/RetryPredicate.java
index 45c5ef0d623..45c5ef0d623 100644
--- a/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/RetryPredicate.java
+++ b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/RetryPredicate.java
diff --git a/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/Sleeper.java b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/Sleeper.java
index f593561888d..f593561888d 100644
--- a/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/Sleeper.java
+++ b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/Sleeper.java
diff --git a/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/package-info.java b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/package-info.java
new file mode 100644
index 00000000000..f20247fe13e
--- /dev/null
+++ b/vespajlib/src/main/java/ai/vespa/util/http/hc4/retry/package-info.java
@@ -0,0 +1,5 @@
+// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+@ExportPackage
+package ai.vespa.util.http.hc4.retry;
+
+import com.yahoo.osgi.annotation.ExportPackage;
diff --git a/http-utils/src/main/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlanner.java b/vespajlib/src/main/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlanner.java
index 92cc35fc354..92cc35fc354 100644
--- a/http-utils/src/main/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlanner.java
+++ b/vespajlib/src/main/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlanner.java
diff --git a/http-utils/src/main/java/ai/vespa/util/http/hc5/VespaAsyncHttpClientBuilder.java b/vespajlib/src/main/java/ai/vespa/util/http/hc5/VespaAsyncHttpClientBuilder.java
index 50af29f92aa..50af29f92aa 100644
--- a/http-utils/src/main/java/ai/vespa/util/http/hc5/VespaAsyncHttpClientBuilder.java
+++ b/vespajlib/src/main/java/ai/vespa/util/http/hc5/VespaAsyncHttpClientBuilder.java
diff --git a/http-utils/src/main/java/ai/vespa/util/http/hc5/VespaHttpClientBuilder.java b/vespajlib/src/main/java/ai/vespa/util/http/hc5/VespaHttpClientBuilder.java
index e01d278ff38..e01d278ff38 100644
--- a/http-utils/src/main/java/ai/vespa/util/http/hc5/VespaHttpClientBuilder.java
+++ b/vespajlib/src/main/java/ai/vespa/util/http/hc5/VespaHttpClientBuilder.java
diff --git a/vespajlib/src/main/java/ai/vespa/util/http/hc5/package-info.java b/vespajlib/src/main/java/ai/vespa/util/http/hc5/package-info.java
new file mode 100644
index 00000000000..1deb7cd6afb
--- /dev/null
+++ b/vespajlib/src/main/java/ai/vespa/util/http/hc5/package-info.java
@@ -0,0 +1,5 @@
+// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+@ExportPackage
+package ai.vespa.util.http.hc5;
+
+import com.yahoo.osgi.annotation.ExportPackage;
diff --git a/http-utils/src/test/java/ai/vespa/util/http/hc4/VespaHttpClientBuilderTest.java b/vespajlib/src/test/java/ai/vespa/util/http/hc4/VespaHttpClientBuilderTest.java
index 58aa70b69b1..58aa70b69b1 100644
--- a/http-utils/src/test/java/ai/vespa/util/http/hc4/VespaHttpClientBuilderTest.java
+++ b/vespajlib/src/test/java/ai/vespa/util/http/hc4/VespaHttpClientBuilderTest.java
diff --git a/http-utils/src/test/java/ai/vespa/util/http/hc4/retry/DelayedConnectionLevelRetryHandlerTest.java b/vespajlib/src/test/java/ai/vespa/util/http/hc4/retry/DelayedConnectionLevelRetryHandlerTest.java
index 7330a91d75c..7330a91d75c 100644
--- a/http-utils/src/test/java/ai/vespa/util/http/hc4/retry/DelayedConnectionLevelRetryHandlerTest.java
+++ b/vespajlib/src/test/java/ai/vespa/util/http/hc4/retry/DelayedConnectionLevelRetryHandlerTest.java
diff --git a/http-utils/src/test/java/ai/vespa/util/http/hc4/retry/DelayedResponseLevelRetryHandlerTest.java b/vespajlib/src/test/java/ai/vespa/util/http/hc4/retry/DelayedResponseLevelRetryHandlerTest.java
index 514eae56fe8..514eae56fe8 100644
--- a/http-utils/src/test/java/ai/vespa/util/http/hc4/retry/DelayedResponseLevelRetryHandlerTest.java
+++ b/vespajlib/src/test/java/ai/vespa/util/http/hc4/retry/DelayedResponseLevelRetryHandlerTest.java
diff --git a/http-utils/src/test/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlannerTest.java b/vespajlib/src/test/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlannerTest.java
index 58dc25fdf1a..58dc25fdf1a 100644
--- a/http-utils/src/test/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlannerTest.java
+++ b/vespajlib/src/test/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlannerTest.java