diff --git a/spring-test/src/main/java/org/springframework/test/context/jdbc/Sql.java b/spring-test/src/main/java/org/springframework/test/context/jdbc/Sql.java index 546256efa6c..861bcf06f93 100644 --- a/spring-test/src/main/java/org/springframework/test/context/jdbc/Sql.java +++ b/spring-test/src/main/java/org/springframework/test/context/jdbc/Sql.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -57,6 +57,9 @@ import org.springframework.core.annotation.AliasFor; * {@link org.springframework.test.context.NestedTestConfiguration @NestedTestConfiguration} * for details. * + *

Use of this annotation requires that that the {@code spring-jdbc} and + * {@code spring-tx} modules be present in the classpath. + * * @author Sam Brannen * @since 4.1 * @see SqlConfig diff --git a/spring-test/src/main/java/org/springframework/test/context/jdbc/SqlScriptsTestExecutionListener.java b/spring-test/src/main/java/org/springframework/test/context/jdbc/SqlScriptsTestExecutionListener.java index 8443255d506..466774f64a2 100644 --- a/spring-test/src/main/java/org/springframework/test/context/jdbc/SqlScriptsTestExecutionListener.java +++ b/spring-test/src/main/java/org/springframework/test/context/jdbc/SqlScriptsTestExecutionListener.java @@ -92,6 +92,10 @@ import static org.springframework.util.ResourceUtils.CLASSPATH_URL_PREFIX; * on permissible configuration constellations and on the algorithms used to * locate these beans. * + *

Required Dependencies

+ *

Use of this listener requires that that the {@code spring-jdbc} and + * {@code spring-tx} modules be present in the classpath. + * * @author Sam Brannen * @author Dmitry Semukhin * @since 4.1