Skip to content

Commit 1dd12ab

Browse files
authored
Merge branch 'spring-projects:main' into main
2 parents 9016016 + 3e17e16 commit 1dd12ab

File tree

63 files changed

+1003
-140
lines changed

Some content is hidden

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

63 files changed

+1003
-140
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.checkstyle
12
target
23
.classpath
34
.project

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ To clone it you have to either:
6565

6666
## Building
6767

68+
Build using Java 17.
69+
6870
To build with running unit tests
6971

7072
```shell
@@ -101,9 +103,10 @@ A full integration test is done twice a day in the [Spring AI Integration Test R
101103
One way to run integration tests on part of the code is to first do a quick compile and install of the project
102104

103105
```shell
104-
./mvnw clean install -DskipTests -Dmaven.javadoc.skip=true
106+
./mvnw spring-javaformat:apply clean install -DskipTests -Dmaven.javadoc.skip=true
105107
```
106108
Then run the integration test for a specific module using the `-pl` option
109+
107110
```shell
108111
./mvnw verify -Pintegration-tests -pl spring-ai-spring-boot-testcontainers
109112
```

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
<dependency>
8484
<groupId>org.testcontainers</groupId>
8585
<artifactId>junit-jupiter</artifactId>
86-
<version>${testcontainers.version}</version>
8786
<scope>test</scope>
8887
</dependency>
8988
</dependencies>

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
<dependency>
9090
<groupId>org.testcontainers</groupId>
9191
<artifactId>junit-jupiter</artifactId>
92-
<version>${testcontainers.version}</version>
9392
<scope>test</scope>
9493
</dependency>
9594
</dependencies>

auto-configurations/mcp/spring-ai-autoconfigure-mcp-server-common/src/main/java/org/springframework/ai/mcp/server/common/autoconfigure/properties/McpServerChangeNotificationProperties.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
/**
2222
* @author Christian Tzolov
23+
* @see org.springframework.ai.mcp.server.common.autoconfigure.McpServerAutoConfiguration
2324
*/
2425
@ConfigurationProperties(McpServerChangeNotificationProperties.CONFIG_PREFIX)
2526
public class McpServerChangeNotificationProperties {

auto-configurations/mcp/spring-ai-autoconfigure-mcp-server-common/src/main/java/org/springframework/ai/mcp/server/common/autoconfigure/properties/McpServerProperties.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.util.HashMap;
2121
import java.util.Map;
2222

23-
import org.springframework.ai.mcp.server.common.autoconfigure.McpServerAutoConfiguration;
2423
import org.springframework.boot.context.properties.ConfigurationProperties;
2524
import org.springframework.util.Assert;
2625

@@ -38,7 +37,10 @@
3837
*
3938
* @author Christian Tzolov
4039
* @since 1.0.0
41-
* @see McpServerAutoConfiguration
40+
* @see org.springframework.ai.mcp.server.common.autoconfigure.McpServerAutoConfiguration
41+
* @see org.springframework.ai.mcp.server.common.autoconfigure.McpServerStatelessAutoConfiguration
42+
* @see org.springframework.ai.mcp.server.common.autoconfigure.StatelessToolCallbackConverterAutoConfiguration
43+
* @see org.springframework.ai.mcp.server.common.autoconfigure.ToolCallbackConverterAutoConfiguration
4244
*/
4345
@ConfigurationProperties(McpServerProperties.CONFIG_PREFIX)
4446
public class McpServerProperties {

auto-configurations/mcp/spring-ai-autoconfigure-mcp-server-webflux/src/main/java/org/springframework/ai/mcp/server/autoconfigure/McpServerSseWebFluxAutoConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
import org.springframework.ai.mcp.server.common.autoconfigure.McpServerAutoConfiguration;
2424
import org.springframework.ai.mcp.server.common.autoconfigure.McpServerStdioDisabledCondition;
25-
import org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerProperties;
2625
import org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerSseProperties;
2726
import org.springframework.beans.factory.ObjectProvider;
2827
import org.springframework.boot.autoconfigure.AutoConfiguration;
@@ -70,7 +69,7 @@
7069
* @author Christian Tzolov
7170
* @author Yanming Zhou
7271
* @since 1.0.0
73-
* @see McpServerProperties
72+
* @see McpServerSseProperties
7473
* @see WebFluxSseServerTransportProvider
7574
*/
7675
@AutoConfiguration(before = McpServerAutoConfiguration.class)

auto-configurations/mcp/spring-ai-autoconfigure-mcp-server-webmvc/src/main/java/org/springframework/ai/mcp/server/autoconfigure/McpServerSseWebMvcAutoConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
import org.springframework.ai.mcp.server.common.autoconfigure.McpServerAutoConfiguration;
2424
import org.springframework.ai.mcp.server.common.autoconfigure.McpServerStdioDisabledCondition;
25-
import org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerProperties;
2625
import org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerSseProperties;
2726
import org.springframework.beans.factory.ObjectProvider;
2827
import org.springframework.boot.autoconfigure.AutoConfiguration;
@@ -63,7 +62,7 @@
6362
* @author Christian Tzolov
6463
* @author Yanming Zhou
6564
* @since 1.0.0
66-
* @see McpServerProperties
65+
* @see McpServerSseProperties
6766
* @see WebMvcSseServerTransportProvider
6867
*/
6968
@AutoConfiguration(before = McpServerAutoConfiguration.class)

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
<dependency>
6464
<groupId>org.postgresql</groupId>
6565
<artifactId>postgresql</artifactId>
66-
<version>${postgresql.version}</version>
6766
<scope>test</scope>
6867
</dependency>
6968

@@ -93,7 +92,7 @@
9392
<dependency>
9493
<groupId>org.hsqldb</groupId>
9594
<artifactId>hsqldb</artifactId>
96-
<scope>runtime</scope>
95+
<scope>test</scope>
9796
</dependency>
9897
</dependencies>
9998

auto-configurations/models/spring-ai-autoconfigure-model-bedrock-ai/src/main/java/org/springframework/ai/model/bedrock/cohere/autoconfigure/BedrockCohereEmbeddingProperties.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ public class BedrockCohereEmbeddingProperties {
3434

3535
public static final String CONFIG_PREFIX = "spring.ai.bedrock.cohere.embedding";
3636

37+
/**
38+
* whether Cohere functionality should be enabled.
39+
*/
40+
private boolean enabled;
41+
3742
/**
3843
* Bedrock Cohere Embedding generative name. Defaults to
3944
* 'cohere.embed-multilingual-v3'.
@@ -62,4 +67,12 @@ public void setOptions(BedrockCohereEmbeddingOptions options) {
6267
this.options = options;
6368
}
6469

70+
public boolean isEnabled() {
71+
return this.enabled;
72+
}
73+
74+
public void setEnabled(boolean enabled) {
75+
this.enabled = enabled;
76+
}
77+
6578
}

0 commit comments

Comments
 (0)