Skip to content

Commit e569668

Browse files
committed
Update gradle platform to fix dependency resolution for publishing
1 parent 0cbfe6a commit e569668

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

build.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ subprojects {
1616
sourceCompatibility = '17'
1717

1818
repositories {
19+
mavenLocal()
1920
mavenCentral()
2021
maven { url 'https://repo.spring.io/milestone' }
2122
if (version.endsWith('SNAPSHOT')) {
@@ -28,9 +29,6 @@ subprojects {
2829

2930
dependencyManagement {
3031
imports {
31-
mavenBom "io.projectreactor:reactor-bom:${reactorBomVersion}"
32-
mavenBom "io.rsocket:rsocket-bom:${rsocketVersion}"
33-
mavenBom "org.junit:junit-bom:${junitJupiterVersion}"
3432
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
3533
}
3634

@@ -39,6 +37,12 @@ subprojects {
3937
}
4038
}
4139

40+
dependencies {
41+
implementation platform("io.projectreactor:reactor-bom:${reactorBomVersion}")
42+
implementation platform("io.rsocket:rsocket-bom:${rsocketVersion}")
43+
implementation platform("org.junit:junit-bom:${junitJupiterVersion}")
44+
}
45+
4246
java {
4347
withSourcesJar()
4448
withJavadocJar()

gradle/publications.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ subprojects {
3939
}
4040
versionMapping {
4141
usage('java-api') {
42-
fromResolutionResult()
42+
fromResolutionResult('runtimeClasspath')
4343
}
4444
usage('java-runtime') {
4545
fromResolutionResult()

0 commit comments

Comments
 (0)