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

Preparing for next iteration v0.9.1 #51

Merged
merged 1 commit into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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