This is an automated email from the ASF dual-hosted git repository.

yasith pushed a commit to branch feat/grpc-armeria-migration
in repository https://gitbox.apache.org/repos/asf/airavata.git

commit 22c1016536299f508ce4a99a048ed7da45f14503
Author: yasithdev <[email protected]>
AuthorDate: Wed Apr 1 13:49:36 2026 -0400

    fix: resolve test compilation errors in extracted modules
---
 airavata-api/credential-service/pom.xml | 31 +++++++++++++++++++++++++++++++
 airavata-api/pom.xml                    | 12 ++++++++++++
 airavata-api/storage-service/pom.xml    | 14 ++++++++++++++
 3 files changed, 57 insertions(+)

diff --git a/airavata-api/credential-service/pom.xml 
b/airavata-api/credential-service/pom.xml
index d4ab1415c8..e349cd0827 100644
--- a/airavata-api/credential-service/pom.xml
+++ b/airavata-api/credential-service/pom.xml
@@ -46,6 +46,37 @@ under the License.
             <artifactId>spring-context</artifactId>
             <optional>true</optional>
         </dependency>
+
+        <!-- Test dependencies -->
+        <dependency>
+            <groupId>org.mockito</groupId>
+            <artifactId>mockito-core</artifactId>
+            <version>5.23.0</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.mockito</groupId>
+            <artifactId>mockito-junit-jupiter</artifactId>
+            <version>5.23.0</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.airavata</groupId>
+            <artifactId>airavata-api</artifactId>
+            <version>${project.version}</version>
+            <type>test-jar</type>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.testcontainers</groupId>
+            <artifactId>testcontainers</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.testcontainers</groupId>
+            <artifactId>mariadb</artifactId>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
 </project>
diff --git a/airavata-api/pom.xml b/airavata-api/pom.xml
index bc6ccf1116..c4092af9a4 100644
--- a/airavata-api/pom.xml
+++ b/airavata-api/pom.xml
@@ -346,6 +346,18 @@ under the License.
 
   <build>
     <plugins>
+      <!-- Publish test-jar so extracted modules can reuse test utilities -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <executions>
+          <execution>
+            <goals>
+              <goal>test-jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
       <!-- Protobuf code generation -->
       <plugin>
         <groupId>io.github.ascopes</groupId>
diff --git a/airavata-api/storage-service/pom.xml 
b/airavata-api/storage-service/pom.xml
index 08a6d26466..f0839cf3f8 100644
--- a/airavata-api/storage-service/pom.xml
+++ b/airavata-api/storage-service/pom.xml
@@ -51,6 +51,20 @@ under the License.
             <artifactId>spring-boot-autoconfigure</artifactId>
             <optional>true</optional>
         </dependency>
+
+        <!-- Test dependencies -->
+        <dependency>
+            <groupId>org.mockito</groupId>
+            <artifactId>mockito-core</artifactId>
+            <version>5.23.0</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.mockito</groupId>
+            <artifactId>mockito-junit-jupiter</artifactId>
+            <version>5.23.0</version>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
 </project>

Reply via email to