Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tomix26 committed Feb 10, 2023
1 parent 365b356 commit 544c5cc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ Add the following Maven dependency:
<dependency>
<groupId>io.zonky.test</groupId>
<artifactId>embedded-postgres</artifactId>
<version>2.0.1</version>
<version>2.0.3</version>
<scope>test</scope>
</dependency>
```

The default version of the embedded postgres is `PostgreSQL 14.3`, 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.7`, but you can change it by following the instructions described in [Postgres version](#postgres-version).

## Basic Usage

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

## Postgres version

The default version of the embedded postgres is `PostgreSQL 14.3`, 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.7`, 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>13.8.0</version>
<version>15.2.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -97,26 +97,26 @@ The default version of the embedded postgres is `PostgreSQL 14.3`, but it can be
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'io.zonky.test.postgres') {
details.useVersion '13.8.0'
details.useVersion '15.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 {
implementation enforcedPlatform('io.zonky.test.postgres:embedded-postgres-binaries-bom:13.8.0')
implementation enforcedPlatform('io.zonky.test.postgres:embedded-postgres-binaries-bom:15.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:

plugins {
id "io.spring.dependency-management" version "1.0.6.RELEASE"
id "io.spring.dependency-management" version "1.1.0"
}
dependencyManagement {
imports {
mavenBom 'io.zonky.test.postgres:embedded-postgres-binaries-bom:13.8.0'
mavenBom 'io.zonky.test.postgres:embedded-postgres-binaries-bom:15.2.0'
}
}

Expand Down

0 comments on commit 544c5cc

Please sign in to comment.