Skip to content

Commit 5bd2607

Browse files
committed
Polish POM files
- Use Maven transitivity to obtain test dependencies from spring-ai-test module - Use Maven transitivity to obtain testcontainers dependency - Add missing test scopes - Use Oracle JDBC driver version managed by Spring Boot - Use variable for Redis Testcontainers version - Add missing license headers Signed-off-by: Nicolas Krier <[email protected]>
1 parent a7c37b4 commit 5bd2607

File tree

105 files changed

+831
-1249
lines changed
  • auto-configurations
    • common/spring-ai-autoconfigure-retry
    • mcp
      • spring-ai-autoconfigure-mcp-client-common
      • spring-ai-autoconfigure-mcp-client-httpclient
      • spring-ai-autoconfigure-mcp-client-webflux
      • spring-ai-autoconfigure-mcp-server-common
      • spring-ai-autoconfigure-mcp-server-webflux
      • spring-ai-autoconfigure-mcp-server-webmvc
    • models
      • chat
        • client/spring-ai-autoconfigure-model-chat-client
        • memory
          • repository
            • spring-ai-autoconfigure-model-chat-memory-repository-cassandra
            • spring-ai-autoconfigure-model-chat-memory-repository-cosmos-db
            • spring-ai-autoconfigure-model-chat-memory-repository-jdbc
            • spring-ai-autoconfigure-model-chat-memory-repository-mongodb
            • spring-ai-autoconfigure-model-chat-memory-repository-neo4j
          • spring-ai-autoconfigure-model-chat-memory-redis
          • spring-ai-autoconfigure-model-chat-memory
        • observation/spring-ai-autoconfigure-model-chat-observation
      • embedding/observation/spring-ai-autoconfigure-model-embedding-observation
      • image/observation/spring-ai-autoconfigure-model-image-observation
      • spring-ai-autoconfigure-model-anthropic
      • spring-ai-autoconfigure-model-azure-openai
      • spring-ai-autoconfigure-model-bedrock-ai
      • spring-ai-autoconfigure-model-deepseek
      • spring-ai-autoconfigure-model-elevenlabs
      • spring-ai-autoconfigure-model-google-genai
      • spring-ai-autoconfigure-model-huggingface
      • spring-ai-autoconfigure-model-minimax
      • spring-ai-autoconfigure-model-mistral-ai
      • spring-ai-autoconfigure-model-oci-genai
      • spring-ai-autoconfigure-model-ollama
      • spring-ai-autoconfigure-model-openai-sdk
      • spring-ai-autoconfigure-model-openai
      • spring-ai-autoconfigure-model-postgresml-embedding
      • spring-ai-autoconfigure-model-stability-ai
      • spring-ai-autoconfigure-model-transformers
      • spring-ai-autoconfigure-model-vertex-ai
      • spring-ai-autoconfigure-model-zhipuai
      • tool/spring-ai-autoconfigure-model-tool
    • vector-stores
      • spring-ai-autoconfigure-vector-store-azure-cosmos-db
      • spring-ai-autoconfigure-vector-store-azure
      • spring-ai-autoconfigure-vector-store-cassandra
      • spring-ai-autoconfigure-vector-store-chroma
      • spring-ai-autoconfigure-vector-store-couchbase
      • spring-ai-autoconfigure-vector-store-elasticsearch
      • spring-ai-autoconfigure-vector-store-gemfire
      • spring-ai-autoconfigure-vector-store-mariadb
      • spring-ai-autoconfigure-vector-store-milvus
      • spring-ai-autoconfigure-vector-store-mongodb-atlas
      • spring-ai-autoconfigure-vector-store-neo4j
      • spring-ai-autoconfigure-vector-store-observation
      • spring-ai-autoconfigure-vector-store-opensearch
      • spring-ai-autoconfigure-vector-store-oracle
      • spring-ai-autoconfigure-vector-store-pgvector
      • spring-ai-autoconfigure-vector-store-pinecone
      • spring-ai-autoconfigure-vector-store-qdrant
      • spring-ai-autoconfigure-vector-store-redis
      • spring-ai-autoconfigure-vector-store-typesense
      • spring-ai-autoconfigure-vector-store-weaviate
  • mcp
  • memory/repository
    • spring-ai-model-chat-memory-repository-cassandra
    • spring-ai-model-chat-memory-repository-cosmos-db
    • spring-ai-model-chat-memory-repository-jdbc
    • spring-ai-model-chat-memory-repository-mongodb
    • spring-ai-model-chat-memory-repository-neo4j
    • spring-ai-model-chat-memory-repository-redis
  • models
  • spring-ai-spring-boot-docker-compose
  • spring-ai-spring-boot-testcontainers
  • spring-ai-test
  • vector-stores

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+831
-1249
lines changed

