Skip to content

Commit 765a610

Browse files
Update recipe documentation examples (#106)
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.recipes.rewrite.OpenRewriteRecipeBestPractices?organizationId=ODQ2MGExMTUtNDg0My00N2EwLTgzMGMtNGE1NGExMTBmZDkw Co-authored-by: Moderne <team@moderne.io>
1 parent 676589d commit 765a610

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

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

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
type: specs.openrewrite.org/v1beta/example
1616
recipeName: org.openrewrite.quarkus.AddQuarkusProperty
1717
examples:
18-
- description: ''
18+
- description: '`AddQuarkusPropertyTest#addNestedIntoExisting`'
1919
parameters:
2020
- quarkus.http.port
2121
- '9090'
@@ -28,6 +28,7 @@ examples:
2828
after: |
2929
quarkus.http.port=9090
3030
quarkus.http.root-path=/api
31+
path: src/main/resources/application.properties
3132
language: properties
3233
- before: |
3334
quarkus:
@@ -38,12 +39,13 @@ examples:
3839
http:
3940
root-path: /api
4041
port: 9090
42+
path: src/main/resources/application.yaml
4143
language: yaml
4244
---
4345
type: specs.openrewrite.org/v1beta/example
4446
recipeName: org.openrewrite.quarkus.ConfigPropertiesToConfigMapping
4547
examples:
46-
- description: ''
48+
- description: '`ConfigPropertiesToConfigMappingTest#migrateAnnotatedInterfaces`'
4749
sources:
4850
- before: |
4951
import io.quarkus.arc.config.ConfigProperties;
@@ -68,7 +70,7 @@ examples:
6870
type: specs.openrewrite.org/v1beta/example
6971
recipeName: org.openrewrite.quarkus.ConfigureQuarkusMavenPluginWithReasonableDefaults
7072
examples:
71-
- description: ''
73+
- description: '`ConfigureQuarkusMavenPluginWithReasonableDefaultsTest#configureQuarkusMavenPluginWithReasonableDefaults`'
7274
sources:
7375
- before: |
7476
<project>
@@ -125,7 +127,7 @@ examples:
125127
type: specs.openrewrite.org/v1beta/example
126128
recipeName: org.openrewrite.quarkus.MigrateQuarkusMavenPluginNativeImageGoal
127129
examples:
128-
- description: ''
130+
- description: '`MigrateQuarkusMavenPluginNativeImageGoalTest#removeQuarkusMavenPluginNativeImageGoalTest`'
129131
sources:
130132
- before: |
131133
<project>
@@ -188,7 +190,7 @@ examples:
188190
type: specs.openrewrite.org/v1beta/example
189191
recipeName: org.openrewrite.quarkus.MultiTransformHotStreamToMultiHotStream
190192
examples:
191-
- description: ''
193+
- description: '`MultiTransformHotStreamToMultiHotStreamTest#replaceTransform`'
192194
sources:
193195
- before: |
194196
import io.smallrye.mutiny.Multi;
@@ -222,14 +224,14 @@ examples:
222224
type: specs.openrewrite.org/v1beta/example
223225
recipeName: org.openrewrite.quarkus.Quarkus1to1_13Migration
224226
examples:
225-
- description: ''
227+
- description: '`Quarkus1to113MigrationPropertiesTest#quarkusDevInstrumentation`'
226228
sources:
227229
- before: |
228230
quarkus.dev.instrumentation=true
229231
after: |
230232
quarkus.live-reload.instrumentation=true
231233
language: properties
232-
- description: ''
234+
- description: '`Quarkus1to113MigrationTest#changeMultiTransformAndByTakingFirst`'
233235
sources:
234236
- before: |
235237
import io.smallrye.mutiny.Multi;
@@ -284,7 +286,7 @@ examples:
284286
type: specs.openrewrite.org/v1beta/example
285287
recipeName: org.openrewrite.quarkus.Slf4jToQuarkusLogger
286288
examples:
287-
- description: ''
289+
- description: '`Slf4JToQuarkusLoggerTest#shouldReplaceSlf4jLoggerWithQuarkusLogAndRemoveInject`'
288290
sources:
289291
- before: |
290292
import jakarta.enterprise.event.Observes;
@@ -323,7 +325,7 @@ examples:
323325
type: specs.openrewrite.org/v1beta/example
324326
recipeName: org.openrewrite.quarkus.migrate.javaee.JavaEEtoQuarkus2CodeMigration
325327
examples:
326-
- description: ''
328+
- description: '`JavaEEtoQuarkus2CodeTranformationsTest#javaEEtoQuarkus2CodeTransformationsTest`'
327329
sources:
328330
- before: |
329331
package org.acme;
@@ -444,7 +446,7 @@ examples:
444446
type: specs.openrewrite.org/v1beta/example
445447
recipeName: org.openrewrite.quarkus.migrate.javaee.JavaEEtoQuarkus2Migration
446448
examples:
447-
- description: ''
449+
- description: '`JavaEEtoQuarkus2MavenDependenciesMigrationTest#convertJavaEEToQuarkusDependencies1`'
448450
sources:
449451
- before: |
450452
<?xml version="1.0" encoding="UTF-8"?>
@@ -621,7 +623,7 @@ examples:
621623
type: specs.openrewrite.org/v1beta/example
622624
recipeName: org.openrewrite.quarkus.quarkus2.GrpcServiceAnnotationToGrpcClient
623625
examples:
624-
- description: ''
626+
- description: '`GrpcServiceAnnotationToGrpcClientTest#grpcServiceAnnotationToGrpcClient`'
625627
sources:
626628
- before: |
627629
package org.openrewrite.example;
@@ -652,7 +654,7 @@ examples:
652654
type: specs.openrewrite.org/v1beta/example
653655
recipeName: org.openrewrite.quarkus.quarkus2.Quarkus1to2Migration
654656
examples:
655-
- description: ''
657+
- description: '`Quarkus1to2MigrationPropertiesTest#smallryeJwt`'
656658
sources:
657659
- before: |
658660
smallrye.jwt.sign.key-location=/keys/signing
@@ -661,7 +663,7 @@ examples:
661663
smallrye.jwt.sign.key.location=/keys/signing
662664
smallrye.jwt.encrypt.key.location=/keys/encrypt
663665
language: properties
664-
- description: ''
666+
- description: '`Quarkus1to2MigrationTest#quteResourcePathToLocation`'
665667
sources:
666668
- before: |
667669
import io.quarkus.qute.api.ResourcePath;
@@ -696,7 +698,7 @@ examples:
696698
type: specs.openrewrite.org/v1beta/example
697699
recipeName: org.openrewrite.quarkus.quarkus2.RemoveAvroMavenPlugin
698700
examples:
699-
- description: ''
701+
- description: '`RemoveAvroMavenPluginTest#removeAvroMavenPluginIfQuarkusMavenPluginPresent`'
700702
sources:
701703
- before: |
702704
<project>
@@ -741,7 +743,7 @@ examples:
741743
type: specs.openrewrite.org/v1beta/example
742744
recipeName: org.openrewrite.quarkus.quarkus2.UseIdentifierOnDefaultKafkaBroker
743745
examples:
744-
- description: ''
746+
- description: '`UseIdentifierOnDefaultKafkaBrokerTest#namedAnnotationToIdentifier`'
745747
sources:
746748
- before: |
747749
package org.openrewrite.example;
@@ -773,7 +775,7 @@ examples:
773775
type: specs.openrewrite.org/v1beta/example
774776
recipeName: org.openrewrite.quarkus.quarkus2.UsePanacheEntityBaseStaticMethods
775777
examples:
776-
- description: ''
778+
- description: '`UsePanacheEntityBaseStaticMethodsTest#useStaticMethods`'
777779
sources:
778780
- before: |
779781
package org.openrewrite.example;
@@ -804,7 +806,7 @@ examples:
804806
type: specs.openrewrite.org/v1beta/example
805807
recipeName: org.openrewrite.quarkus.quarkus2.UsePanacheEntityBaseUniT
806808
examples:
807-
- description: ''
809+
- description: '`UsePanacheEntityBaseUniTTest#replaceWithVoid`'
808810
sources:
809811
- before: |
810812
package org.openrewrite.example;
@@ -837,7 +839,7 @@ examples:
837839
type: specs.openrewrite.org/v1beta/example
838840
recipeName: org.openrewrite.quarkus.quarkus2.UseReactivePanacheMongoEntityBaseUniT
839841
examples:
840-
- description: ''
842+
- description: '`UseReactivePanacheMongoEntityBaseUniTTest#replaceWithVoid`'
841843
sources:
842844
- before: |
843845
package org.openrewrite.example;

0 commit comments

Comments
 (0)