Skip to content

Commit

Permalink
Update with rewrite 8.37.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sambsnyd committed Oct 11, 2024
1 parent 8a4994f commit 818f226
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
19 changes: 3 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>5.43.0-SNAPSHOT</version>
<version>5.42.2-SNAPSHOT</version>
<packaging>maven-plugin</packaging>

<name>rewrite-maven-plugin</name>
Expand Down Expand Up @@ -62,8 +62,8 @@

<properties>
<!-- Pinned versions, as RELEASE would make it into the published pom.xml -->
<rewrite.version>8.38.0-SNAPSHOT</rewrite.version>
<rewrite.kotlin.version>1.22.0-SNAPSHOT</rewrite.kotlin.version>
<rewrite.version>8.37.2</rewrite.version>
<rewrite.kotlin.version>1.21.0</rewrite.kotlin.version>

<!-- using 'ssh' url scheme by default, which assumes a human is performing git operations leveraging an ssh key -->
<developerConnectionUrl>scm:git:ssh://git@github.com/openrewrite/rewrite-maven-plugin.git
Expand Down Expand Up @@ -218,19 +218,6 @@
<artifactId>rewrite-kotlin</artifactId>
<version>${rewrite.kotlin.version}</version>
</dependency>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<!--suppress MavenPackageUpdate Pinned to 9.3, because 10.x does not support Java 8. -->
<version>9.3</version>
<!-- Only used to load checkstyle configuration files, don't need any of its transitive dependencies for that -->
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-xml</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package org.openrewrite.maven;

import com.puppycrawl.tools.checkstyle.Checker;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.model.Plugin;
import org.apache.maven.plugin.AbstractMojo;
Expand Down Expand Up @@ -268,7 +267,7 @@ protected List<NamedStyles> loadStyles(MavenProject project, Environment env) {
styles.add(loadCheckstyleConfig(toCheckStyleDocument(xmlCheckstyleRules.getChild(0)), emptyMap()));
} else {
// When no config location is specified, the maven-checkstyle-plugin falls back on sun_checks.xml
try (InputStream is = Checker.class.getResourceAsStream("/sun_checks.xml")) {
try (InputStream is = org.openrewrite.tools.checkstyle.Checker.class.getResourceAsStream("/sun_checks.xml")) {
if (is != null) {
styles.add(loadCheckstyleConfig(is, emptyMap()));
}
Expand Down

0 comments on commit 818f226

Please sign in to comment.