auto-configurations/common/spring-ai-autoconfigure-retry/pom.xml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2025-2025 the original author or authors.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ https://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
218
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
319
xmlns="http://maven.apache.org/POM/4.0.0"
420
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@@ -21,9 +37,7 @@
2137
<developerConnection>[email protected]:spring-projects/spring-ai.git</developerConnection>
2238
</scm>
2339

24-
2540
<dependencies>
26-
2741
<dependency>
2842
<groupId>org.springframework.ai</groupId>
2943
<artifactId>spring-ai-retry</artifactId>
@@ -56,22 +70,11 @@
5670
<scope>test</scope>
5771
</dependency>
5872

59-
<dependency>
60-
<groupId>org.springframework.boot</groupId>
61-
<artifactId>spring-boot-starter-test</artifactId>
62-
<scope>test</scope>
63-
</dependency>
6473
<dependency>
6574
<groupId>org.springframework.boot</groupId>
6675
<artifactId>spring-boot-starter-restclient-test</artifactId>
6776
<scope>test</scope>
6877
</dependency>
69-
70-
<dependency>
71-
<groupId>org.mockito</groupId>
72-
<artifactId>mockito-core</artifactId>
73-
<scope>test</scope>
74-
</dependency>
7578
</dependencies>
7679

7780
</project>

auto-configurations/mcp/spring-ai-autoconfigure-mcp-client-common/pom.xml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2025-2025 the original author or authors.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ https://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
218
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
319
xmlns="http://maven.apache.org/POM/4.0.0"
420
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@@ -61,18 +77,6 @@
6177
<version>${project.parent.version}</version>
6278
<scope>test</scope>
6379
</dependency>
64-
65-
<dependency>
66-
<groupId>org.springframework.boot</groupId>
67-
<artifactId>spring-boot-starter-test</artifactId>
68-
<scope>test</scope>
69-
</dependency>
70-
71-
<dependency>
72-
<groupId>org.mockito</groupId>
73-
<artifactId>mockito-core</artifactId>
74-
<scope>test</scope>
75-
</dependency>
7680
</dependencies>
7781

7882
</project>

auto-configurations/mcp/spring-ai-autoconfigure-mcp-client-httpclient/pom.xml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2025-2025 the original author or authors.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ https://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
218
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
319
xmlns="http://maven.apache.org/POM/4.0.0"
420
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@@ -67,18 +83,6 @@
6783
<version>${project.parent.version}</version>
6884
<scope>test</scope>
6985
</dependency>
70-
71-
<dependency>
72-
<groupId>org.springframework.boot</groupId>
73-
<artifactId>spring-boot-starter-test</artifactId>
74-
<scope>test</scope>
75-
</dependency>
76-
77-
<dependency>
78-
<groupId>org.mockito</groupId>
79-
<artifactId>mockito-core</artifactId>
80-
<scope>test</scope>
81-
</dependency>
8286

8387
<dependency>
8488
<groupId>org.testcontainers</groupId>

auto-configurations/mcp/spring-ai-autoconfigure-mcp-client-webflux/pom.xml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2025-2025 the original author or authors.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ https://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
218
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
319
xmlns="http://maven.apache.org/POM/4.0.0"
420
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@@ -74,18 +90,6 @@
7490
<scope>test</scope>
7591
</dependency>
7692

77-
<dependency>
78-
<groupId>org.springframework.boot</groupId>
79-
<artifactId>spring-boot-starter-test</artifactId>
80-
<scope>test</scope>
81-
</dependency>
82-
83-
<dependency>
84-
<groupId>org.mockito</groupId>
85-
<artifactId>mockito-core</artifactId>
86-
<scope>test</scope>
87-
</dependency>
88-
8993
<dependency>
9094
<groupId>org.testcontainers</groupId>
9195
<artifactId>testcontainers-junit-jupiter</artifactId>

