From 9d5fc0eda050019cca628b463e2ceb2e4651f302 Mon Sep 17 00:00:00 2001
From: ajantha-bhat <ajanthabhat@gmail.com>
Date: Tue, 23 May 2023 17:01:11 +0530
Subject: [PATCH] Handle dependency declarations

---
 plugin/trino-iceberg/pom.xml |  4 ++++
 pom.xml                      | 19 -------------------
 2 files changed, 4 insertions(+), 19 deletions(-)

diff --git a/plugin/trino-iceberg/pom.xml b/plugin/trino-iceberg/pom.xml
index 600f431c6829..4406488431d9 100644
--- a/plugin/trino-iceberg/pom.xml
+++ b/plugin/trino-iceberg/pom.xml
@@ -24,6 +24,7 @@
           TODO (https://github.com/trinodb/trino/issues/11294) remove when we upgrade to surefire with https://issues.apache.org/jira/browse/SUREFIRE-1967
           -->
         <air.test.parallel>instances</air.test.parallel>
+        <dep.nessie.version>0.51.1</dep.nessie.version>
     </properties>
 
     <dependencies>
@@ -219,6 +220,7 @@
         <dependency>
             <groupId>org.apache.iceberg</groupId>
             <artifactId>iceberg-nessie</artifactId>
+            <version>${dep.iceberg.version}</version>
         </dependency>
 
         <dependency>
@@ -239,11 +241,13 @@
         <dependency>
             <groupId>org.projectnessie.nessie</groupId>
             <artifactId>nessie-client</artifactId>
+            <version>${dep.nessie.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.projectnessie.nessie</groupId>
             <artifactId>nessie-model</artifactId>
+            <version>${dep.nessie.version}</version>
         </dependency>
 
         <dependency>
diff --git a/pom.xml b/pom.xml
index 90ee050d4683..0dab67426bb4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -69,7 +69,6 @@
         <dep.casandra.version>4.14.0</dep.casandra.version>
         <dep.minio.version>8.4.5</dep.minio.version>
         <dep.iceberg.version>1.2.1</dep.iceberg.version>
-        <dep.nessie.version>0.51.1</dep.nessie.version>
         <dep.protobuf.version>3.22.2</dep.protobuf.version>
         <dep.wire.version>4.5.0</dep.wire.version>
         <dep.netty.version>4.1.92.Final</dep.netty.version>
@@ -1687,12 +1686,6 @@
                 </exclusions>
             </dependency>
 
-            <dependency>
-                <groupId>org.apache.iceberg</groupId>
-                <artifactId>iceberg-nessie</artifactId>
-                <version>${dep.iceberg.version}</version>
-            </dependency>
-
             <dependency>
                 <groupId>org.apache.iceberg</groupId>
                 <artifactId>iceberg-orc</artifactId>
@@ -1866,18 +1859,6 @@
                 <version>42.6.0</version>
             </dependency>
 
-            <dependency>
-                <groupId>org.projectnessie.nessie</groupId>
-                <artifactId>nessie-client</artifactId>
-                <version>${dep.nessie.version}</version>
-            </dependency>
-
-            <dependency>
-                <groupId>org.projectnessie.nessie</groupId>
-                <artifactId>nessie-model</artifactId>
-                <version>${dep.nessie.version}</version>
-            </dependency>
-
             <dependency>
                 <groupId>org.roaringbitmap</groupId>
                 <artifactId>RoaringBitmap</artifactId>