Skip to content

Commit

Permalink
Fix MySqlContainerTest for compatibility
Browse files Browse the repository at this point in the history
* Upgrade Gradle to `7.3.1`
* Upgrade Log4j to `2.16.0`
  • Loading branch information
artembilan committed Dec 14, 2021
1 parent 2a3dac7 commit 9b5ebaa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ ext {
jythonVersion = '2.7.2'
kryoShadedVersion = '4.0.2'
lettuceVersion = '6.1.5.RELEASE'
log4jVersion = '2.14.1'
log4jVersion = '2.16.0'
mailVersion = '1.6.7'
micrometerVersion = '1.7.6'
mockitoVersion = '3.12.4'
Expand Down
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionSha256Sum=de8f52ad49bdc759164f72439a3bf56ddb1589c4cde802d3cec7d6ad0e0ee410
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.testcontainers.containers.MySQLContainer;
import org.testcontainers.junit.jupiter.Container;
import org.testcontainers.junit.jupiter.Testcontainers;
import org.testcontainers.utility.DockerImageName;

import org.springframework.integration.test.util.TestUtils;

Expand All @@ -34,7 +35,9 @@ public interface MySqlContainerTest {

@Container
MySQLContainer<?> MY_SQL_CONTAINER =
new MySQLContainer<>(TestUtils.dockerRegistryFromEnv() + "mysql:latest")
new MySQLContainer<>(
DockerImageName.parse(TestUtils.dockerRegistryFromEnv() + "mysql")
.asCompatibleSubstituteFor("mysql"))
.withReuse(true);


Expand Down

0 comments on commit 9b5ebaa

Please sign in to comment.