Skip to content

Commit

Permalink
Update gradle platform to fix dependency resolution for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
spencergibb committed Mar 6, 2024
1 parent 0cbfe6a commit e569668
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ subprojects {
sourceCompatibility = '17'

repositories {
mavenLocal()
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
if (version.endsWith('SNAPSHOT')) {
Expand All @@ -28,9 +29,6 @@ subprojects {

dependencyManagement {
imports {
mavenBom "io.projectreactor:reactor-bom:${reactorBomVersion}"
mavenBom "io.rsocket:rsocket-bom:${rsocketVersion}"
mavenBom "org.junit:junit-bom:${junitJupiterVersion}"
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
}

Expand All @@ -39,6 +37,12 @@ subprojects {
}
}

dependencies {
implementation platform("io.projectreactor:reactor-bom:${reactorBomVersion}")
implementation platform("io.rsocket:rsocket-bom:${rsocketVersion}")
implementation platform("org.junit:junit-bom:${junitJupiterVersion}")
}

java {
withSourcesJar()
withJavadocJar()
Expand Down
2 changes: 1 addition & 1 deletion gradle/publications.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ subprojects {
}
versionMapping {
usage('java-api') {
fromResolutionResult()
fromResolutionResult('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
Expand Down

0 comments on commit e569668

Please sign in to comment.