|
120 | 120 | </execution> |
121 | 121 | </executions> |
122 | 122 | </plugin> |
123 | | - <plugin> |
124 | | - <groupId>com.diffplug.spotless</groupId> |
125 | | - <artifactId>spotless-maven-plugin</artifactId> |
126 | | - <version>${spotless.version}</version> |
127 | | - <configuration> |
128 | | - <formats> |
129 | | - <format> |
130 | | - <includes> |
131 | | - <include>*.md</include> |
132 | | - <include>.gitignore</include> |
133 | | - </includes> |
134 | | - <trimTrailingWhitespace/> |
135 | | - <endWithNewline/> |
136 | | - <indent> |
137 | | - <spaces>true</spaces> |
138 | | - <spacesPerTab>2</spacesPerTab> |
139 | | - </indent> |
140 | | - </format> |
141 | | - </formats> |
142 | | - <java> |
143 | | - <includes> |
144 | | - <include>**/src/main/java/**/*.java</include> |
145 | | - <include>**/src/test/java/**/*.java</include> |
146 | | - </includes> |
147 | | - <googleJavaFormat> |
148 | | - <version>1.18.1</version> |
149 | | - <style>AOSP</style> |
150 | | - <reflowLongStrings>true</reflowLongStrings> |
151 | | - <formatJavadoc>false</formatJavadoc> |
152 | | - </googleJavaFormat> |
153 | | - <importOrder/> |
154 | | - <removeUnusedImports/> |
155 | | - </java> |
156 | | - <pom> |
157 | | - <includes> |
158 | | - <include>**/pom.xml</include> |
159 | | - </includes> |
160 | | - <sortPom/> |
161 | | - </pom> |
162 | | - </configuration> |
163 | | - <executions> |
164 | | - <execution> |
165 | | - <id>format</id> |
166 | | - <goals> |
167 | | - <goal>check</goal> |
168 | | - </goals> |
169 | | - <phase>process-sources</phase> |
170 | | - </execution> |
171 | | - </executions> |
172 | | - </plugin> |
173 | 123 | </plugins> |
174 | 124 | </build> |
175 | 125 |
|
176 | 126 | <profiles> |
| 127 | + <profile> |
| 128 | + <id>java17</id> |
| 129 | + <activation> |
| 130 | + <jdk>[17,)</jdk> |
| 131 | + </activation> |
| 132 | + <build> |
| 133 | + <plugins> |
| 134 | + <plugin> |
| 135 | + <groupId>com.diffplug.spotless</groupId> |
| 136 | + <artifactId>spotless-maven-plugin</artifactId> |
| 137 | + <version>${spotless.version}</version> |
| 138 | + <configuration> |
| 139 | + <formats> |
| 140 | + <format> |
| 141 | + <includes> |
| 142 | + <include>*.md</include> |
| 143 | + <include>.gitignore</include> |
| 144 | + </includes> |
| 145 | + <trimTrailingWhitespace/> |
| 146 | + <endWithNewline/> |
| 147 | + <indent> |
| 148 | + <spaces>true</spaces> |
| 149 | + <spacesPerTab>2</spacesPerTab> |
| 150 | + </indent> |
| 151 | + </format> |
| 152 | + </formats> |
| 153 | + <java> |
| 154 | + <includes> |
| 155 | + <include>**/src/main/java/**/*.java</include> |
| 156 | + <include>**/src/test/java/**/*.java</include> |
| 157 | + </includes> |
| 158 | + <googleJavaFormat> |
| 159 | + <version>1.18.1</version> |
| 160 | + <style>AOSP</style> |
| 161 | + <reflowLongStrings>true</reflowLongStrings> |
| 162 | + <formatJavadoc>false</formatJavadoc> |
| 163 | + </googleJavaFormat> |
| 164 | + <importOrder/> |
| 165 | + <removeUnusedImports/> |
| 166 | + </java> |
| 167 | + <pom> |
| 168 | + <includes> |
| 169 | + <include>**/pom.xml</include> |
| 170 | + </includes> |
| 171 | + <sortPom/> |
| 172 | + </pom> |
| 173 | + </configuration> |
| 174 | + <executions> |
| 175 | + <execution> |
| 176 | + <id>format</id> |
| 177 | + <goals> |
| 178 | + <goal>check</goal> |
| 179 | + </goals> |
| 180 | + <phase>process-sources</phase> |
| 181 | + </execution> |
| 182 | + </executions> |
| 183 | + </plugin> |
| 184 | + </plugins> |
| 185 | + </build> |
| 186 | + </profile> |
177 | 187 | <profile> |
178 | 188 | <id>release</id> |
179 | 189 | <build> |
|
0 commit comments