From 015cf920da2a038ea185bc88498f5b91e96201ac Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 19 Nov 2021 15:28:37 +0000 Subject: [PATCH] Name custom task inputs Closes gh-28753 --- .../spring-boot-actuator-autoconfigure/build.gradle | 2 +- .../spring-boot-tools/spring-boot-antlib/build.gradle | 4 ++-- .../spring-boot-tools/spring-boot-gradle-plugin/build.gradle | 2 +- spring-boot-tests/spring-boot-deployment-tests/build.gradle | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle b/spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle index ce58af04cb6..5dce26b8917 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle @@ -215,7 +215,7 @@ tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) { attributes "spring-integration-docs": integrationDocs } dependsOn test - inputs.dir("${buildDir}/generated-snippets").withPathSensitivity(PathSensitivity.RELATIVE) + inputs.dir("${buildDir}/generated-snippets").withPathSensitivity(PathSensitivity.RELATIVE).withPropertyName("generatedSnippets") } asciidoctor { diff --git a/spring-boot-project/spring-boot-tools/spring-boot-antlib/build.gradle b/spring-boot-project/spring-boot-tools/spring-boot-antlib/build.gradle index aef4c19eee9..e00c34aeaf8 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-antlib/build.gradle +++ b/spring-boot-project/spring-boot-tools/spring-boot-antlib/build.gradle @@ -41,8 +41,8 @@ processResources { task integrationTest { dependsOn copyIntegrationTestSources, jar def resultsDir = file("${buildDir}/test-results/integrationTest") - inputs.dir(file("src/it")).withPathSensitivity(PathSensitivity.RELATIVE) - inputs.files(sourceSets.main.runtimeClasspath).withNormalizer(ClasspathNormalizer) + inputs.dir(file("src/it")).withPathSensitivity(PathSensitivity.RELATIVE).withPropertyName("source") + inputs.files(sourceSets.main.runtimeClasspath).withNormalizer(ClasspathNormalizer).withPropertyName("classpath") outputs.dirs resultsDir doLast { ant.with { diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle index 2e6d3c534f5..88605704929 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle @@ -63,7 +63,7 @@ task dependencyVersions(type: org.springframework.boot.build.constraints.Extract tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) { dependsOn dependencyVersions - inputs.dir('src/docs/gradle').withPathSensitivity(PathSensitivity.RELATIVE) + inputs.dir('src/docs/gradle').withPathSensitivity(PathSensitivity.RELATIVE).withPropertyName('buildScripts') doFirst { attributes "dependency-management-plugin-version": dependencyVersions.versionConstraints["io.spring.gradle:dependency-management-plugin"] } diff --git a/spring-boot-tests/spring-boot-deployment-tests/build.gradle b/spring-boot-tests/spring-boot-deployment-tests/build.gradle index 588b8eb486f..38353c5f5f2 100644 --- a/spring-boot-tests/spring-boot-deployment-tests/build.gradle +++ b/spring-boot-tests/spring-boot-deployment-tests/build.gradle @@ -33,7 +33,7 @@ dependencies { } intTest { - inputs.files(war).withNormalizer(ClasspathNormalizer) + inputs.files(war).withNormalizer(ClasspathNormalizer).withPropertyName("war") } war {