Skip to content

Commit

Permalink
Update docs and add kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-solomon committed Oct 16, 2023
1 parent 0951094 commit 80e9fc7
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 42 deletions.
3 changes: 2 additions & 1 deletion reference/latest-versions-of-every-openrewrite-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ It is highly recommended that developers use the [rewrite-recipe-bom](https://gi
| [org.openrewrite.recipe:rewrite-cucumber-jvm](https://github.com/openrewrite/rewrite-cucumber-jvm) | 1.0.8 |
| [org.openrewrite.recipe:rewrite-github-actions](https://github.com/openrewrite/rewrite-github-actions) | 2.0.6 |
| [org.openrewrite.recipe:rewrite-hibernate](https://github.com/openrewrite/rewrite-hibernate) | 1.0.5 |
| [org.openrewrite.recipe:rewrite-java-dependencies](https://github.com/openrewrite/rewrite-java-dependencies) | 1.0.10 |
| [org.openrewrite.recipe:rewrite-java-dependencies](https://github.com/openrewrite/rewrite-java-dependencies) | 1.0.10 |
| [org.openrewrite.recipe:rewrite-java-security](https://github.com/openrewrite/rewrite-java-security) | 2.0.5 |
| [org.openrewrite.recipe:rewrite-jenkins](https://github.com/openrewrite/rewrite-jenkins) | 0.2.3 |
| [org.openrewrite.recipe:rewrite-jhipster](https://github.com/openrewrite/rewrite-jhipster) | 2.0.5 |
| [org.openrewrite.recipe:rewrite-kotlin](https://github.com/openrewrite/rewrite-kotlin) | 1.4.15 |
| [org.openrewrite.recipe:rewrite-kubernetes](https://github.com/openrewrite/rewrite-kubernetes) | 2.0.5 |
| [org.openrewrite.recipe:rewrite-liberty](https://github.com/openrewrite/rewrite-liberty) | 1.0.2 |
| [org.openrewrite.recipe:rewrite-logging-frameworks](https://github.com/openrewrite/rewrite-logging-frameworks) | 2.0.5 |
Expand Down
12 changes: 6 additions & 6 deletions reference/recipes/kotlin/cleanup/equalsmethodusage.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ The `==` and `!=` operators are a more concise and elegant way to test structura

## Source

[GitHub](https://github.com/openrewrite/rewrite-kotlin/blob/main/src/main/java/org/openrewrite/kotlin/cleanup/EqualsMethodUsage.java), [Issue Tracker](https://github.com/openrewrite/rewrite-kotlin/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite/rewrite-kotlin/1.4.14/jar)
[GitHub](https://github.com/openrewrite/rewrite-kotlin/blob/main/src/main/java/org/openrewrite/kotlin/cleanup/EqualsMethodUsage.java), [Issue Tracker](https://github.com/openrewrite/rewrite-kotlin/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite/rewrite-kotlin/1.4.15/jar)

* groupId: org.openrewrite
* artifactId: rewrite-kotlin
* version: 1.4.14
* version: 1.4.15


## Usage

This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite:rewrite-kotlin:1.4.14` in your build file or by running a shell command (in which case no build changes are needed):
This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite:rewrite-kotlin:1.4.15` in your build file or by running a shell command (in which case no build changes are needed):
{% tabs %}
{% tab title="Gradle" %}
1. Add the following to your `build.gradle` file:
Expand All @@ -40,7 +40,7 @@ repositories {
}
dependencies {
rewrite("org.openrewrite:rewrite-kotlin:1.4.14")
rewrite("org.openrewrite:rewrite-kotlin:1.4.15")
}
```
{% endcode %}
Expand All @@ -60,7 +60,7 @@ initscript {
rootProject {
plugins.apply(org.openrewrite.gradle.RewritePlugin)
dependencies {
rewrite("org.openrewrite:rewrite-kotlin:1.4.14")
rewrite("org.openrewrite:rewrite-kotlin:1.4.15")
}
rewrite {
activeRecipe("org.openrewrite.kotlin.cleanup.EqualsMethodUsage")
Expand Down Expand Up @@ -97,7 +97,7 @@ rootProject {
<dependency>
<groupId>org.openrewrite</groupId>
<artifactId>rewrite-kotlin</artifactId>
<version>1.4.14</version>
<version>1.4.15</version>
</dependency>
</dependencies>
</plugin>
Expand Down
12 changes: 6 additions & 6 deletions reference/recipes/kotlin/cleanup/implicitparameterinlambda.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ _"it" is a special identifier that allows you to refer to the current parameter

## Source

[GitHub](https://github.com/openrewrite/rewrite-kotlin/blob/main/src/main/java/org/openrewrite/kotlin/cleanup/ImplicitParameterInLambda.java), [Issue Tracker](https://github.com/openrewrite/rewrite-kotlin/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite/rewrite-kotlin/1.4.14/jar)
[GitHub](https://github.com/openrewrite/rewrite-kotlin/blob/main/src/main/java/org/openrewrite/kotlin/cleanup/ImplicitParameterInLambda.java), [Issue Tracker](https://github.com/openrewrite/rewrite-kotlin/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite/rewrite-kotlin/1.4.15/jar)

* groupId: org.openrewrite
* artifactId: rewrite-kotlin
* version: 1.4.14
* version: 1.4.15


## Usage

This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite:rewrite-kotlin:1.4.14` in your build file or by running a shell command (in which case no build changes are needed):
This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite:rewrite-kotlin:1.4.15` in your build file or by running a shell command (in which case no build changes are needed):
{% tabs %}
{% tab title="Gradle" %}
1. Add the following to your `build.gradle` file:
Expand All @@ -38,7 +38,7 @@ repositories {
}
dependencies {
rewrite("org.openrewrite:rewrite-kotlin:1.4.14")
rewrite("org.openrewrite:rewrite-kotlin:1.4.15")
}
```
{% endcode %}
Expand All @@ -58,7 +58,7 @@ initscript {
rootProject {
plugins.apply(org.openrewrite.gradle.RewritePlugin)
dependencies {
rewrite("org.openrewrite:rewrite-kotlin:1.4.14")
rewrite("org.openrewrite:rewrite-kotlin:1.4.15")
}
rewrite {
activeRecipe("org.openrewrite.kotlin.cleanup.ImplicitParameterInLambda")
Expand Down Expand Up @@ -95,7 +95,7 @@ rootProject {
<dependency>
<groupId>org.openrewrite</groupId>
<artifactId>rewrite-kotlin</artifactId>
<version>1.4.14</version>
<version>1.4.15</version>
</dependency>
</dependencies>
</plugin>
Expand Down
12 changes: 6 additions & 6 deletions reference/recipes/kotlin/cleanup/removetrailingsemicolon.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ _Some Java programmers may mistakenly add semicolons at the end when writing Kot

## Source

[GitHub](https://github.com/openrewrite/rewrite-kotlin/blob/main/src/main/java/org/openrewrite/kotlin/cleanup/RemoveTrailingSemicolon.java), [Issue Tracker](https://github.com/openrewrite/rewrite-kotlin/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite/rewrite-kotlin/1.4.14/jar)
[GitHub](https://github.com/openrewrite/rewrite-kotlin/blob/main/src/main/java/org/openrewrite/kotlin/cleanup/RemoveTrailingSemicolon.java), [Issue Tracker](https://github.com/openrewrite/rewrite-kotlin/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite/rewrite-kotlin/1.4.15/jar)

* groupId: org.openrewrite
* artifactId: rewrite-kotlin
* version: 1.4.14
* version: 1.4.15


## Usage

This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite:rewrite-kotlin:1.4.14` in your build file or by running a shell command (in which case no build changes are needed):
This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite:rewrite-kotlin:1.4.15` in your build file or by running a shell command (in which case no build changes are needed):
{% tabs %}
{% tab title="Gradle" %}
1. Add the following to your `build.gradle` file:
Expand All @@ -34,7 +34,7 @@ repositories {
}
dependencies {
rewrite("org.openrewrite:rewrite-kotlin:1.4.14")
rewrite("org.openrewrite:rewrite-kotlin:1.4.15")
}
```
{% endcode %}
Expand All @@ -54,7 +54,7 @@ initscript {
rootProject {
plugins.apply(org.openrewrite.gradle.RewritePlugin)
dependencies {
rewrite("org.openrewrite:rewrite-kotlin:1.4.14")
rewrite("org.openrewrite:rewrite-kotlin:1.4.15")
}
rewrite {
activeRecipe("org.openrewrite.kotlin.cleanup.RemoveTrailingSemicolon")
Expand Down Expand Up @@ -91,7 +91,7 @@ rootProject {
<dependency>
<groupId>org.openrewrite</groupId>
<artifactId>rewrite-kotlin</artifactId>
<version>1.4.14</version>
<version>1.4.15</version>
</dependency>
</dependencies>
</plugin>
Expand Down
12 changes: 6 additions & 6 deletions reference/recipes/kotlin/cleanup/replacechartointwithcode.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ _Replace the usage of the deprecated `Char#toInt()` with `Char#code`. Please ens

## Source

[GitHub](https://github.com/openrewrite/rewrite-kotlin/blob/main/src/main/java/org/openrewrite/kotlin/cleanup/ReplaceCharToIntWithCode.java), [Issue Tracker](https://github.com/openrewrite/rewrite-kotlin/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite/rewrite-kotlin/1.4.14/jar)
[GitHub](https://github.com/openrewrite/rewrite-kotlin/blob/main/src/main/java/org/openrewrite/kotlin/cleanup/ReplaceCharToIntWithCode.java), [Issue Tracker](https://github.com/openrewrite/rewrite-kotlin/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite/rewrite-kotlin/1.4.15/jar)

* groupId: org.openrewrite
* artifactId: rewrite-kotlin
* version: 1.4.14
* version: 1.4.15


## Usage

This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite:rewrite-kotlin:1.4.14` in your build file or by running a shell command (in which case no build changes are needed):
This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite:rewrite-kotlin:1.4.15` in your build file or by running a shell command (in which case no build changes are needed):
{% tabs %}
{% tab title="Gradle" %}
1. Add the following to your `build.gradle` file:
Expand All @@ -34,7 +34,7 @@ repositories {
}
dependencies {
rewrite("org.openrewrite:rewrite-kotlin:1.4.14")
rewrite("org.openrewrite:rewrite-kotlin:1.4.15")
}
```
{% endcode %}
Expand All @@ -54,7 +54,7 @@ initscript {
rootProject {
plugins.apply(org.openrewrite.gradle.RewritePlugin)
dependencies {
rewrite("org.openrewrite:rewrite-kotlin:1.4.14")
rewrite("org.openrewrite:rewrite-kotlin:1.4.15")
}
rewrite {
activeRecipe("org.openrewrite.kotlin.cleanup.ReplaceCharToIntWithCode")
Expand Down Expand Up @@ -91,7 +91,7 @@ rootProject {
<dependency>
<groupId>org.openrewrite</groupId>
<artifactId>rewrite-kotlin</artifactId>
<version>1.4.14</version>
<version>1.4.15</version>
</dependency>
</dependencies>
</plugin>
Expand Down
12 changes: 6 additions & 6 deletions reference/recipes/kotlin/findkotlinsources.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ _Use data table to collect source files types and counts of files with extension

## Source

[GitHub](https://github.com/openrewrite/rewrite-kotlin/blob/main/src/main/java/org/openrewrite/kotlin/FindKotlinSources.java), [Issue Tracker](https://github.com/openrewrite/rewrite-kotlin/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite/rewrite-kotlin/1.4.14/jar)
[GitHub](https://github.com/openrewrite/rewrite-kotlin/blob/main/src/main/java/org/openrewrite/kotlin/FindKotlinSources.java), [Issue Tracker](https://github.com/openrewrite/rewrite-kotlin/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite/rewrite-kotlin/1.4.15/jar)

* groupId: org.openrewrite
* artifactId: rewrite-kotlin
* version: 1.4.14
* version: 1.4.15

## Data Tables (Only available on the [Moderne platform](https://app.moderne.io/))

Expand All @@ -26,7 +26,7 @@ _Kotlin sources present in LSTs on the SAAS._

## Usage

This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite:rewrite-kotlin:1.4.14` in your build file or by running a shell command (in which case no build changes are needed):
This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite:rewrite-kotlin:1.4.15` in your build file or by running a shell command (in which case no build changes are needed):
{% tabs %}
{% tab title="Gradle" %}
1. Add the following to your `build.gradle` file:
Expand All @@ -45,7 +45,7 @@ repositories {
}
dependencies {
rewrite("org.openrewrite:rewrite-kotlin:1.4.14")
rewrite("org.openrewrite:rewrite-kotlin:1.4.15")
}
```
{% endcode %}
Expand All @@ -65,7 +65,7 @@ initscript {
rootProject {
plugins.apply(org.openrewrite.gradle.RewritePlugin)
dependencies {
rewrite("org.openrewrite:rewrite-kotlin:1.4.14")
rewrite("org.openrewrite:rewrite-kotlin:1.4.15")
}
rewrite {
activeRecipe("org.openrewrite.kotlin.FindKotlinSources")
Expand Down Expand Up @@ -102,7 +102,7 @@ rootProject {
<dependency>
<groupId>org.openrewrite</groupId>
<artifactId>rewrite-kotlin</artifactId>
<version>1.4.14</version>
<version>1.4.15</version>
</dependency>
</dependencies>
</plugin>
Expand Down
12 changes: 6 additions & 6 deletions reference/recipes/kotlin/format/autoformat.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ _Format Kotlin code using a standard comprehensive set of Kotlin formatting reci

## Source

[GitHub](https://github.com/openrewrite/rewrite-kotlin/blob/main/src/main/java/org/openrewrite/kotlin/format/AutoFormat.java), [Issue Tracker](https://github.com/openrewrite/rewrite-kotlin/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite/rewrite-kotlin/1.4.14/jar)
[GitHub](https://github.com/openrewrite/rewrite-kotlin/blob/main/src/main/java/org/openrewrite/kotlin/format/AutoFormat.java), [Issue Tracker](https://github.com/openrewrite/rewrite-kotlin/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite/rewrite-kotlin/1.4.15/jar)

* groupId: org.openrewrite
* artifactId: rewrite-kotlin
* version: 1.4.14
* version: 1.4.15


## Usage

This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite:rewrite-kotlin:1.4.14` in your build file or by running a shell command (in which case no build changes are needed):
This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite:rewrite-kotlin:1.4.15` in your build file or by running a shell command (in which case no build changes are needed):
{% tabs %}
{% tab title="Gradle" %}
1. Add the following to your `build.gradle` file:
Expand All @@ -34,7 +34,7 @@ repositories {
}
dependencies {
rewrite("org.openrewrite:rewrite-kotlin:1.4.14")
rewrite("org.openrewrite:rewrite-kotlin:1.4.15")
}
```
{% endcode %}
Expand All @@ -54,7 +54,7 @@ initscript {
rootProject {
plugins.apply(org.openrewrite.gradle.RewritePlugin)
dependencies {
rewrite("org.openrewrite:rewrite-kotlin:1.4.14")
rewrite("org.openrewrite:rewrite-kotlin:1.4.15")
}
rewrite {
activeRecipe("org.openrewrite.kotlin.format.AutoFormat")
Expand Down Expand Up @@ -91,7 +91,7 @@ rootProject {
<dependency>
<groupId>org.openrewrite</groupId>
<artifactId>rewrite-kotlin</artifactId>
<version>1.4.14</version>
<version>1.4.15</version>
</dependency>
</dependencies>
</plugin>
Expand Down
10 changes: 5 additions & 5 deletions reference/recipes/kotlin/renametypealias.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ _Change the name of a given type alias._

## Source

[GitHub](https://github.com/openrewrite/rewrite-kotlin/blob/main/src/main/java/org/openrewrite/kotlin/RenameTypeAlias.java), [Issue Tracker](https://github.com/openrewrite/rewrite-kotlin/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite/rewrite-kotlin/1.4.14/jar)
[GitHub](https://github.com/openrewrite/rewrite-kotlin/blob/main/src/main/java/org/openrewrite/kotlin/RenameTypeAlias.java), [Issue Tracker](https://github.com/openrewrite/rewrite-kotlin/issues), [Maven Central](https://central.sonatype.com/artifact/org.openrewrite/rewrite-kotlin/1.4.15/jar)

* groupId: org.openrewrite
* artifactId: rewrite-kotlin
* version: 1.4.14
* version: 1.4.15

## Options

Expand Down Expand Up @@ -40,7 +40,7 @@ recipeList:
```
{% endcode %}
Now that `com.yourorg.RenameTypeAliasExample` has been defined activate it and take a dependency on org.openrewrite:rewrite-kotlin:1.4.14 in your build file:
Now that `com.yourorg.RenameTypeAliasExample` has been defined activate it and take a dependency on org.openrewrite:rewrite-kotlin:1.4.15 in your build file:
{% tabs %}
{% tab title="Gradle" %}
1. Add the following to your `build.gradle` file:
Expand All @@ -59,7 +59,7 @@ repositories {
}
dependencies {
rewrite("org.openrewrite:rewrite-kotlin:1.4.14")
rewrite("org.openrewrite:rewrite-kotlin:1.4.15")
}
```
{% endcode %}
Expand All @@ -85,7 +85,7 @@ dependencies {
<dependency>
<groupId>org.openrewrite</groupId>
<artifactId>rewrite-kotlin</artifactId>
<version>1.4.14</version>
<version>1.4.15</version>
</dependency>
</dependencies>
</plugin>
Expand Down

0 comments on commit 80e9fc7

Please sign in to comment.