summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2021-03-02 09:32:36 +0100
committerGitHub <noreply@github.com>2021-03-02 09:32:36 +0100
commit2edfae6c18002e494841339c730ea0bb07506c9a (patch)
tree843e64667bd4bbd9af3415828c01a5d1a0b10450
parenteb448a051a2506848f3cde690ed0f6e1f28df940 (diff)
parent67a058390e2af1ccfa16d8c702bfdb614130dc9f (diff)
Merge pull request #16722 from vespa-engine/gjoranv/reduce-dependencies_part2
Gjoranv/reduce dependencies part2
-rw-r--r--config-bundle/README3
-rw-r--r--container-disc/pom.xml12
-rw-r--r--container-jersey2/pom.xml34
-rw-r--r--container-messagebus/pom.xml47
-rw-r--r--container-search-and-docproc/pom.xml107
-rw-r--r--container-search/pom.xml8
-rw-r--r--docproc/pom.xml68
-rwxr-xr-xprovided-dependencies/pom.xml10
8 files changed, 214 insertions, 75 deletions
diff --git a/config-bundle/README b/config-bundle/README
index 4a587e0506a..09c978c3193 100644
--- a/config-bundle/README
+++ b/config-bundle/README
@@ -1 +1,4 @@
This package contains the config library osgi bundle.
+Vespa internal container plugins using the config library can depend on this
+module in scope 'provided' to ensure that all necessary packages are imported
+in the container plugin bundle's OSGi manifest.
diff --git a/container-disc/pom.xml b/container-disc/pom.xml
index 857696a14a7..a5f678ad828 100644
--- a/container-disc/pom.xml
+++ b/container-disc/pom.xml
@@ -138,18 +138,6 @@
</dependency>
<!-- end WARNING -->
- <!-- dependencies used by container-core -->
- <dependency>
- <groupId>com.fasterxml.jackson.datatype</groupId>
- <artifactId>jackson-datatype-jsr310</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.datatype</groupId>
- <artifactId>jackson-datatype-jdk8</artifactId>
- <scope>provided</scope>
- </dependency>
-
<!-- ensure that transitive Jackson dependencies are not included in compile scope -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
diff --git a/container-jersey2/pom.xml b/container-jersey2/pom.xml
index 231e9dd4a0e..e94e2a46bba 100644
--- a/container-jersey2/pom.xml
+++ b/container-jersey2/pom.xml
@@ -15,49 +15,57 @@
<version>7-SNAPSHOT</version>
<packaging>container-plugin</packaging>
<dependencies>
+
+ <!-- COMPILE scope -->
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
+ <groupId>org.ow2.asm</groupId>
+ <artifactId>asm</artifactId>
</dependency>
+
+
+ <!-- PROVIDED scope -->
<dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- <scope>test</scope>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>annotations</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>vespa_jersey2</artifactId>
+ <artifactId>component</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
- <type>pom</type>
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>provided-dependencies</artifactId>
+ <artifactId>container-di</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>component</artifactId>
+ <artifactId>jdisc_core</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>container-disc</artifactId>
+ <artifactId>vespa_jersey2</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
+ <type>pom</type>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
<scope>provided</scope>
</dependency>
+
+ <!-- TEST scope -->
<dependency>
- <groupId>org.ow2.asm</groupId>
- <artifactId>asm</artifactId>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
</dependency>
</dependencies>
<build>
diff --git a/container-messagebus/pom.xml b/container-messagebus/pom.xml
index bdb308832ac..52e3652634b 100644
--- a/container-messagebus/pom.xml
+++ b/container-messagebus/pom.xml
@@ -15,14 +15,16 @@
<version>7-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
+ <!-- PROVIDED scope -->
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
+ <groupId>com.google.inject</groupId>
+ <artifactId>guice</artifactId>
+ <classifier>no_aop</classifier>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>provided-dependencies</artifactId>
+ <artifactId>annotations</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
@@ -40,22 +42,53 @@
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>container-core</artifactId>
+ <artifactId>config-lib</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>messagebus-disc</artifactId>
+ <artifactId>document</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>container-documentapi</artifactId>
+ <artifactId>documentapi</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>container-di</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>jdisc_core</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>jdisc_messagebus_service</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>messagebus</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- TEST scope -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<build>
<plugins>
diff --git a/container-search-and-docproc/pom.xml b/container-search-and-docproc/pom.xml
index 1663830a457..6e256fc0ef6 100644
--- a/container-search-and-docproc/pom.xml
+++ b/container-search-and-docproc/pom.xml
@@ -15,38 +15,14 @@
<version>7-SNAPSHOT</version>
<packaging>container-plugin</packaging>
<dependencies>
+
+ <!-- COMPILE scope -->
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-library</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
+ <!-- TODO: this was changed from scope provided in 3594d15ab25fe245f76e7563f12b4f5797b985c7. Why? -->
<groupId>com.yahoo.vespa</groupId>
- <artifactId>simplemetrics</artifactId>
- <version>${project.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.yahoo.vespa</groupId>
- <artifactId>provided-dependencies</artifactId>
- <version>${project.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.yahoo.vespa</groupId>
- <artifactId>component</artifactId>
+ <artifactId>searchlib</artifactId>
<version>${project.version}</version>
- <scope>provided</scope>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
@@ -120,6 +96,60 @@
</exclusion>
</exclusions>
</dependency>
+
+ <!-- PROVIDED scope -->
+ <dependency>
+ <groupId>com.google.inject</groupId>
+ <artifactId>guice</artifactId>
+ <classifier>no_aop</classifier>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-core</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-databind</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>annotations</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>jdisc_core</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>jdisc_http_service</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>simplemetrics</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>provided-dependencies</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>component</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
<artifactId>configdefinitions</artifactId>
@@ -191,11 +221,22 @@
<artifactId>json</artifactId>
<scope>provided</scope>
</dependency>
+
+ <!-- TEST scope -->
<dependency>
- <groupId>com.yahoo.vespa</groupId>
- <artifactId>searchlib</artifactId>
- <version>${project.version}</version>
- <scope>compile</scope>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest-library</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <scope>test</scope>
</dependency>
</dependencies>
<build>
diff --git a/container-search/pom.xml b/container-search/pom.xml
index 014b7dda14f..c1a7156235e 100644
--- a/container-search/pom.xml
+++ b/container-search/pom.xml
@@ -44,7 +44,13 @@
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>config-bundle</artifactId>
+ <artifactId>config</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>config-lib</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
diff --git a/docproc/pom.xml b/docproc/pom.xml
index 3def1a65a44..36e54e689ee 100644
--- a/docproc/pom.xml
+++ b/docproc/pom.xml
@@ -15,21 +15,28 @@
<packaging>jar</packaging>
<version>7-SNAPSHOT</version>
<dependencies>
+ <!-- PROVIDED scope -->
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
+ <groupId>com.google.inject</groupId>
+ <artifactId>guice</artifactId>
+ <classifier>no_aop</classifier>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>provided-dependencies</artifactId>
+ <artifactId>component</artifactId>
<version>${project.version}</version>
- <type>pom</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>component</artifactId>
+ <artifactId>config</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>config-lib</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
@@ -41,22 +48,65 @@
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>config-bundle</artifactId>
+ <artifactId>container-messagebus</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>document</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>messagebus-disc</artifactId>
+ <artifactId>documentapi</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
- <artifactId>container-messagebus</artifactId>
+ <artifactId>jdisc_core</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>jdisc_messagebus_service</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>messagebus</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>statistics</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>vespajlib</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>
+
+ <!-- TEST scope -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<build>
<plugins>
diff --git a/provided-dependencies/pom.xml b/provided-dependencies/pom.xml
index ca7a9739405..e73d9902ebe 100755
--- a/provided-dependencies/pom.xml
+++ b/provided-dependencies/pom.xml
@@ -66,6 +66,16 @@
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.main</artifactId>
</dependency>
+
+ <!-- Dependencies used by container-core -->
+ <dependency>
+ <groupId>com.fasterxml.jackson.datatype</groupId>
+ <artifactId>jackson-datatype-jsr310</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.datatype</groupId>
+ <artifactId>jackson-datatype-jdk8</artifactId>
+ </dependency>
</dependencies>
<build>
<plugins>