Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public class GenerateTask extends DefaultTask {
public boolean jackson2ModuleDiscovery;
public List<String> jackson2Modules;
public Logger.Level loggingLevel;
public boolean skip;

private Settings createSettings(URLClassLoader classLoader) {
final Settings settings = new Settings();
Expand Down Expand Up @@ -226,7 +227,11 @@ public void generate() throws Exception {

TypeScriptGenerator.setLogger(new Logger(loggingLevel));
TypeScriptGenerator.printVersion();

if (skip) {
TypeScriptGenerator.getLogger().info("Skipping plugin execution");
return;
}

// class loader
final Set<URL> urls = new LinkedHashSet<>();
for (Task task : getProject().getTasks()) {
Expand Down