Closed tisonkun closed 2 years ago
build.gralde:
build.gralde
plugins { id 'org.springframework.boot' version '3.0.0-M2' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' } group = 'io.korandoru.gravity' version = '0.0.1-SNAPSHOT' sourceCompatibility = '17' configurations { compileOnly { extendsFrom annotationProcessor } } repositories { mavenCentral() maven { url 'https://repo.spring.io/milestone' } } ext { set('testcontainersVersion', "1.16.2") } dependencies { implementation 'org.springframework.boot:spring-boot-starter-actuator' implementation 'org.springframework.boot:spring-boot-starter-data-r2dbc' implementation 'org.springframework.boot:spring-boot-starter-jdbc' implementation 'org.springframework.boot:spring-boot-starter-webflux' compileOnly 'org.projectlombok:lombok' runtimeOnly 'com.h2database:h2' runtimeOnly 'io.r2dbc:r2dbc-h2' runtimeOnly 'io.r2dbc:r2dbc-postgresql' runtimeOnly 'org.postgresql:postgresql' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'io.projectreactor:reactor-test' testImplementation 'org.testcontainers:junit-jupiter' testImplementation 'org.testcontainers:postgresql' testImplementation 'org.testcontainers:r2dbc' } dependencyManagement { imports { mavenBom "org.testcontainers:testcontainers-bom:${testcontainersVersion}" } } tasks.named('test') { useJUnitPlatform() }
output:
gravity:test: Could not find io.r2dbc:r2dbc-postgresql:. Required by: project : Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
You are using the wrong coordinates. See https://github.com/r2dbc/r2dbc-bom/issues/44 for details.
build.gralde
:output: