Browse Source

Fix dependency management in framework-docs module

See gh-31049
pull/31145/head
Brian Clozel 1 year ago
parent
commit
da1d00be7a
  1. 24
      build.gradle
  2. 11
      framework-api/framework-api.gradle

24
build.gradle

@ -42,15 +42,7 @@ configure(allprojects) { project -> @@ -42,15 +42,7 @@ configure(allprojects) { project ->
}
}
configure([rootProject] + javaProjects) { project ->
group = "org.springframework"
apply plugin: "java"
apply plugin: "java-test-fixtures"
apply plugin: 'org.springframework.build.conventions'
apply from: "${rootDir}/gradle/toolchains.gradle"
apply from: "${rootDir}/gradle/ide.gradle"
configure(allprojects - project(":framework-platform")) {
configurations {
dependencyManagement {
canBeConsumed = false
@ -59,9 +51,21 @@ configure([rootProject] + javaProjects) { project -> @@ -59,9 +51,21 @@ configure([rootProject] + javaProjects) { project ->
}
matching { it.name.endsWith("Classpath") }.all { it.extendsFrom(dependencyManagement) }
}
dependencies {
dependencyManagement(enforcedPlatform(dependencies.project(path: ":framework-platform")))
}
}
configure([rootProject] + javaProjects) { project ->
group = "org.springframework"
apply plugin: "java"
apply plugin: "java-test-fixtures"
apply plugin: 'org.springframework.build.conventions'
apply from: "${rootDir}/gradle/toolchains.gradle"
apply from: "${rootDir}/gradle/ide.gradle"
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testImplementation("org.junit.platform:junit-platform-suite-api")

11
framework-api/framework-api.gradle

@ -13,18 +13,7 @@ repositories { @@ -13,18 +13,7 @@ repositories {
}
}
configurations {
dependencyManagement {
canBeConsumed = false
canBeResolved = false
visible = false
}
matching { it.name.endsWith("Classpath") }.all { it.extendsFrom(dependencyManagement) }
}
dependencies {
dependencyManagement(enforcedPlatform(dependencies.project(path: ":framework-platform")))
rootProject.subprojects.findAll { it.name.startsWith("spring-") }.each { moduleProject ->
javadoc moduleProject
}

Loading…
Cancel
Save