Deprecate Derby support since Apache Derby is retired

Closes gh-48567
This commit is contained in:
Stéphane Nicoll
2025-12-30 17:36:53 +01:00
parent 4d402513d7
commit 12652a313e
8 changed files with 31 additions and 5 deletions
@@ -119,6 +119,10 @@ public final class DevToolsDataSourceAutoConfiguration {
private enum InMemoryDatabase {
/*
* @deprecated since 4.1.0 for removal in 4.3.0 as Derby is EOL.
*/
@Deprecated(since = "4.1.0", forRemoval = true)
DERBY(null, Set.of("org.apache.derby.jdbc.EmbeddedDriver"), (dataSource) -> {
String url;
try (Connection connection = dataSource.getConnection()) {
@@ -120,6 +120,7 @@ class DevToolsPooledDataSourceAutoConfigurationTests extends AbstractDevToolsDat
}
@Test
@Deprecated(since = "4.1.0", forRemoval = true)
void derbyClientIsNotShutdown() throws Exception {
try (ConfigurableApplicationContext context = getContext(
() -> createContext("org.apache.derby.jdbc.ClientDriver", "jdbc:derby://localhost",
@@ -131,6 +132,7 @@ class DevToolsPooledDataSourceAutoConfigurationTests extends AbstractDevToolsDat
}
@Test
@Deprecated(since = "4.1.0", forRemoval = true)
void inMemoryDerbyIsShutdown() throws Exception {
try (ConfigurableApplicationContext context = getContext(
() -> createContext("org.apache.derby.jdbc.EmbeddedDriver", "jdbc:derby:memory:test;create=true",