|
|
|
pluginManagement {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
gradlePluginPortal()
|
|
|
|
maven { url "https://repo.spring.io/release" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id "com.gradle.enterprise" version "3.12.6"
|
|
|
|
id "io.spring.ge.conventions" version "0.0.13"
|
|
|
|
}
|
|
|
|
|
|
|
|
include "spring-aop"
|
|
|
|
include "spring-aspects"
|
|
|
|
include "spring-beans"
|
|
|
|
include "spring-context"
|
|
|
|
include "spring-context-indexer"
|
|
|
|
include "spring-context-support"
|
|
|
|
include "spring-core"
|
|
|
|
include "spring-core-test"
|
|
|
|
include "spring-expression"
|
|
|
|
include "spring-instrument"
|
|
|
|
include "spring-jcl"
|
|
|
|
include "spring-jdbc"
|
|
|
|
include "spring-jms"
|
|
|
|
include "spring-messaging"
|
|
|
|
include "spring-orm"
|
|
|
|
include "spring-oxm"
|
|
|
|
include "spring-r2dbc"
|
|
|
|
include "spring-test"
|
|
|
|
include "spring-tx"
|
|
|
|
include "spring-web"
|
|
|
|
include "spring-webflux"
|
|
|
|
include "spring-webmvc"
|
|
|
|
include "spring-websocket"
|
Stop publishing distribution zip artifact
Prior to this commit, the Spring Framework build would publish several
zip artifacts:
* a "*-schema.zip" containing all the XSD schemas produced
* a "*-docs.zip" containing the API docs
* a "*-dist.zip" containing all of the above, plus module jars
Since the reference docs are now produced by Antora in a separate
process, the "*-docs.zip" does not contain the reference docs anymore.
But it still contains the API docs which are automatically fetched from
the artifact repository and published on the docs.spring.io website.
This commit intends to update the current arrangement and optimize the
build.
First, the "*-dist.zip" is not published anymore, since it cannot be
consumed anyway by the community: repo.spring.io does not distribute
release artifacts publicly, developers are expected to get them from
Maven Central. This arrangement is quite dated anyway and is not really
useful in current application build setups.
The generation of API docs is moved to a new "framework-api" module,
separating it from the reference docs module ("framework-docs") which
contains Java, Kotlin and Asciidoctor sources. This removes the custom
javadoc aggregation task and instead uses a dedicated Gradle plugin.
This change also adds a new `-PskipDocs` Gradle project property that
skips entirely the documentation tasks (javadoc, kdocs) as well as the
"distrbution" tasks managed in the framework-api module.
This allows developers to publish locally a SNAPSHOT of Spring Framework
without creating the entire documentation distribution. This is
particularly useful for local testing.
For example, `$ ./gradlew pTML -PskipDocs`.
Closes gh-31049
1 year ago
|
|
|
include "framework-api"
|
|
|
|
include "framework-bom"
|
|
|
|
include "framework-docs"
|
|
|
|
include "framework-platform"
|
|
|
|
include "integration-tests"
|
|
|
|
|
|
|
|
rootProject.name = "spring"
|
|
|
|
rootProject.children.each {project ->
|
|
|
|
project.buildFileName = "${project.name}.gradle"
|
|
|
|
}
|
|
|
|
|
|
|
|
settings.gradle.projectsLoaded {
|
|
|
|
gradleEnterprise {
|
|
|
|
buildScan {
|
|
|
|
File buildDir = settings.gradle.rootProject.getBuildDir()
|
|
|
|
buildDir.mkdirs()
|
|
|
|
new File(buildDir, "build-scan-uri.txt").text = "(build scan not generated)"
|
|
|
|
buildScanPublished { scan ->
|
|
|
|
if (buildDir.exists()) {
|
|
|
|
new File(buildDir, "build-scan-uri.txt").text = "${scan.buildScanUri}\n"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|