auto-configurations/mcp/spring-ai-autoconfigure-mcp-server-common/pom.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2025-2025 the original author or authors.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ https://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
218
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
319
xmlns="http://maven.apache.org/POM/4.0.0"
420
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@@ -42,7 +58,6 @@
4258
<optional>true</optional>
4359
</dependency>
4460

45-
4661
<dependency>
4762
<groupId>org.springframework</groupId>
4863
<artifactId>spring-web</artifactId>

auto-configurations/mcp/spring-ai-autoconfigure-mcp-server-webflux/pom.xml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2025-2025 the original author or authors.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ https://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
218
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
319
xmlns="http://maven.apache.org/POM/4.0.0"
420
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@@ -100,6 +116,7 @@
100116
<artifactId>spring-boot-starter-restclient</artifactId>
101117
<scope>test</scope>
102118
</dependency>
119+
103120
<dependency>
104121
<groupId>org.springframework.boot</groupId>
105122
<artifactId>spring-boot-starter-webclient</artifactId>
@@ -126,13 +143,6 @@
126143
<version>${project.parent.version}</version>
127144
<scope>test</scope>
128145
</dependency>
129-
130-
<dependency>
131-
<groupId>org.awaitility</groupId>
132-
<artifactId>awaitility</artifactId>
133-
<scope>test</scope>
134-
</dependency>
135-
136146
</dependencies>
137147

138148
</project>

auto-configurations/mcp/spring-ai-autoconfigure-mcp-server-webmvc/pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2025-2025 the original author or authors.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ https://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
218
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
319
xmlns="http://maven.apache.org/POM/4.0.0"
420
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

auto-configurations/models/chat/client/spring-ai-autoconfigure-model-chat-client/pom.xml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2025-2025 the original author or authors.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ https://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
218
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
319
xmlns="http://maven.apache.org/POM/4.0.0"
420
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@@ -61,18 +77,6 @@
6177
<version>${project.parent.version}</version>
6278
<scope>test</scope>
6379
</dependency>
64-
65-
<dependency>
66-
<groupId>org.springframework.boot</groupId>
67-
<artifactId>spring-boot-starter-test</artifactId>
68-
<scope>test</scope>
69-
</dependency>
70-
71-
<dependency>
72-
<groupId>org.mockito</groupId>
73-
<artifactId>mockito-core</artifactId>
74-
<scope>test</scope>
75-
</dependency>
7680
</dependencies>
7781

7882
</project>

auto-configurations/models/chat/memory/repository/spring-ai-autoconfigure-model-chat-memory-repository-cassandra/pom.xml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2025-2025 the original author or authors.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ https://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
218
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
319
xmlns="http://maven.apache.org/POM/4.0.0"
420
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@@ -79,12 +95,6 @@
7995
<scope>test</scope>
8096
</dependency>
8197

82-
<dependency>
83-
<groupId>org.springframework.boot</groupId>
84-
<artifactId>spring-boot-starter-test</artifactId>
85-
<scope>test</scope>
86-
</dependency>
87-
8898
<dependency>
8999
<groupId>org.testcontainers</groupId>
90100
<artifactId>testcontainers-junit-jupiter</artifactId>
@@ -96,12 +106,6 @@
96106
<artifactId>testcontainers-cassandra</artifactId>
97107
<scope>test</scope>
98108
</dependency>
99-
100-
<dependency>
101-
<groupId>org.mockito</groupId>
102-
<artifactId>mockito-core</artifactId>
103-
<scope>test</scope>
104-
</dependency>
105109
</dependencies>
106110

107111
</project>

auto-configurations/models/chat/memory/repository/spring-ai-autoconfigure-model-chat-memory-repository-cosmos-db/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@
8787
</dependency>
8888

8989
<!-- Test dependencies -->
90-
<dependency>
91-
<groupId>org.springframework.boot</groupId>
92-
<artifactId>spring-boot-starter-test</artifactId>
93-
<scope>test</scope>
94-
</dependency>
95-
9690
<dependency>
9791
<groupId>org.springframework.ai</groupId>
9892
<artifactId>spring-ai-test</artifactId>

0 commit comments

Comments
 (0)