mirror of
https://github.com/corda/corda.git
synced 2025-01-29 15:43:55 +00:00
Allow Gradle to set dependency between Jar and ScanApi tasks. (#1962)
This commit is contained in:
parent
6ebba9dea1
commit
7f96205b99
@ -32,11 +32,11 @@ public class ApiScanner implements Plugin<Project> {
|
||||
project.getLogger().info("Adding scanApi task to {}", project.getName());
|
||||
project.getTasks().create("scanApi", ScanApi.class, scanTask -> {
|
||||
scanTask.setClasspath(compilationClasspath(project.getConfigurations()));
|
||||
// Automatically creates a dependency on jar tasks.
|
||||
scanTask.setSources(project.files(jarTasks));
|
||||
scanTask.setExcludeClasses(extension.getExcludeClasses());
|
||||
scanTask.setVerbose(extension.isVerbose());
|
||||
scanTask.setEnabled(extension.isEnabled());
|
||||
scanTask.dependsOn(jarTasks);
|
||||
|
||||
// Declare this ScanApi task to be a dependency of any
|
||||
// GenerateApi tasks belonging to any of our ancestors.
|
||||
|
Loading…
x
Reference in New Issue
Block a user