Skip to content

Commit 6e70c05

Browse files
Update recipe documentation examples
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.recipes.rewrite.OpenRewriteRecipeBestPractices?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl Co-authored-by: Moderne <team@moderne.io>
1 parent 8141d9c commit 6e70c05

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

src/main/resources/META-INF/rewrite/examples.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,32 @@ examples:
444444
type: specs.openrewrite.org/v1beta/example
445445
recipeName: org.openrewrite.java.micronaut.UpdateMicronautPlatformBom
446446
examples:
447+
- description: '`UpdateMicronautSessionTest#updateGradleDependencies`'
448+
sources:
449+
- before: |
450+
plugins {
451+
id "java-library"
452+
}
453+
dependencies {
454+
implementation("io.micronaut:micronaut-session")
455+
}
456+
repositories {
457+
mavenCentral()
458+
}
459+
after: |
460+
plugins {
461+
id "java-library"
462+
}
463+
dependencies {
464+
implementation("io.micronaut.session:micronaut-session")
465+
}
466+
repositories {
467+
mavenCentral()
468+
}
469+
path: build.gradle
470+
language: groovy
471+
- before: project
472+
language: mavenProject
447473
- description: '`UpdateBuildPluginsTest#updateGradleBuildPlugins`'
448474
sources:
449475
- before: |
@@ -514,32 +540,6 @@ examples:
514540
language: java
515541
- before: project
516542
language: mavenProject
517-
- description: '`UpdateMicronautSessionTest#updateGradleDependencies`'
518-
sources:
519-
- before: |
520-
plugins {
521-
id "java-library"
522-
}
523-
dependencies {
524-
implementation("io.micronaut:micronaut-session")
525-
}
526-
repositories {
527-
mavenCentral()
528-
}
529-
after: |
530-
plugins {
531-
id "java-library"
532-
}
533-
dependencies {
534-
implementation("io.micronaut.session:micronaut-session")
535-
}
536-
repositories {
537-
mavenCentral()
538-
}
539-
path: build.gradle
540-
language: groovy
541-
- before: project
542-
language: mavenProject
543543
---
544544
type: specs.openrewrite.org/v1beta/example
545545
recipeName: org.openrewrite.java.micronaut.UpgradeMicronautGradlePropertiesVersion

0 commit comments

Comments
 (0)