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 @@ -19,6 +19,7 @@
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Collection;
Expand Down Expand Up @@ -61,10 +62,10 @@ public enum Format {JSON, YAML, JSONANDYAML}
public final Property<String> scannerClass = getProject().getObjects().property(String.class);
@Input
@Optional
public final Property<Boolean> prettyPrint = getProject().getObjects().property(Boolean.class);
public final Property<Boolean> prettyPrint = getProject().getObjects().property(Boolean.class).convention(false);
@Input
@Optional
public final Property<Boolean> readAllResources = getProject().getObjects().property(Boolean.class);
public final Property<Boolean> readAllResources = getProject().getObjects().property(Boolean.class).convention(false);
@Input
@Optional
public final SetProperty<String> ignoredRoutes = getProject().getObjects().setProperty(String.class);
Expand All @@ -86,7 +87,7 @@ public enum Format {JSON, YAML, JSONANDYAML}
@Input
@Optional

public final Property<String> encoding = getProject().getObjects().property(String.class);
public final Property<String> encoding = getProject().getObjects().property(String.class).convention(StandardCharsets.UTF_8.name());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might be a behavioral change for older systems where the default was not UTF_8, so event though I would be all for having this UTF_8 here at some point for now safer version would probably be Charset.defaultCharset().name()

/**
* @since 2.0.6
*/
Expand All @@ -98,16 +99,16 @@ public enum Format {JSON, YAML, JSONANDYAML}
public final Property<String> objectMapperProcessorClass = getProject().getObjects().property(String.class);
@Input
@Optional
public final Property<Boolean> sortOutput = getProject().getObjects().property(Boolean.class);
public final Property<Boolean> sortOutput = getProject().getObjects().property(Boolean.class).convention(false);
@Input
@Optional

public final Property<Boolean> alwaysResolveAppPath = getProject().getObjects().property(Boolean.class);
public final Property<Boolean> alwaysResolveAppPath = getProject().getObjects().property(Boolean.class).convention(false);
@Input
@Optional


public final Property<Boolean> skipResolveAppPath = getProject().getObjects().property(Boolean.class);
public final Property<Boolean> skipResolveAppPath = getProject().getObjects().property(Boolean.class).convention(false);
@Input
@Optional
public final Property<String> contextId = getProject().getObjects().property(String.class);
Expand Down
Loading