Fix additional metadata locations with config cache
Previously, a project with a dependency on Spring Boot's configuration processor would fail to build when the configuration cache is enabled due to it accessing the Project during task execution. Instead of accessing the project during task execution, this commit updates the code to retrieve the resource locations from the matching source set in advance. The locations are then stored in the action that configures the compile task when needed. Closes gh-26880
This commit is contained in:
@@ -31,11 +31,11 @@ import org.springframework.boot.gradle.testkit.GradleBuild;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
/**
|
||||
* Integration tests for {@link WarPluginAction}.
|
||||
* Integration tests for {@link JavaPluginAction}.
|
||||
*
|
||||
* @author Andy Wilkinson
|
||||
*/
|
||||
@GradleCompatibility
|
||||
@GradleCompatibility(configurationCache = true)
|
||||
class JavaPluginActionIntegrationTests {
|
||||
|
||||
GradleBuild gradleBuild;
|
||||
|
||||
Reference in New Issue
Block a user