Skip to content

Commit 284eacc

Browse files
authored
Merge pull request #76 from schemacrawler/deps
Update Spring AI version and refactor code
2 parents fbc5954 + d68f4c5 commit 284eacc

File tree

22 files changed

+173
-146
lines changed

22 files changed

+173
-146
lines changed

changelog.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
SchemaCrawler AI release notes.
44

5+
<a name="v16.26.3-4"></a>
6+
## Release 16.26.3-4 - 2025-08-04
7+
8+
- Use later version of Spring AI and Spring Boot
9+
- Refactor health endpoint to show uptime
10+
11+
512
<a name="v16.26.3-3"></a>
613
## Release 16.26.3-3 - 2025-07-15
714

@@ -10,7 +17,7 @@ SchemaCrawler AI release notes.
1017
- Add logging for stdio transport
1118

1219

13-
<a name="v16.26.3-3"></a>
20+
<a name="v16.26.3-4"></a>
1421
## Release 16.26.3-2 - 2025-07-15
1522

1623
- Add additional tests, and fix startup issues

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>us.fatehi</groupId>
88
<artifactId>schemacrawler-ai-aggregator</artifactId>
9-
<version>16.26.3-3</version>
9+
<version>16.26.3-4</version>
1010
<packaging>pom</packaging>
1111
<name>SchemaCrawler AI [Aggregator]</name>
1212

schemacrawler-ai-aichat/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>us.fatehi</groupId>
66
<artifactId>schemacrawler-ai-parent</artifactId>
7-
<version>16.26.3-3</version>
7+
<version>16.26.3-4</version>
88
<relativePath>../schemacrawler-ai-parent</relativePath>
99
</parent>
1010
<artifactId>schemacrawler-ai-aichat</artifactId>

schemacrawler-ai-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>us.fatehi</groupId>
88
<artifactId>schemacrawler-ai-parent</artifactId>
9-
<version>16.26.3-3</version>
9+
<version>16.26.3-4</version>
1010
<relativePath>../schemacrawler-ai-parent</relativePath>
1111
</parent>
1212

schemacrawler-ai-distrib/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>us.fatehi</groupId>
88
<artifactId>schemacrawler-ai-parent</artifactId>
9-
<version>16.26.3-3</version>
9+
<version>16.26.3-4</version>
1010
<relativePath>../schemacrawler-ai-parent</relativePath>
1111
</parent>
1212

schemacrawler-ai-distrib/src/main/assembly/assembly-bin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
77
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
88
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
9-
http://maven.apache.org/xsd/assembly-1.1.2.xsd">
9+
https://maven.apache.org/xsd/assembly-1.1.2.xsd">
1010
<id>bin</id>
1111
<includeBaseDirectory>false</includeBaseDirectory>
1212
<fileSets>

schemacrawler-ai-distrib/src/main/assembly/assembly-lib.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
77
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
88
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
9-
http://maven.apache.org/xsd/assembly-1.1.2.xsd">
9+
https://maven.apache.org/xsd/assembly-1.1.2.xsd">
1010
<id>lib</id>
1111
<includeBaseDirectory>false</includeBaseDirectory>
1212
<dependencySets>

schemacrawler-ai-langchain4j/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>us.fatehi</groupId>
88
<artifactId>schemacrawler-ai-parent</artifactId>
9-
<version>16.26.3-3</version>
9+
<version>16.26.3-4</version>
1010
<relativePath>../schemacrawler-ai-parent</relativePath>
1111
</parent>
1212

schemacrawler-ai-mcpserver/pom.xml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>us.fatehi</groupId>
88
<artifactId>schemacrawler-ai-parent</artifactId>
9-
<version>16.26.3-3</version>
9+
<version>16.26.3-4</version>
1010
<relativePath>../schemacrawler-ai-parent</relativePath>
1111
</parent>
1212
<artifactId>schemacrawler-ai-mcpserver</artifactId>
@@ -45,7 +45,7 @@
4545
<dependency>
4646
<groupId>org.springframework.ai</groupId>
4747
<artifactId>spring-ai-bom</artifactId>
48-
<version>1.0.0</version>
48+
<version>1.0.1</version>
4949
<type>pom</type>
5050
<scope>import</scope>
5151
</dependency>
@@ -68,6 +68,20 @@
6868
<dependency>
6969
<groupId>org.springframework.ai</groupId>
7070
<artifactId>spring-ai-starter-mcp-server-webmvc</artifactId>
71+
<exclusions>
72+
<exclusion>
73+
<groupId>org.springframework.boot</groupId>
74+
<artifactId>spring-boot-starter</artifactId>
75+
</exclusion>
76+
</exclusions>
77+
</dependency>
78+
<dependency>
79+
<groupId>org.springframework.boot</groupId>
80+
<artifactId>spring-boot-starter</artifactId>
81+
</dependency>
82+
<dependency>
83+
<groupId>org.springframework.boot</groupId>
84+
<artifactId>spring-boot-starter-web</artifactId>
7185
</dependency>
7286
<!-- Test dependencies -->
7387
<dependency>
@@ -80,14 +94,15 @@
8094
<artifactId>schemacrawler-api</artifactId>
8195
<type>test-jar</type>
8296
<scope>test</scope>
83-
</dependency>
97+
</dependency>
8498
<dependency>
8599
<groupId>us.fatehi</groupId>
86100
<artifactId>schemacrawler-tools</artifactId>
87101
<type>test-jar</type>
88102
<scope>test</scope>
89-
</dependency>
103+
</dependency>
90104
<dependency>
105+
<!-- Use a version consistent with Spring Boot provided by Spring AI -->
91106
<groupId>org.springframework.boot</groupId>
92107
<artifactId>spring-boot-starter-test</artifactId>
93108
<scope>test</scope>

schemacrawler-ai-mcpserver/src/main/java/schemacrawler/tools/ai/mcpserver/DockerMcpServer.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -158,24 +158,6 @@ protected void addServerConnection(final List<String> arguments) {
158158
}
159159
}
160160

161-
/**
162-
* Checks if a string is a valid numeric value.
163-
*
164-
* @param value The string to check
165-
* @return true if the string is a valid numeric value, false otherwise
166-
*/
167-
protected boolean isValidPort(final String value) {
168-
if (isBlank(value)) {
169-
return false;
170-
}
171-
try {
172-
final int port = Integer.parseInt(value);
173-
return port > 1023 && port < 65536;
174-
} catch (final NumberFormatException e) {
175-
return false;
176-
}
177-
}
178-
179161
/**
180162
* Checks if a string is a valid SchemaCrawler database plugin.
181163
*
@@ -229,6 +211,24 @@ protected boolean isValidLogLevel(final String logLevel) {
229211
return false;
230212
}
231213
}
214+
215+
/**
216+
* Checks if a string is a valid numeric value.
217+
*
218+
* @param value The string to check
219+
* @return true if the string is a valid numeric value, false otherwise
220+
*/
221+
protected boolean isValidPort(final String value) {
222+
if (isBlank(value)) {
223+
return false;
224+
}
225+
try {
226+
final int port = Integer.parseInt(value);
227+
return port > 1023 && port < 65536;
228+
} catch (final NumberFormatException e) {
229+
return false;
230+
}
231+
}
232232
}
233233

234234
/**

0 commit comments

Comments
 (0)