Package org.openrewrite.gradle
Class RewriteExtension
java.lang.Object
org.openrewrite.gradle.RewriteExtension
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactiveRecipe(String... recipes) voidactiveStyle(String... styles) voidvoidvoidvoidexclusion(Collection<String> exclusions) @Nullable FileWill prefer to return an explicitly configured checkstyle configuration file location.javax.inject.Provider<File>booleanSupplying a rewrite configuration file is optional, so if it doesn't exist it isn't an error or a warning.booleanbooleanbooleanReturns the version of rewrite core libraries to be used.intbooleanbooleanbooleanvoidplainTextMask(String... masks) voidplainTextMask(Collection<String> masks) voidsetActiveRecipes(List<String> activeRecipes) voidsetActiveStyles(List<String> activeStyles) voidsetCheckstyleConfigFile(File configFile) voidsetCheckstyleConfigProvider(javax.inject.Provider<File> checkstyleConfigProvider) voidsetCheckstylePropertiesProvider(javax.inject.Provider<Map<String, Object>> checkstylePropertiesProvider) voidsetConfigFile(File configFile) voidsetConfigFile(String configFilePath) voidsetEnableExperimentalGradleBuildScriptParsing(boolean enableExperimentalGradleBuildScriptParsing) voidsetExportDatatables(boolean exportDatatables) voidsetFailOnDryRunResults(boolean failOnDryRunResults) voidsetFailOnInvalidActiveRecipes(boolean failOnInvalidActiveRecipes) voidsetLogCompilationWarningsAndErrors(boolean logCompilationWarningsAndErrors) voidsetRewriteVersion(String value) voidsetSizeThresholdMb(int thresholdMb) voidsetThrowOnParseFailures(boolean throwOnParseFailures)
-
Field Details
-
project
protected final org.gradle.api.Project project
-
-
Constructor Details
-
RewriteExtension
public RewriteExtension(org.gradle.api.Project project)
-
-
Method Details
-
setConfigFile
-
setConfigFile
-
setCheckstyleConfigFile
-
getCheckstyleConfigFile
Will prefer to return an explicitly configured checkstyle configuration file location. If none has been specified, will attempt to auto-detect an appropriate file. -
getCheckstyleProperties
-
getConfigFileSetDeliberately
public boolean getConfigFileSetDeliberately()Supplying a rewrite configuration file is optional, so if it doesn't exist it isn't an error or a warning. But if the user has deliberately specified a different location from the default, that seems like a reasonable signal that the file should be expected to exist. So this signal can be used to decide if a warning should be displayed if the specified file cannot be found. -
getConfigFile
-
activeRecipe
-
clearActiveRecipes
public void clearActiveRecipes() -
setActiveRecipes
-
activeStyle
-
clearActiveStyles
public void clearActiveStyles() -
setActiveStyles
-
getActiveStyles
-
getActiveRecipes
-
getVersionProps
-
getRewriteVersion
Returns the version of rewrite core libraries to be used. -
getRewritePolyglotVersion
-
getRewriteGradleModelVersion
-
getRewriteKotlinVersion
-
setRewriteVersion
-
getFailOnInvalidActiveRecipes
public boolean getFailOnInvalidActiveRecipes() -
setFailOnInvalidActiveRecipes
public void setFailOnInvalidActiveRecipes(boolean failOnInvalidActiveRecipes) -
getFailOnDryRunResults
public boolean getFailOnDryRunResults() -
setFailOnDryRunResults
public void setFailOnDryRunResults(boolean failOnDryRunResults) -
getLogCompilationWarningsAndErrors
public boolean getLogCompilationWarningsAndErrors() -
setLogCompilationWarningsAndErrors
public void setLogCompilationWarningsAndErrors(boolean logCompilationWarningsAndErrors) -
getCheckstyleConfigProvider
-
setCheckstyleConfigProvider
-
getCheckstylePropertiesProvider
-
setCheckstylePropertiesProvider
-
isEnableExperimentalGradleBuildScriptParsing
public boolean isEnableExperimentalGradleBuildScriptParsing() -
setEnableExperimentalGradleBuildScriptParsing
public void setEnableExperimentalGradleBuildScriptParsing(boolean enableExperimentalGradleBuildScriptParsing) -
isExportDatatables
public boolean isExportDatatables() -
setExportDatatables
public void setExportDatatables(boolean exportDatatables) -
getExclusions
-
exclusion
-
exclusion
-
getPlainTextMasks
-
plainTextMask
-
plainTextMask
-
getSizeThresholdMb
public int getSizeThresholdMb() -
setSizeThresholdMb
public void setSizeThresholdMb(int thresholdMb) -
getJacksonModuleKotlinVersion
-
getThrowOnParseFailures
public boolean getThrowOnParseFailures() -
setThrowOnParseFailures
public void setThrowOnParseFailures(boolean throwOnParseFailures)
-