Skip to content

Commit 6183b58

Browse files
authored
Breaking changes in pg-index-health (#190)
1 parent 8250a65 commit 6183b58

File tree

9 files changed

+29
-16
lines changed

9 files changed

+29
-16
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "Experiments with Java"
99

1010
allprojects {
1111
group = "io.github.mfvanek"
12-
version = "0.2.2"
12+
version = "0.3.0"
1313

1414
repositories {
1515
mavenLocal()
@@ -19,7 +19,7 @@ allprojects {
1919

2020
tasks {
2121
wrapper {
22-
gradleVersion = "8.11"
22+
gradleVersion = "8.11.1"
2323
}
2424
}
2525

buildSrc/src/main/kotlin/sb-ot-demo.java-conventions.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies {
2020

2121
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
2222

23-
errorprone("com.google.errorprone:error_prone_core:2.33.0")
23+
errorprone("com.google.errorprone:error_prone_core:2.36.0")
2424
errorprone("jp.skypencil.errorprone.slf4j:errorprone-slf4j:0.1.28")
2525
}
2626

@@ -37,6 +37,7 @@ jacoco {
3737
tasks {
3838
withType<JavaCompile>().configureEach {
3939
options.compilerArgs.add("-parameters")
40+
options.compilerArgs.add("--should-stop=ifError=FLOW")
4041
options.errorprone {
4142
disableWarningsInGeneratedCode.set(true)
4243
disable("Slf4jLoggerShouldBeNonStatic")

common-internal-bom/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies {
1212
api(platform("org.assertj:assertj-bom:3.26.3"))
1313
api(platform("org.testcontainers:testcontainers-bom:1.20.4"))
1414
api(platform("org.junit:junit-bom:5.11.3"))
15-
api(platform("io.github.mfvanek:pg-index-health-bom:0.13.3"))
15+
api(platform("io.github.mfvanek:pg-index-health-bom:0.14.0"))
1616

1717
constraints {
1818
api("org.liquibase:liquibase-core:4.30.0")

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

settings.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,15 @@ include("spring-boot-3-demo-app")
33
include("common-internal-bom")
44
include("spring-boot-2-demo-app")
55
include("db-migrations")
6+
7+
dependencyResolutionManagement {
8+
versionCatalogs {
9+
create("libs") {
10+
val springBoot3Version = version("spring-boot-v3", "3.3.6")
11+
plugin("spring-boot-v3", "org.springframework.boot")
12+
.versionRef(springBoot3Version)
13+
library("spring-boot-v3-dependencies", "org.springframework.boot", "spring-boot-dependencies")
14+
.versionRef(springBoot3Version)
15+
}
16+
}
17+
}

spring-boot-2-demo-app/src/test/java/io/github/mfvanek/spring/boot2/test/IndexesMaintenanceTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package io.github.mfvanek.spring.boot2.test;
22

3-
import io.github.mfvanek.pg.common.maintenance.DatabaseCheckOnHost;
4-
import io.github.mfvanek.pg.common.maintenance.Diagnostic;
5-
import io.github.mfvanek.pg.model.DbObject;
6-
import io.github.mfvanek.pg.model.PgContext;
3+
import io.github.mfvanek.pg.core.checks.common.DatabaseCheckOnHost;
4+
import io.github.mfvanek.pg.core.checks.common.Diagnostic;
5+
import io.github.mfvanek.pg.model.context.PgContext;
6+
import io.github.mfvanek.pg.model.dbobject.DbObject;
77
import io.github.mfvanek.pg.model.predicates.SkipLiquibaseTablesPredicate;
88
import io.github.mfvanek.spring.boot2.test.support.TestBase;
99
import org.junit.jupiter.api.DisplayName;

spring-boot-3-demo-app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
plugins {
22
id("sb-ot-demo.java-conventions")
33
id("sb-ot-demo.docker")
4-
id("org.springframework.boot") version "3.3.4"
4+
alias(libs.plugins.spring.boot.v3)
55
id("io.freefair.lombok")
66
}
77

88
dependencies {
99
implementation(platform(project(":common-internal-bom")))
1010
implementation(platform("org.springdoc:springdoc-openapi:2.6.0"))
11-
implementation(platform("org.springframework.boot:spring-boot-dependencies:3.3.4"))
11+
implementation(platform(libs.spring.boot.v3.dependencies))
1212

1313
implementation("org.springframework.boot:spring-boot-starter-web")
1414
implementation("org.springframework.boot:spring-boot-starter-actuator")

spring-boot-3-demo-app/src/test/java/io/github/mfvanek/spring/boot3/test/ApplicationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void contextLoads() {
4343
"endpoint=http://localhost:%d, " +
4444
"endpointPath=/opentelemetry.proto.collector.trace.v1.TraceService/Export, timeoutNanos=5000000000, " +
4545
"connectTimeoutNanos=10000000000, compressorEncoding=null, " +
46-
"headers=Headers{User-Agent=OBFUSCATED}}", JaegerInitializer.getFirstMappedPort()));
46+
"headers=Headers{User-Agent=OBFUSCATED}, memoryMode=IMMUTABLE_DATA}", JaegerInitializer.getFirstMappedPort()));
4747
}
4848

4949
@Test

spring-boot-3-demo-app/src/test/java/io/github/mfvanek/spring/boot3/test/IndexesMaintenanceTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package io.github.mfvanek.spring.boot3.test;
22

3-
import io.github.mfvanek.pg.common.maintenance.DatabaseCheckOnHost;
4-
import io.github.mfvanek.pg.common.maintenance.Diagnostic;
5-
import io.github.mfvanek.pg.model.DbObject;
6-
import io.github.mfvanek.pg.model.PgContext;
3+
import io.github.mfvanek.pg.core.checks.common.DatabaseCheckOnHost;
4+
import io.github.mfvanek.pg.core.checks.common.Diagnostic;
5+
import io.github.mfvanek.pg.model.context.PgContext;
6+
import io.github.mfvanek.pg.model.dbobject.DbObject;
77
import io.github.mfvanek.pg.model.predicates.SkipLiquibaseTablesPredicate;
88
import io.github.mfvanek.spring.boot3.test.support.TestBase;
99
import org.junit.jupiter.api.DisplayName;

0 commit comments

Comments
 (0)