Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added skip option to gradle plugin #1064

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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