@@ -113,7 +113,7 @@ To use it in your pom, just [add the Spotless dependency](https://search.maven.o
113
113
optionally, Spotless can set copyright years by digging
114
114
through git history (see "license" section below) -->
115
115
<licenseHeader >
116
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
116
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
117
117
</licenseHeader >
118
118
</java >
119
119
</configuration >
@@ -146,7 +146,7 @@ Spotless requires Maven to be running on JRE 8+.
146
146
147
147
<importOrder /> <!-- standard import order -->
148
148
<importOrder > <!-- or a custom ordering -->
149
- <order >java,javax,org,com,com.diffplug,</order > <!-- or use <file>${basedir}/eclipse.importorder</file> -->
149
+ <order >java,javax,org,com,com.diffplug,</order > <!-- or use <file>${project. basedir}/eclipse.importorder</file> -->
150
150
<!-- You probably want an empty string at the end - all of the
151
151
imports you didn't specify explicitly will go there. -->
152
152
</importOrder >
@@ -158,7 +158,7 @@ Spotless requires Maven to be running on JRE 8+.
158
158
<prettier /> <!-- has its own section below -->
159
159
160
160
<licenseHeader >
161
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
161
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
162
162
</licenseHeader >
163
163
</java >
164
164
</configuration >
@@ -182,7 +182,7 @@ Spotless requires Maven to be running on JRE 8+.
182
182
``` xml
183
183
<eclipse >
184
184
<version >4.13.0</version > <!-- optional -->
185
- <file >${basedir}/eclipse-formatter.xml</file > <!-- optional -->
185
+ <file >${project. basedir}/eclipse-formatter.xml</file > <!-- optional -->
186
186
</eclipse >
187
187
```
188
188
@@ -203,15 +203,16 @@ Spotless requires Maven to be running on JRE 8+.
203
203
204
204
<importOrder /> <!-- standard import order -->
205
205
<importOrder > <!-- or a custom ordering -->
206
- <order >java,javax,org,com,com.diffplug,</order > <!-- or use <file>${basedir}/eclipse.importorder</file> -->
206
+ <order >java,javax,org,com,com.diffplug,</order > <!-- or use <file>
207
+ /eclipse.importorder</file> -->
207
208
<!-- You probably want an empty string at the end - all of the
208
209
imports you didn't specify explicitly will go there. -->
209
210
</importOrder >
210
211
211
212
<greclipse /> <!-- has its own section below -->
212
213
213
214
<licenseHeader >
214
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
215
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
215
216
</licenseHeader >
216
217
</java >
217
218
</configuration >
@@ -224,7 +225,7 @@ Spotless requires Maven to be running on JRE 8+.
224
225
``` xml
225
226
<greclipse >
226
227
<version >4.13.0</version > <!-- optional -->
227
- <file >${basedir}/greclipse.properties</file > <!-- optional -->
228
+ <file >${project. basedir}/greclipse.properties</file > <!-- optional -->
228
229
</greclipse >
229
230
```
230
231
@@ -250,7 +251,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T
250
251
<prettier /> <!-- has its own section below -->
251
252
252
253
<licenseHeader >
253
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
254
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
254
255
</licenseHeader >
255
256
</kotlin >
256
257
</configuration >
@@ -300,7 +301,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T
300
301
<scalafmt /> <!-- has its own section below -->
301
302
302
303
<licenseHeader >
303
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
304
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
304
305
<delimiter >package </delimiter > <!--
305
306
note the 'package ' argument - this is a regex which identifies the top
306
307
of the file, be careful that all of your sources have a package declaration,
@@ -317,7 +318,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T
317
318
``` xml
318
319
<scalafmt >
319
320
<version >2.0.1</version > <!-- optional -->
320
- <file >${basedir}/scalafmt.conf</file > <!-- optional -->
321
+ <file >${project. basedir}/scalafmt.conf</file > <!-- optional -->
321
322
</scalafmt >
322
323
```
323
324
@@ -339,7 +340,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T
339
340
<eclipseCdt /> <!-- has its own section below -->
340
341
341
342
<licenseHeader >
342
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
343
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
343
344
</licenseHeader >
344
345
</cpp >
345
346
</configuration >
@@ -352,7 +353,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T
352
353
``` xml
353
354
<eclipseCdt >
354
355
<version >4.13.0</version > <!-- optional -->
355
- <file >${basedir}/eclipse-cdt.xml</file > <!-- optional -->
356
+ <file >${project. basedir}/eclipse-cdt.xml</file > <!-- optional -->
356
357
</eclipseCdt >
357
358
```
358
359
@@ -371,7 +372,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T
371
372
<antlr4formatter /> <!-- has its own section below -->
372
373
373
374
<licenseHeader >
374
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
375
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
375
376
</licenseHeader >
376
377
</antlr4 >
377
378
</configuration >
@@ -445,7 +446,7 @@ sql.formatter.indent.size=4
445
446
<prettier /> <!-- has its own section below -->
446
447
447
448
<licenseHeader >
448
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
449
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
449
450
<delimiter >(import|const|declare|export|var) </delimiter > <!--
450
451
note the '(import|const|...' argument - this is a regex which identifies the top
451
452
of the file, be careful that all of your sources have a suitable top-level declaration,
@@ -472,10 +473,10 @@ The auto-discovery of config files (up the file tree) will not work when using t
472
473
<convertTabsToSpaces >true</convertTabsToSpaces >
473
474
</config >
474
475
<!-- // or according to tsfmt-parameters: https://github.com/vvakame/typescript-formatter/blob/7764258ad42ac65071399840d1b8701868510ca7/lib/index.ts#L27L34 -->
475
- <tsconfigFile >${basedir}/tsconfig.json</tsconfigFile >
476
- <tslintFile >${basedir}/tslint.json</tslintFile >
477
- <vscodeFile >${basedir}/vscode.json</vscodeFile >
478
- <tsfmtFile >${basedir}/tsfmt.json</tsfmtFile >
476
+ <tsconfigFile >${project. basedir}/tsconfig.json</tsconfigFile >
477
+ <tslintFile >${project. basedir}/tslint.json</tslintFile >
478
+ <vscodeFile >${project. basedir}/vscode.json</vscodeFile >
479
+ <tsfmtFile >${project. basedir}/tsfmt.json</tsfmtFile >
479
480
</tsfmt >
480
481
```
481
482
@@ -523,7 +524,7 @@ You can use prettier in any language-specific format, but usually you will be cr
523
524
</property >
524
525
</devDependencyProperties >
525
526
<!-- Specify config file and/or inline config, the inline always trumps file -->
526
- <configFile >${basedir}/path/to/configfile</configFile >
527
+ <configFile >${project. basedir}/path/to/configfile</configFile >
527
528
<config >
528
529
<useTabs >true</useTabs >
529
530
</config >
@@ -632,8 +633,8 @@ Spotless will try to auto-discover an npm installation. If that is not working f
632
633
<eclipseWtp >
633
634
<type >XML</type > <!-- specify the WTP formatter type (XML, JS, ...) -->
634
635
<files > <!-- specify the configuration for the selected type -->
635
- <file >${basedir}/xml.prefs</file >
636
- <file >${basedir}/additional.properties</file >
636
+ <file >${project. basedir}/xml.prefs</file >
637
+ <file >${project. basedir}/additional.properties</file >
637
638
</files >
638
639
<version >4.7.3a</version > <!-- optional -->
639
640
</eclipseWtp >
@@ -704,7 +705,7 @@ Spotless can inject a license header into your files, including populating an ac
704
705
705
706
``` xml
706
707
<licenseHeader > <!-- specify either content or file, but not both -->
707
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
708
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
708
709
<delimiter >#</delimiter > <!-- content until first occurrence of the delimiter regex will be interpreted as header section -->
709
710
</licenseHeader >
710
711
```
0 commit comments