Snapshot (2023-05-01)
- rewrite-kotlin
- rewrite-python
- org.openrewrite.gradle.UpgradeDependencyVersion: Upgrade the version of a dependency in a build.gradle file. Supports updating dependency declarations of various forms:
String
notation:implementation "group:artifact:version"
Map
notation:implementation group: 'group', name: 'artifact', version: 'version'
Can update version numbers which are defined earlier in the same file in variable declarations.
- org.openrewrite.gradle.plugins.AddSettingsPluginRepository: Add a Gradle settings repository to
settings.gradle(.kts)
. - org.openrewrite.java.migrate.lang.UseStringIsEmptyRecipe: Recipe created for the following Refaster template:
public class UseStringIsEmpty {
@BeforeTemplate
boolean before(String s) {
return s.length() > 0;
}
@AfterTemplate
boolean after(String s) {
return !s.isEmpty();
}
}
- org.openrewrite.java.recipes.SelectRecipeExamples: Add
@DocumentExample
to the first non-issue and not a disabled unit test of a recipe as an example, if there are not any examples yet. - org.openrewrite.kotlin.FindKotlinSources: Use data table to collect source files types and counts of files with extensions
.kt
. - org.openrewrite.python.cleanup.CommonStaticAnalysis: Resolve common static analysis issues discovered through 3rd party tools.
- org.openrewrite.python.format.PythonSpaces: Standardizes spaces in Python code. Currently limited to formatting method arguments.
- org.openrewrite.python.search.FindPythonSources: Use data table to collect source files types and counts of files with extensions
.py
. - org.openrewrite.text.AppendToTextFile: Appends content to a plaintext file. Multiple instances of this recipe in the same execution context can all contribute.
- org.openrewrite.text.ChangeText: Completely replaces the contents of the text file with other text.
- org.openrewrite.text.EndOfLineAtEndOfFile: Ensure that the file ends with the newline character. Note: If this recipe modifies a file, it converts the file into plain text. As such, this recipe should be run after any recipe that modifies the language-specific LST.
- org.openrewrite.text.FindAndReplace: Simple text find and replace. When the original source file is a language-specific Lossless Semantic Tree, this operation irreversibly converts the source file to a plain text file. Subsequent recipes will not be able to operate on language-specific type.
- org.openrewrite.java.logging.slf4j.ConvertLogMessageMessageOnlyToLogMessageAndThrowable: Convert
Logger#error|warn(throwable#message)
toLogger#error|warn(<log-message>, e)
invocations having only the error's message as the parameter, to a log statement with message and throwable.
- Old Options:
None
- New Options:
includeJavaLangException: { type: boolean, required: false }
Last modified 29d ago