Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Preparing for next iteration v0.9.1 (#51)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Vakhrushev <[email protected]>
  • Loading branch information
mfvanek and mfvanek authored Mar 17, 2023
1 parent cbbb5f9 commit be39850
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ Spring Boot Starter for using [pg-index-health](https://github.com/mfvanek/pg-in
## Installation
Using Gradle:
```groovy
testImplementation 'io.github.mfvanek:pg-index-health-test-starter:0.8.0'
testImplementation 'io.github.mfvanek:pg-index-health-test-starter:0.9.0'
```

Using Maven:
```xml
<dependency>
<groupId>io.github.mfvanek</groupId>
<artifactId>pg-index-health-test-starter</artifactId>
<version>0.8.0</version>
<version>0.9.0</version>
<scope>test</scope>
</dependency>
```
Expand All @@ -41,9 +41,9 @@ For **Java 8** compatible version take a look at release [0.7.0](https://github.

### Spring Boot versions

| Spring Boot | Min JDK | pg-index-health-test-starter |
|-------------|---------|-------------------------------|
| 2.4.x | 8 | 0.3.x — 0.4.x |
| 2.5.x | 8 | 0.5.x — 0.6.x |
| 2.6.x | 8 | 0.7.x |
| 2.7.x | 11 | 0.8.x |
| Spring Boot | Min JDK | pg-index-health-test-starter |
|-------------|---------|------------------------------|
| 2.4.x | 8 | 0.3.x — 0.4.x |
| 2.5.x | 8 | 0.5.x — 0.6.x |
| 2.6.x | 8 | 0.7.x |
| 2.7.x | 11 | 0.8.x — 0.9.x |
12 changes: 4 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ plugins {
id 'pmd'
id 'org.sonarqube' version '4.0.0.2929'
id 'info.solidsoft.pitest' version '1.9.11'
id 'nebula.lint' version '18.0.3'
id 'net.ltgt.errorprone' version '3.0.1'
}

group 'io.github.mfvanek'
version '0.9.0'
version '0.9.1-SNAPSHOT'

java {
sourceCompatibility = JavaVersion.VERSION_11
Expand Down Expand Up @@ -72,6 +71,9 @@ publishing {
publications {
mavenJava(MavenPublication) {
from components.java
jar.preserveFileTimestamps = false
jar.reproducibleFileOrder = true

versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
Expand Down Expand Up @@ -225,12 +227,6 @@ sonarqube {
}
}

gradleLint {
rules = ['all-dependency']
alwaysRun = false
autoLintAfterFailure = false
}

pitest {
junit5PluginVersion = '1.1.2'
pitestVersion = '1.10.4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public class DatabaseStructureHealthAutoConfiguration {
@ConditionalOnMissingBean
public PgConnection pgConnection(@Qualifier("dataSource") final DataSource dataSource,
@Value("${spring.datasource.url:jdbc:postgresql://localhost:5432}") final String databaseUrl) {
// TODO Try to obtain URL from dataSource.getConnection().getMetaData().getURL()
return PgConnectionImpl.of(dataSource, PgHostImpl.ofUrl(databaseUrl));
}

Expand Down

0 comments on commit be39850

Please sign in to comment.