Skip to content

Commit

Permalink
upgrade outdated and vulnerable dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tomix26 committed Aug 21, 2022
1 parent 49be30c commit 8317959
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 75 deletions.
133 changes: 58 additions & 75 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,84 +16,64 @@ ext {
]],
[name: 'spring', versions: [
[name: '4.3.8', spring: '4.3.8.RELEASE', 'zonky-postgres': 'default', opentable: 'default', yandex: 'default', 'mssql-driver': 'default', 'mysql-driver': 'default', 'mariadb-driver': 'default', 'h2': 'default'],
[name: '4.3.29', spring: '4.3.29.RELEASE', 'zonky-postgres': 'default', opentable: 'default', yandex: 'default', 'mssql-driver': 'default', 'mysql-driver': 'default', 'mariadb-driver': 'default', 'h2': 'default'],
[name: '5.0.19', spring: '5.0.19.RELEASE', 'zonky-postgres': 'default', opentable: 'default', yandex: 'default', 'mssql-driver': 'default', 'mysql-driver': 'default', 'mariadb-driver': 'default', 'h2': 'default'],
[name: '5.1.19', spring: '5.1.19.RELEASE', 'zonky-postgres': 'default', opentable: 'default', yandex: 'default', 'mssql-driver': 'default', 'mysql-driver': 'default', 'mariadb-driver': 'default', 'h2': 'default'],
[name: '5.2.12', spring: '5.2.12.RELEASE', 'zonky-postgres': 'default', opentable: 'default', yandex: 'default', 'mssql-driver': 'default', 'mysql-driver': 'default', 'mariadb-driver': 'default', 'h2': 'default'],
[name: '5.3.10', spring: '5.3.10', 'zonky-postgres': 'default', opentable: 'default', yandex: 'default', 'mssql-driver': 'default', 'mysql-driver': 'default', 'mariadb-driver': 'default', 'h2': 'default']
[name: '4.3.30', spring: '4.3.30.RELEASE', 'zonky-postgres': 'default', opentable: 'default', yandex: 'default', 'mssql-driver': 'default', 'mysql-driver': 'default', 'mariadb-driver': 'default', 'h2': 'default'],
[name: '5.0.20', spring: '5.0.20.RELEASE', 'zonky-postgres': 'default', opentable: 'default', yandex: 'default', 'mssql-driver': 'default', 'mysql-driver': 'default', 'mariadb-driver': 'default', 'h2': 'default'],
[name: '5.1.20', spring: '5.1.20.RELEASE', 'zonky-postgres': 'default', opentable: 'default', yandex: 'default', 'mssql-driver': 'default', 'mysql-driver': 'default', 'mariadb-driver': 'default', 'h2': 'default'],
[name: '5.2.22', spring: '5.2.22.RELEASE', 'zonky-postgres': 'default', opentable: 'default', yandex: 'default', 'mssql-driver': 'default', 'mysql-driver': 'default', 'mariadb-driver': 'default', 'h2': 'default'],
[name: '5.3.22', spring: '5.3.22', 'zonky-postgres': 'default', opentable: 'default', yandex: 'default', 'mssql-driver': 'default', 'mysql-driver': 'default', 'mariadb-driver': 'default', 'h2': 'default']
]],
[name: 'flyway', versions: [
[name: '4.0.3', flyway: '4.0.3', 'flyway-test': '4.0.1', spring: '4.3.25.RELEASE', 'spring-boot': '1.5.22.RELEASE', 'zonky-postgres': 'default'],
[name: '4.1.2', flyway: '4.1.2', 'flyway-test': '4.1.0', spring: '4.3.25.RELEASE', 'spring-boot': '1.5.22.RELEASE', 'zonky-postgres': 'default'],
[name: '4.2.0', flyway: '4.2.0', 'flyway-test': '4.2.0.2', spring: '4.3.25.RELEASE', 'spring-boot': '1.5.22.RELEASE', 'zonky-postgres': 'default'],
[name: '5.0.7', flyway: '5.0.7', 'flyway-test': '5.0.0', spring: '5.0.13.RELEASE', 'spring-boot': '2.0.9.RELEASE', 'zonky-postgres': 'default'],
[name: '5.1.4', flyway: '5.1.4', 'flyway-test': '5.1.0', spring: '5.0.13.RELEASE', 'spring-boot': '2.0.9.RELEASE', 'zonky-postgres': 'default'],
[name: '5.2.4', flyway: '5.2.4', 'flyway-test': '5.2.4', spring: '5.1.19.RELEASE', 'spring-boot': '2.1.18.RELEASE', 'zonky-postgres': 'default'],
[name: '6.0.6', flyway: '6.0.6', 'flyway-test': '6.0.0', spring: '5.2.12.RELEASE', 'spring-boot': '2.2.13.RELEASE', 'zonky-postgres': 'default'],
[name: '6.0.8', flyway: '6.0.8', 'flyway-test': '6.0.0', spring: '5.2.12.RELEASE', 'spring-boot': '2.2.13.RELEASE', 'zonky-postgres': 'default'],
[name: '6.1.4', flyway: '6.1.4', 'flyway-test': '6.1.0', spring: '5.2.12.RELEASE', 'spring-boot': '2.2.13.RELEASE', 'zonky-postgres': 'default'],
[name: '6.2.4', flyway: '6.2.4', 'flyway-test': '6.1.0', spring: '5.2.12.RELEASE', 'spring-boot': '2.2.13.RELEASE', 'zonky-postgres': 'default'],
[name: '6.3.2', flyway: '6.3.2', 'flyway-test': '6.1.0', spring: '5.2.12.RELEASE', 'spring-boot': '2.2.13.RELEASE', 'zonky-postgres': 'default'],
[name: '6.3.3', flyway: '6.3.3', 'flyway-test': '6.3.3', spring: '5.2.12.RELEASE', 'spring-boot': '2.2.13.RELEASE', 'zonky-postgres': 'default'],
[name: '6.4.4', flyway: '6.4.4', 'flyway-test': '6.4.0', spring: '5.2.12.RELEASE', 'spring-boot': '2.2.13.RELEASE', 'zonky-postgres': 'default'],
[name: '6.5.7', flyway: '6.5.7', 'flyway-test': '6.4.0', spring: '5.2.12.RELEASE', 'spring-boot': '2.2.13.RELEASE', 'zonky-postgres': 'default'],
[name: '7.0.4', flyway: '7.0.4', 'flyway-test': '7.0.0', spring: '5.3.10', 'spring-boot': '2.4.11', 'zonky-postgres': 'default'],
[name: '7.1.1', flyway: '7.1.1', 'flyway-test': '7.0.0', spring: '5.3.10', 'spring-boot': '2.4.11', 'zonky-postgres': 'default'],
[name: '7.2.1', flyway: '7.2.1', 'flyway-test': '7.0.0', spring: '5.3.10', 'spring-boot': '2.4.11', 'zonky-postgres': 'default'],
[name: '7.3.2', flyway: '7.3.2', 'flyway-test': '7.0.0', spring: '5.3.10', 'spring-boot': '2.4.11', 'zonky-postgres': 'default'],
[name: '7.4.0', flyway: '7.4.0', 'flyway-test': '7.0.0', spring: '5.3.10', 'spring-boot': '2.4.11', 'zonky-postgres': 'default'],
[name: '7.5.4', flyway: '7.5.4', 'flyway-test': '7.0.0', spring: '5.3.10', 'spring-boot': '2.4.11', 'zonky-postgres': 'default'],
[name: '7.6.0', flyway: '7.6.0', 'flyway-test': '7.0.0', spring: '5.3.10', 'spring-boot': '2.4.11', 'zonky-postgres': 'default'],
[name: '7.7.3', flyway: '7.7.3', 'flyway-test': '7.0.0', spring: '5.3.10', 'spring-boot': '2.5.5', 'zonky-postgres': 'default'],
[name: '7.8.2', flyway: '7.8.2', 'flyway-test': '7.0.0', spring: '5.3.10', 'spring-boot': '2.5.5', 'zonky-postgres': 'default'],
[name: '7.9.2', flyway: '7.9.2', 'flyway-test': '7.0.0', spring: '5.3.10', 'spring-boot': '2.5.5', 'zonky-postgres': 'default'],
[name: '7.10.0', flyway: '7.10.0', 'flyway-test': '7.0.0', spring: '5.3.10', 'spring-boot': '2.5.5', 'zonky-postgres': 'default'],
[name: '7.11.4', flyway: '7.11.4', 'flyway-test': '7.0.0', spring: '5.3.10', 'spring-boot': '2.5.5', 'zonky-postgres': 'default'],
[name: '7.12.1', flyway: '7.12.1', 'flyway-test': '7.0.0', spring: '5.3.10', 'spring-boot': '2.5.5', 'zonky-postgres': 'default'],
[name: '7.13.0', flyway: '7.13.0', 'flyway-test': '7.0.0', spring: '5.3.10', 'spring-boot': '2.5.5', 'zonky-postgres': 'default'],
[name: '4.0.3', flyway: '4.0.3', 'flyway-test': '4.0.1', spring: '4.3.30.RELEASE', 'spring-boot': '1.5.22.RELEASE', 'zonky-postgres': 'default'],
[name: '4.1.2', flyway: '4.1.2', 'flyway-test': '4.1.0', spring: '4.3.30.RELEASE', 'spring-boot': '1.5.22.RELEASE', 'zonky-postgres': 'default'],
[name: '4.2.0', flyway: '4.2.0', 'flyway-test': '4.2.0.2', spring: '4.3.30.RELEASE', 'spring-boot': '1.5.22.RELEASE', 'zonky-postgres': 'default'],
[name: '5.0.7', flyway: '5.0.7', 'flyway-test': '5.0.0', spring: '5.0.20.RELEASE', 'spring-boot': '2.0.9.RELEASE', 'zonky-postgres': 'default'],
[name: '5.1.4', flyway: '5.1.4', 'flyway-test': '5.1.0', spring: '5.0.20.RELEASE', 'spring-boot': '2.0.9.RELEASE', 'zonky-postgres': 'default'],
[name: '5.2.4', flyway: '5.2.4', 'flyway-test': '5.2.4', spring: '5.1.20.RELEASE', 'spring-boot': '2.1.18.RELEASE', 'zonky-postgres': 'default'],
[name: '6.0.7', flyway: '6.0.6', 'flyway-test': '6.0.0', spring: '5.2.22.RELEASE', 'spring-boot': '2.2.13.RELEASE', 'zonky-postgres': 'default'],
[name: '6.3.3', flyway: '6.3.3', 'flyway-test': '6.3.3', spring: '5.2.22.RELEASE', 'spring-boot': '2.2.13.RELEASE', 'zonky-postgres': 'default'],
[name: '6.5.7', flyway: '6.5.7', 'flyway-test': '6.4.0', spring: '5.2.22.RELEASE', 'spring-boot': '2.2.13.RELEASE', 'zonky-postgres': 'default'],
[name: '7.6.0', flyway: '7.6.0', 'flyway-test': '7.0.0', spring: '5.3.22', 'spring-boot': '2.4.13', 'zonky-postgres': 'default'],
[name: '7.15.0', flyway: '7.15.0', 'flyway-test': '7.0.0', spring: '5.3.22', 'spring-boot': '2.5.14', 'zonky-postgres': 'default'],
// [name: '8.0.5', flyway: '8.0.5', 'flyway-test': '7.0.0', spring: '5.3.22', 'spring-boot': '2.6.11', 'zonky-postgres': 'default'],
// [name: '8.5.13', flyway: '8.5.13', 'flyway-test': '7.0.0', spring: '5.3.22', 'spring-boot': '2.7.3', 'zonky-postgres': 'default'],
[name: 'no_sb', flyway: 'default', 'flyway-test': 'default', 'zonky-postgres': 'default']
]],
[name: 'liquibase', versions: [
[name: '3.5.5', liquibase: '3.5.5', spring: '4.3.25.RELEASE', 'spring-boot': '1.5.22.RELEASE'],
[name: '3.6.3', liquibase: '3.6.3', spring: '5.1.19.RELEASE', 'spring-boot': '2.1.18.RELEASE'],
[name: '3.7.0', liquibase: '3.7.0', spring: '5.1.19.RELEASE', 'spring-boot': '2.1.18.RELEASE'],
[name: '3.8.9', liquibase: '3.8.9', spring: '5.2.12.RELEASE', 'spring-boot': '2.2.13.RELEASE'],
[name: '3.9.0', liquibase: '3.9.0', spring: '5.2.12.RELEASE', 'spring-boot': '2.2.13.RELEASE'],
[name: '3.10.3', liquibase: '3.10.3', spring: '5.3.10', 'spring-boot': '2.4.11'],
[name: '4.0.0', liquibase: '4.0.0', spring: '5.3.10', 'spring-boot': '2.4.11'],
[name: '4.1.1', liquibase: '4.1.1', spring: '5.3.10', 'spring-boot': '2.4.11'],
[name: '4.2.2', liquibase: '4.2.2', spring: '5.3.10', 'spring-boot': '2.4.11'],
[name: '4.3.5', liquibase: '4.3.5', spring: '5.3.10', 'spring-boot': '2.5.5'],
[name: '4.4.3', liquibase: '4.4.3', spring: '5.3.10', 'spring-boot': '2.5.5'],
[name: '4.5.0', liquibase: '4.5.0', spring: '5.3.10', 'spring-boot': '2.5.5'],
[name: '3.5.5', liquibase: '3.5.5', spring: '4.3.30.RELEASE', 'spring-boot': '1.5.22.RELEASE'],
[name: '3.6.3', liquibase: '3.6.3', spring: '5.1.20.RELEASE', 'spring-boot': '2.1.18.RELEASE'],
[name: '3.7.0', liquibase: '3.7.0', spring: '5.1.20.RELEASE', 'spring-boot': '2.1.18.RELEASE'],
[name: '3.8.9', liquibase: '3.8.9', spring: '5.2.22.RELEASE', 'spring-boot': '2.2.13.RELEASE'],
[name: '3.9.0', liquibase: '3.9.0', spring: '5.2.22.RELEASE', 'spring-boot': '2.2.13.RELEASE'],
[name: '3.10.3', liquibase: '3.10.3', spring: '5.3.22', 'spring-boot': '2.4.13'],
[name: '4.4.3', liquibase: '4.4.3', spring: '5.3.22', 'spring-boot': '2.5.14'],
[name: '4.5.0', liquibase: '4.5.0', spring: '5.3.22', 'spring-boot': '2.6.11'],
[name: '4.9.1', liquibase: '4.9.1', spring: '5.3.22', 'spring-boot': '2.7.3'],
[name: 'no_sb', liquibase: 'default']
]],
[name: 'postgres', versions: [
[name: '9.5', postgres: '9.5.20', 'zonky-postgres': '9.5.20-1', opentable: '0.12.8', yandex: 'default'],
[name: '9.6', postgres: '9.6.16', 'zonky-postgres': '9.6.16-1', opentable: '0.12.8', yandex: 'default'],
[name: '10', postgres: '10.11', 'zonky-postgres': '10.11.0-1', opentable: '0.13.3', yandex: 'default'],
[name: '11', postgres: '11.6', 'zonky-postgres': '11.6.0-1', opentable: 'default', yandex: 'default'],
[name: '12', postgres: '12.1', 'zonky-postgres': '12.1.0-1', opentable: 'default', yandex: 'default']
[name: '10', postgres: '10.22', 'zonky-postgres': '10.22.0', opentable: '0.13.4', yandex: 'default'],
[name: '11', postgres: '11.17', 'zonky-postgres': '11.17.0', opentable: 'default', yandex: 'default'],
[name: '12', postgres: '12.12', 'zonky-postgres': '12.12.0', opentable: 'default', yandex: 'default'],
[name: '13', postgres: '13.8', 'zonky-postgres': '13.8.0', opentable: 'default', yandex: 'default'],
[name: '14', postgres: '14.5', 'zonky-postgres': '14.5.0', opentable: 'default', yandex: 'default']
]],
[name: 'mssql', versions: [
[name: '2017', 'mssql': '2017-latest', 'mssql-driver': 'default'],
[name: '2019', 'mssql': '2019-latest', 'mssql-driver': 'default']
]],
[name: 'mysql', versions: [
[name: '5.6', 'mysql': '5.6', 'mysql-driver': 'default'],
[name: '5.7', 'mysql': '5.7', 'mysql-driver': 'default'],
[name: '8.0', 'mysql': '8.0', 'mysql-driver': 'default']
]],
[name: 'mariadb', versions: [
[name: '10.1', 'mariadb': '10.1', 'mariadb-driver': 'default'],
[name: '10.2', 'mariadb': '10.2', 'mariadb-driver': 'default'],
[name: '10.3', 'mariadb': '10.3', 'mariadb-driver': 'default'],
[name: '10.4', 'mariadb': '10.4', 'mariadb-driver': 'default'],
[name: '10.5', 'mariadb': '10.5', 'mariadb-driver': 'default']
[name: '10.8', 'mariadb': '10.8', 'mariadb-driver': 'default']
]],
[name: 'h2', versions: [
[name: '1.3.176', 'h2': '1.3.176'],
[name: '1.4.200', 'h2': '1.4.200']
[name: '1.4.200', 'h2': '1.4.200'],
[name: '2.0.206', 'h2': '2.0.206'],
[name: '2.1.214', 'h2': '2.1.214']
]]
]
}
Expand Down Expand Up @@ -216,39 +196,42 @@ project(':embedded-database-spring-test') {
dependencies {
compile project(':embedded-database-spring-test-autoconfigure')

compile 'org.testcontainers:postgresql:1.15.3'
compile 'org.testcontainers:mssqlserver:1.15.3'
compile 'org.testcontainers:mysql:1.15.3'
compile 'org.testcontainers:mariadb:1.15.3'
compile 'org.testcontainers:postgresql:1.17.3'
compile 'org.testcontainers:mssqlserver:1.17.3'
compile 'org.testcontainers:mysql:1.17.3'
compile 'org.testcontainers:mariadb:1.17.3'

compile 'io.zonky.test:embedded-postgres:2.0.1', optional
compile 'com.opentable.components:otj-pg-embedded:0.13.3', optional
compile 'com.opentable.components:otj-pg-embedded:0.13.4', optional
compile 'ru.yandex.qatools.embed:postgresql-embedded:2.10', optional

compile 'org.postgresql:postgresql:42.2.18', optional
compile 'com.microsoft.sqlserver:mssql-jdbc:8.4.1.jre8', optional
compile 'mysql:mysql-connector-java:8.0.22', optional
compile 'org.mariadb.jdbc:mariadb-java-client:2.7.0', optional
compile 'com.h2database:h2:1.4.200', optional
compile 'org.postgresql:postgresql:42.4.2', optional
compile 'com.microsoft.sqlserver:mssql-jdbc:11.2.0.jre8', optional
compile 'mysql:mysql-connector-java:8.0.30', optional
compile 'org.mariadb.jdbc:mariadb-java-client:2.7.6', optional
compile 'com.h2database:h2:2.1.214', optional

compile 'org.flywaydb:flyway-core:7.13.0', optional
compile 'org.flywaydb:flyway-core:7.15.0', optional
compile 'org.flywaydb.flyway-test-extensions:flyway-spring-test:7.0.0', optional
compile 'org.springframework.boot:spring-boot-starter-test:2.0.9.RELEASE', optional
compile('org.springframework.boot:spring-boot-starter-test:2.0.9.RELEASE') {
exclude group: 'org.mockito'
optionalDeps << it // https://github.com/nebula-plugins/gradle-extra-configurations-plugin/issues/44
}
compile 'org.liquibase:liquibase-core:3.5.5', optional

compile 'org.springframework:spring-context:5.0.13.RELEASE'
compile 'org.springframework:spring-test:5.0.13.RELEASE'
compile 'org.springframework:spring-context:5.0.20.RELEASE'
compile 'org.springframework:spring-test:5.0.20.RELEASE'

compile 'com.google.guava:guava:23.0'

compile('com.cedarsoftware:java-util:1.34.0') {
compile('com.cedarsoftware:java-util:1.68.0') {
exclude group: 'org.apache.logging.log4j'
}

testCompile 'org.springframework:spring-jdbc:5.0.13.RELEASE'
testCompile 'ch.qos.logback:logback-classic:1.2.3'
testCompile 'org.mockito:mockito-core:3.9.0'
testCompile 'org.assertj:assertj-core:3.18.1'
testCompile 'org.springframework:spring-jdbc:5.0.20.RELEASE'
testCompile 'ch.qos.logback:logback-classic:1.2.11'
testCompile 'org.mockito:mockito-core:3.12.4'
testCompile 'org.assertj:assertj-core:3.23.1'
testCompile 'com.zaxxer:HikariCP:4.0.3'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ private EmbeddedDatabase getDatabase(ClientConfig config, String dbName) {
dataSource.setUser(container.getUsername());
dataSource.setPassword(container.getPassword());

dataSource.setTrustServerCertificate(true);

BeanWrapper dataSourceWrapper = new BeanWrapperImpl(dataSource);
for (Map.Entry<String, String> entry : config.connectProperties.entrySet()) {
dataSourceWrapper.setPropertyValue(entry.getKey(), entry.getValue());
Expand Down

0 comments on commit 8317959

Please sign in to comment.