Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/resources/migrations.csv
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ postgresql,,org.postgresql,,
saxon,saxon,net.sf.saxon,saxon,
servletapi,servlet-api,javax.servlet,servlet-api,
servletapi,servletapi,javax.servlet,servlet-api,
software.amazon.ion,"ion-java","com.amazon.ion","ion-java",
springframework,,org.springframework,,
stax-utils,stax-utils,net.java.dev.stax-utils,stax-utils,
tagsoup,tagsoup,org.ccil.cowan.tagsoup,tagsoup,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,48 @@ void changeRelocatedMavenDependencies() {
);
}

@Test
void findRelocatedIonJava() {
rewriteRun(
recipe -> recipe.dataTable(RelocatedDependencyReport.Row.class, rows -> assertThat(rows).containsExactly(
new RelocatedDependencyReport.Row("software.amazon.ion", "ion-java", "com.amazon.ion", "ion-java", null)
)),
//language=xml
pomXml(
"""
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.openrewrite.example</groupId>
<artifactId>rewrite-example</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>software.amazon.ion</groupId>
<artifactId>ion-java</artifactId>
<version>1.5.1</version>
</dependency>
</dependencies>
</project>
""",
"""
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.openrewrite.example</groupId>
<artifactId>rewrite-example</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<!--~~(Relocated to com.amazon.ion:ion-java)~~>--><dependency>
<groupId>software.amazon.ion</groupId>
<artifactId>ion-java</artifactId>
<version>1.5.1</version>
</dependency>
</dependencies>
</project>
"""
)
);
}

@Test
void findRelocatedMavenPlugins() {
rewriteRun(
Expand Down
Loading