Skip to content

Commit 68c5f59

Browse files
committed
Configure checkArchitecture tasks to depend on resource processing
Closes gh-41358
1 parent 7b809de commit 68c5f59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buildSrc/src/main/java/org/springframework/boot/build/architecture/ArchitecturePlugin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -51,6 +51,7 @@ private void registerTasks(Project project) {
5151
(task) -> {
5252
task.setClasses(sourceSet.getOutput().getClassesDirs());
5353
task.getResourcesDirectory().set(sourceSet.getOutput().getResourcesDir());
54+
task.dependsOn(sourceSet.getProcessResourcesTaskName());
5455
task.setDescription("Checks the architecture of the classes of the " + sourceSet.getName()
5556
+ " source set.");
5657
task.setGroup(LifecycleBasePlugin.VERIFICATION_GROUP);

0 commit comments

Comments
 (0)