1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0
5+ http://maven.apache.org/xsd/maven-4.0.0.xsd" >
6+ <modelVersion >4.0.0</modelVersion >
7+
8+ <groupId >org.checkstyle.autofix</groupId >
9+ <artifactId >checkstyle-openrewrite-recipes</artifactId >
10+ <version >1.0.0</version >
11+ <packaging >jar</packaging >
12+
13+ <name >checkstyle openrewrite recipes</name >
14+ <description >Automatically fix Checkstyle violations with OpenRewrite</description >
15+ <url >https://github.com/checkstyle/checkstyle-openrewrite-recipes</url >
16+
17+ <properties >
18+ <maven .compiler.source>11</maven .compiler.source>
19+ <maven .compiler.target>11</maven .compiler.target>
20+ <maven .compiler.plugin>3.11.0</maven .compiler.plugin>
21+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
22+
23+ <rewrite .version>8.54.0</rewrite .version>
24+ <recipe .bom.version>3.9.0</recipe .bom.version>
25+ <junit .version>5.13.0</junit .version>
26+ <assertj .version>3.24.2</assertj .version>
27+
28+ <!-- Checkstyle properties -->
29+ <maven .checkstyle.plugin.version>3.6.0</maven .checkstyle.plugin.version>
30+ <checkstyle .version>10.25.0</checkstyle .version>
31+ </properties >
32+
33+ <dependencyManagement >
34+ <dependencies >
35+ <dependency >
36+ <groupId >org.openrewrite.recipe</groupId >
37+ <artifactId >rewrite-recipe-bom</artifactId >
38+ <version >${recipe.bom.version} </version >
39+ <type >pom</type >
40+ <scope >import</scope >
41+ </dependency >
42+ </dependencies >
43+ </dependencyManagement >
44+
45+ <dependencies >
46+ <!-- OpenRewrite core dependencies - using consistent versions -->
47+ <dependency >
48+ <groupId >org.openrewrite</groupId >
49+ <artifactId >rewrite-java</artifactId >
50+ <version >${rewrite.version} </version >
51+ </dependency >
52+ <dependency >
53+ <groupId >org.openrewrite</groupId >
54+ <artifactId >rewrite-java-11</artifactId >
55+ <version >${rewrite.version} </version >
56+ </dependency >
57+
58+ <!-- Test dependencies -->
59+ <dependency >
60+ <groupId >org.openrewrite</groupId >
61+ <artifactId >rewrite-test</artifactId >
62+ <version >${rewrite.version} </version >
63+ <scope >test</scope >
64+ </dependency >
65+ <dependency >
66+ <groupId >org.junit.jupiter</groupId >
67+ <artifactId >junit-jupiter</artifactId >
68+ <version >${junit.version} </version >
69+ <scope >test</scope >
70+ </dependency >
71+ <dependency >
72+ <groupId >org.assertj</groupId >
73+ <artifactId >assertj-core</artifactId >
74+ <version >${assertj.version} </version >
75+ <scope >test</scope >
76+ </dependency >
77+ </dependencies >
78+
79+ <build >
80+ <plugins >
81+ <!-- Compiler plugin -->
82+ <plugin >
83+ <groupId >org.apache.maven.plugins</groupId >
84+ <artifactId >maven-compiler-plugin</artifactId >
85+ <version >${maven.compiler.plugin} </version >
86+ <configuration >
87+ <source >${maven.compiler.source} </source >
88+ <target >${maven.compiler.target} </target >
89+ <encoding >${project.build.sourceEncoding} </encoding >
90+ </configuration >
91+ </plugin >
92+
93+ <!-- Surefire plugin for running tests -->
94+ <plugin >
95+ <groupId >org.apache.maven.plugins</groupId >
96+ <artifactId >maven-surefire-plugin</artifactId >
97+ <version >3.2.2</version >
98+ <configuration >
99+ <systemPropertyVariables >
100+ <org .slf4j.simpleLogger.log.org.openrewrite>debug</org .slf4j.simpleLogger.log.org.openrewrite>
101+ </systemPropertyVariables >
102+ </configuration >
103+ </plugin >
104+
105+ <!-- Checkstyle plugin for code style regulation -->
106+ <plugin >
107+ <groupId >org.apache.maven.plugins</groupId >
108+ <artifactId >maven-checkstyle-plugin</artifactId >
109+ <version >${maven.checkstyle.plugin.version} </version >
110+ <dependencies >
111+ <dependency >
112+ <groupId >com.puppycrawl.tools</groupId >
113+ <artifactId >checkstyle</artifactId >
114+ <version >${checkstyle.version} </version >
115+ </dependency >
116+ </dependencies >
117+ <executions >
118+ <execution >
119+ <id >check</id >
120+ <goals >
121+ <goal >check</goal >
122+ </goals >
123+ <configuration >
124+ <includeResources >false</includeResources >
125+ <includeTestResources >false</includeTestResources >
126+ <includeTestSourceDirectory >true</includeTestSourceDirectory >
127+ <configLocation >
128+ https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-${checkstyle.version} /config/checkstyle-checks.xml
129+ </configLocation >
130+ <propertiesLocation >config/checkstyle.properties</propertiesLocation >
131+ <failOnViolation >true</failOnViolation >
132+ <logViolationsToConsole >true</logViolationsToConsole >
133+ <maxAllowedViolations >0</maxAllowedViolations >
134+ <violationSeverity >error</violationSeverity >
135+ <outputFileFormat >xml</outputFileFormat >
136+ <outputFile >
137+ ${project.build.directory} /checkstyle/checkstyle-report.xml
138+ </outputFile >
139+ </configuration >
140+ </execution >
141+ </executions >
142+ </plugin >
143+ </plugins >
144+ </build >
145+
146+ </project >
0 commit comments