Skip to content

Commit

Permalink
#140 upgrade to embedded postgres binaries 14.15
Browse files Browse the repository at this point in the history
  • Loading branch information
tomix26 committed Nov 23, 2024
1 parent 2f830bf commit f25a23f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ Add the following Maven dependency:
<dependency>
<groupId>io.zonky.test</groupId>
<artifactId>embedded-postgres</artifactId>
<version>2.0.7</version>
<version>2.1.0</version>
<scope>test</scope>
</dependency>
```

The default version of the embedded postgres is `PostgreSQL 14.10`, but you can change it by following the instructions described in [Postgres version](#postgres-version).
The default version of the embedded postgres is `PostgreSQL 14.15`, but you can change it by following the instructions described in [Postgres version](#postgres-version).

## Basic Usage

Expand Down Expand Up @@ -73,15 +73,15 @@ independent databases gives you.

## Postgres version

The default version of the embedded postgres is `PostgreSQL 14.10`, but it can be changed by importing `embedded-postgres-binaries-bom` in a required version into your dependency management section.
The default version of the embedded postgres is `PostgreSQL 14.15`, but it can be changed by importing `embedded-postgres-binaries-bom` in a required version into your dependency management section.

```xml
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.zonky.test.postgres</groupId>
<artifactId>embedded-postgres-binaries-bom</artifactId>
<version>16.2.0</version>
<version>17.2.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -99,15 +99,15 @@ The default version of the embedded postgres is `PostgreSQL 14.10`, but it can b
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'io.zonky.test.postgres') {
details.useVersion '16.2.0'
details.useVersion '17.2.0'
}
}
}

2. If you use Gradle 5+, [Maven BOMs are supported out of the box](https://docs.gradle.org/5.0/userguide/managing_transitive_dependencies.html#sec:bom_import), so you can import the bom:

dependencies {
testImplementation enforcedPlatform('io.zonky.test.postgres:embedded-postgres-binaries-bom:16.2.0')
testImplementation enforcedPlatform('io.zonky.test.postgres:embedded-postgres-binaries-bom:17.2.0')
}

3. Or, you can use [Spring's dependency management plugin](https://docs.spring.io/dependency-management-plugin/docs/current/reference/html/#dependency-management-configuration-bom-import) that provides Maven-like dependency management to Gradle:
Expand All @@ -118,7 +118,7 @@ The default version of the embedded postgres is `PostgreSQL 14.10`, but it can b
dependencyManagement {
imports {
mavenBom 'io.zonky.test.postgres:embedded-postgres-binaries-bom:16.2.0'
mavenBom 'io.zonky.test.postgres:embedded-postgres-binaries-bom:17.2.0'
}
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<embedded-postgres-binaries.version>14.12.0</embedded-postgres-binaries.version>
<embedded-postgres-binaries.version>14.15.0</embedded-postgres-binaries.version>
<commons-codec.version>1.17.1</commons-codec.version>
<commons-compress.version>1.26.2</commons-compress.version>
<commons-io.version>2.16.1</commons-io.version>
Expand Down

0 comments on commit f25a23f

Please sign in to comment.