@@ -116,7 +116,7 @@ To use it in your pom, just [add the Spotless dependency](https://search.maven.o
116
116
optionally, Spotless can set copyright years by digging
117
117
through git history (see "license" section below) -->
118
118
<licenseHeader >
119
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
119
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
120
120
</licenseHeader >
121
121
</java >
122
122
</configuration >
@@ -178,7 +178,7 @@ any other maven phase (i.e. compile) then it can be configured as below;
178
178
179
179
<importOrder /> <!-- standard import order -->
180
180
<importOrder > <!-- or a custom ordering -->
181
- <order >java,javax,org,com,com.diffplug,</order > <!-- or use <file>${basedir}/eclipse.importorder</file> -->
181
+ <order >java,javax,org,com,com.diffplug,</order > <!-- or use <file>${project. basedir}/eclipse.importorder</file> -->
182
182
<!-- You probably want an empty string at the end - all of the
183
183
imports you didn't specify explicitly will go there. -->
184
184
</importOrder >
@@ -190,7 +190,7 @@ any other maven phase (i.e. compile) then it can be configured as below;
190
190
<prettier /> <!-- has its own section below -->
191
191
192
192
<licenseHeader >
193
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
193
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
194
194
</licenseHeader >
195
195
</java >
196
196
</configuration >
@@ -215,7 +215,7 @@ any other maven phase (i.e. compile) then it can be configured as below;
215
215
``` xml
216
216
<eclipse >
217
217
<version >4.13.0</version > <!-- optional -->
218
- <file >${basedir}/eclipse-formatter.xml</file > <!-- optional -->
218
+ <file >${project. basedir}/eclipse-formatter.xml</file > <!-- optional -->
219
219
</eclipse >
220
220
```
221
221
@@ -236,15 +236,16 @@ any other maven phase (i.e. compile) then it can be configured as below;
236
236
237
237
<importOrder /> <!-- standard import order -->
238
238
<importOrder > <!-- or a custom ordering -->
239
- <order >java,javax,org,com,com.diffplug,</order > <!-- or use <file>${basedir}/eclipse.importorder</file> -->
239
+ <order >java,javax,org,com,com.diffplug,</order > <!-- or use <file>
240
+ /eclipse.importorder</file> -->
240
241
<!-- You probably want an empty string at the end - all of the
241
242
imports you didn't specify explicitly will go there. -->
242
243
</importOrder >
243
244
244
245
<greclipse /> <!-- has its own section below -->
245
246
246
247
<licenseHeader >
247
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
248
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
248
249
</licenseHeader >
249
250
</java >
250
251
</configuration >
@@ -257,7 +258,7 @@ any other maven phase (i.e. compile) then it can be configured as below;
257
258
``` xml
258
259
<greclipse >
259
260
<version >4.13.0</version > <!-- optional -->
260
- <file >${basedir}/greclipse.properties</file > <!-- optional -->
261
+ <file >${project. basedir}/greclipse.properties</file > <!-- optional -->
261
262
</greclipse >
262
263
```
263
264
@@ -284,7 +285,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T
284
285
<prettier /> <!-- has its own section below -->
285
286
286
287
<licenseHeader >
287
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
288
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
288
289
</licenseHeader >
289
290
</kotlin >
290
291
</configuration >
@@ -344,7 +345,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T
344
345
<scalafmt /> <!-- has its own section below -->
345
346
346
347
<licenseHeader >
347
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
348
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
348
349
<delimiter >package </delimiter > <!--
349
350
note the 'package ' argument - this is a regex which identifies the top
350
351
of the file, be careful that all of your sources have a package declaration,
@@ -361,7 +362,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T
361
362
``` xml
362
363
<scalafmt >
363
364
<version >2.0.1</version > <!-- optional -->
364
- <file >${basedir}/scalafmt.conf</file > <!-- optional -->
365
+ <file >${project. basedir}/scalafmt.conf</file > <!-- optional -->
365
366
</scalafmt >
366
367
```
367
368
@@ -383,7 +384,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T
383
384
<eclipseCdt /> <!-- has its own section below -->
384
385
385
386
<licenseHeader >
386
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
387
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
387
388
</licenseHeader >
388
389
</cpp >
389
390
</configuration >
@@ -396,7 +397,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T
396
397
``` xml
397
398
<eclipseCdt >
398
399
<version >4.13.0</version > <!-- optional -->
399
- <file >${basedir}/eclipse-cdt.xml</file > <!-- optional -->
400
+ <file >${project. basedir}/eclipse-cdt.xml</file > <!-- optional -->
400
401
</eclipseCdt >
401
402
```
402
403
@@ -451,7 +452,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T
451
452
<antlr4formatter /> <!-- has its own section below -->
452
453
453
454
<licenseHeader >
454
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
455
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
455
456
</licenseHeader >
456
457
</antlr4 >
457
458
</configuration >
@@ -525,7 +526,7 @@ sql.formatter.indent.size=4
525
526
<prettier /> <!-- has its own section below -->
526
527
527
528
<licenseHeader >
528
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
529
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
529
530
<delimiter >(import|const|declare|export|var) </delimiter > <!--
530
531
note the '(import|const|...' argument - this is a regex which identifies the top
531
532
of the file, be careful that all of your sources have a suitable top-level declaration,
@@ -552,10 +553,10 @@ The auto-discovery of config files (up the file tree) will not work when using t
552
553
<convertTabsToSpaces >true</convertTabsToSpaces >
553
554
</config >
554
555
<!-- // or according to tsfmt-parameters: https://github.com/vvakame/typescript-formatter/blob/7764258ad42ac65071399840d1b8701868510ca7/lib/index.ts#L27L34 -->
555
- <tsconfigFile >${basedir}/tsconfig.json</tsconfigFile >
556
- <tslintFile >${basedir}/tslint.json</tslintFile >
557
- <vscodeFile >${basedir}/vscode.json</vscodeFile >
558
- <tsfmtFile >${basedir}/tsfmt.json</tsfmtFile >
556
+ <tsconfigFile >${project. basedir}/tsconfig.json</tsconfigFile >
557
+ <tslintFile >${project. basedir}/tslint.json</tslintFile >
558
+ <vscodeFile >${project. basedir}/vscode.json</vscodeFile >
559
+ <tsfmtFile >${project. basedir}/tsfmt.json</tsfmtFile >
559
560
</tsfmt >
560
561
```
561
562
@@ -596,7 +597,7 @@ You can use prettier in any language-specific format, but usually you will be cr
596
597
</property >
597
598
</devDependencyProperties >
598
599
<!-- Specify config file and/or inline config, the inline always trumps file -->
599
- <configFile >${basedir}/path/to/configfile</configFile >
600
+ <configFile >${project. basedir}/path/to/configfile</configFile >
600
601
<config >
601
602
<useTabs >true</useTabs >
602
603
</config >
@@ -715,8 +716,8 @@ Alternatively you can supply spotless with a location of the `.npmrc` file to us
715
716
<eclipseWtp >
716
717
<type >XML</type > <!-- specify the WTP formatter type (XML, JS, ...) -->
717
718
<files > <!-- specify the configuration for the selected type -->
718
- <file >${basedir}/xml.prefs</file >
719
- <file >${basedir}/additional.properties</file >
719
+ <file >${project. basedir}/xml.prefs</file >
720
+ <file >${project. basedir}/additional.properties</file >
720
721
</files >
721
722
<version >4.13.0</version > <!-- optional -->
722
723
</eclipseWtp >
@@ -787,7 +788,7 @@ Spotless can inject a license header into your files, including populating an ac
787
788
788
789
``` xml
789
790
<licenseHeader > <!-- specify either content or file, but not both -->
790
- <content >/* (C)$YEAR */</content > <!-- or <file>${basedir}/license-header</file> -->
791
+ <content >/* (C)$YEAR */</content > <!-- or <file>${project. basedir}/license-header</file> -->
791
792
<delimiter >#</delimiter > <!-- content until first occurrence of the delimiter regex will be interpreted as header section -->
792
793
</licenseHeader >
793
794
```
0 commit comments