Skip to content

Commit

Permalink
Package OpenRewrite recipes as jar
Browse files Browse the repository at this point in the history
  • Loading branch information
ErhardSiegl committed Jan 19, 2024
1 parent 8d5aa62 commit 815d31a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
19 changes: 19 additions & 0 deletions rules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,25 @@
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>generate-openrewrite-jar</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/assembly/rewrite.xml</descriptor>
</descriptors>
<appendAssemblyId>true</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
<!--
we need to download the CSS files each time we generate the surefire report due to
https://issues.apache.org/jira/browse/SUREFIRE-616
Expand Down
20 changes: 20 additions & 0 deletions rules/src/main/assembly/rewrite.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.1 https://maven.apache.org/xsd/assembly-2.1.1.xsd">
<id>rewrite</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>rules-reviewed/openrewrite</directory>
<includes>
<include>**/*.yaml</include>
<include>**/*.yml</include>
</includes>
<outputDirectory>META-INF/rewrite</outputDirectory>
</fileSet>
</fileSets>
</assembly>

0 comments on commit 815d31a

Please sign in to comment.