Skip to content

Commit dae1b10

Browse files
committed
Generate upgrade-sdk-depenencies recipe
1 parent 5fe2eec commit dae1b10

File tree

8 files changed

+2518
-34
lines changed

8 files changed

+2518
-34
lines changed

migration-tool/pom.xml

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,39 +45,49 @@
4545
<type>pom</type>
4646
<scope>import</scope>
4747
</dependency>
48+
<dependency>
49+
<groupId>software.amazon.awssdk</groupId>
50+
<artifactId>bom-internal</artifactId>
51+
<version>${awsjavasdk.version}</version>
52+
<type>pom</type>
53+
<scope>import</scope>
54+
</dependency>
4855
</dependencies>
4956
</dependencyManagement>
5057

5158
<dependencies>
52-
<!-- rewrite-java dependencies only necessary for Java Recipe development -->
5359
<dependency>
5460
<groupId>org.openrewrite</groupId>
5561
<artifactId>rewrite-java</artifactId>
5662
<scope>compile</scope>
5763
</dependency>
58-
59-
<!-- You only need the version that corresponds to your current
60-
Java version. It is fine to add all of them, though, as
61-
they can coexist on a classpath. -->
6264
<dependency>
6365
<groupId>org.openrewrite</groupId>
6466
<artifactId>rewrite-java-8</artifactId>
6567
<scope>runtime</scope>
6668
</dependency>
67-
68-
<!-- rewrite-maven dependency only necessary for Maven Recipe development -->
6969
<dependency>
7070
<groupId>org.openrewrite</groupId>
7171
<artifactId>rewrite-maven</artifactId>
7272
<scope>compile</scope>
7373
</dependency>
7474

75-
<!-- For authoring tests for any kind of Recipe -->
7675
<dependency>
7776
<groupId>org.openrewrite</groupId>
7877
<artifactId>rewrite-test</artifactId>
7978
<scope>test</scope>
8079
</dependency>
80+
<dependency>
81+
<groupId>org.junit.jupiter</groupId>
82+
<artifactId>junit-jupiter</artifactId>
83+
<scope>test</scope>
84+
</dependency>
85+
<dependency>
86+
<groupId>org.junit.jupiter</groupId>
87+
<artifactId>junit-jupiter-engine</artifactId>
88+
<version>${junit5.version}</version>
89+
<scope>test</scope>
90+
</dependency>
8191
</dependencies>
8292

8393
<build>
@@ -89,6 +99,25 @@
8999
<skip>true</skip>
90100
</configuration>
91101
</plugin>
102+
<plugin>
103+
<artifactId>exec-maven-plugin</artifactId>
104+
<groupId>org.codehaus.mojo</groupId>
105+
<version>${exec-maven-plugin.version}</version>
106+
<executions>
107+
<execution>
108+
<id>generate-recipe</id>
109+
<phase>generate-resources</phase>
110+
<goals>
111+
<goal>exec</goal>
112+
</goals>
113+
<configuration>
114+
<executable>python</executable>
115+
<commandlineArgs>${basedir}/src/main/resources/generate-recipes
116+
</commandlineArgs>
117+
</configuration>
118+
</execution>
119+
</executions>
120+
</plugin>
92121
</plugins>
93122
</build>
94123
</project>

migration-tool/src/main/resources/META-INF/rewrite/upgrade-sdk-depdendencies.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)