|
13 | 13 | # limitations under the License. |
14 | 14 | --- |
15 | 15 | type: specs.openrewrite.org/v1beta/example |
| 16 | +recipeName: org.openrewrite.quarkus.spring.AddQuarkusMavenPlugin |
| 17 | +examples: |
| 18 | +- description: '`AddQuarkusMavenPluginTest#addPlugin`' |
| 19 | + sources: |
| 20 | + - before: | |
| 21 | + <project> |
| 22 | + <modelVersion>4.0.0</modelVersion> |
| 23 | + <groupId>com.example</groupId> |
| 24 | + <artifactId>demo</artifactId> |
| 25 | + <version>1.0.0</version> |
| 26 | + <dependencyManagement> |
| 27 | + <dependencies> |
| 28 | + <dependency> |
| 29 | + <groupId>io.quarkus.platform</groupId> |
| 30 | + <artifactId>quarkus-bom</artifactId> |
| 31 | + <version>3.17.0</version> |
| 32 | + <type>pom</type> |
| 33 | + <scope>import</scope> |
| 34 | + </dependency> |
| 35 | + </dependencies> |
| 36 | + </dependencyManagement> |
| 37 | + </project> |
| 38 | + after: | |
| 39 | + <project> |
| 40 | + <modelVersion>4.0.0</modelVersion> |
| 41 | + <groupId>com.example</groupId> |
| 42 | + <artifactId>demo</artifactId> |
| 43 | + <version>1.0.0</version> |
| 44 | + <dependencyManagement> |
| 45 | + <dependencies> |
| 46 | + <dependency> |
| 47 | + <groupId>io.quarkus.platform</groupId> |
| 48 | + <artifactId>quarkus-bom</artifactId> |
| 49 | + <version>3.17.0</version> |
| 50 | + <type>pom</type> |
| 51 | + <scope>import</scope> |
| 52 | + </dependency> |
| 53 | + </dependencies> |
| 54 | + </dependencyManagement> |
| 55 | + <build> |
| 56 | + <plugins> |
| 57 | + <plugin> |
| 58 | + <groupId>io.quarkus.platform</groupId> |
| 59 | + <artifactId>quarkus-maven-plugin</artifactId> |
| 60 | + <version>3.17.0</version> |
| 61 | + <executions> |
| 62 | + <execution> |
| 63 | + <goals> |
| 64 | + <goal>build</goal> |
| 65 | + <goal>generate-code</goal> |
| 66 | + <goal>generate-code-tests</goal> |
| 67 | + </goals> |
| 68 | + </execution> |
| 69 | + </executions> |
| 70 | + <extensions>true</extensions> |
| 71 | + </plugin> |
| 72 | + </plugins> |
| 73 | + </build> |
| 74 | + </project> |
| 75 | + path: pom.xml |
| 76 | + language: xml |
| 77 | +--- |
| 78 | +type: specs.openrewrite.org/v1beta/example |
16 | 79 | recipeName: org.openrewrite.quarkus.spring.AddSpringCompatibilityExtensions |
17 | 80 | examples: |
18 | 81 | - description: '`AddSpringCompatibilityExtensionsTest#addSpringCompatibilityExtensionsForCommonAnnotations`' |
@@ -339,6 +402,16 @@ examples: |
339 | 402 | <groupId>io.quarkus.platform</groupId> |
340 | 403 | <artifactId>quarkus-maven-plugin</artifactId> |
341 | 404 | <version>3.2.5.Final</version> |
| 405 | + <executions> |
| 406 | + <execution> |
| 407 | + <goals> |
| 408 | + <goal>build</goal> |
| 409 | + <goal>generate-code</goal> |
| 410 | + <goal>generate-code-tests</goal> |
| 411 | + </goals> |
| 412 | + </execution> |
| 413 | + </executions> |
| 414 | + <extensions>true</extensions> |
342 | 415 | </plugin> |
343 | 416 | </plugins> |
344 | 417 | </build> |
|
0 commit comments