Skip to content

Commit

Permalink
Add missing Gradle dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Dec 9, 2024
1 parent 83d2c2f commit c972f02
Showing 1 changed file with 28 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,38 @@ public void defaults(RecipeSpec spec) {

@Test
void updateGradleDependencies() {
rewriteRun(mavenProject("project",
//language=groovy
buildGradle("""
rewriteRun(
mavenProject("project",
//language=groovy
buildGradle(
"""
dependencies {
implementation("io.micronaut:micronaut-session")
}
""", """
repositories {
mavenCentral()
}
""",
"""
dependencies {
implementation("io.micronaut.session:micronaut-session")
}
""")));
repositories {
mavenCentral()
}
"""
)
)
);
}

@Test
void updateMavenDependencies() {
rewriteRun(mavenProject("project",
//language=xml
pomXml("""
rewriteRun(
mavenProject("project",
//language=xml
pomXml(
"""
<project>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
Expand All @@ -69,7 +83,8 @@ void updateMavenDependencies() {
</dependency>
</dependencies>
</project>
""".formatted(MicronautRewriteTestVersions.getLatestMN3Version()), """
""".formatted(MicronautRewriteTestVersions.getLatestMN3Version()),
"""
<project>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
Expand All @@ -95,6 +110,9 @@ void updateMavenDependencies() {
</dependency>
</dependencies>
</project>
""".formatted(latestMicronautVersion))));
""".formatted(latestMicronautVersion)
)
)
);
}
}

0 comments on commit c972f02

Please sign in to comment.