|
|
|
@ -130,12 +130,15 @@ public class SpringBootPlugin implements Plugin<Project> {
|
|
|
|
|
|
|
|
|
|
private void withPluginClassOfAction(PluginApplicationAction action,
|
|
|
|
|
Consumer<Class<? extends Plugin<? extends Project>>> consumer) {
|
|
|
|
|
Class<? extends Plugin<? extends Project>> pluginClass;
|
|
|
|
|
try {
|
|
|
|
|
consumer.accept(action.getPluginClass());
|
|
|
|
|
pluginClass = action.getPluginClass();
|
|
|
|
|
}
|
|
|
|
|
catch (Throwable ex) {
|
|
|
|
|
// Plugin class unavailable. Continue.
|
|
|
|
|
// Plugin class unavailable.
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
consumer.accept(pluginClass);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|