When `org.springframework.boot.build.architecture.ArchitecturePlugin#registerTasks` is called, `javaPluginExtension.getSourceSets()` is empty. This can be fixed by reacting to the `JavaPlugin` instead of `JavaBasePlugin`.