Skip to content

Commit d74264b

Browse files
committed
Update README.md
1 parent a045b46 commit d74264b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

plugin-gradle/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ spotless {
115115
// don't need to set target, it is inferred from java
116116
117117
// apply a specific flavor of google-java-format
118-
googleJavaFormat('1.8').aosp().reflowLongStrings()
118+
googleJavaFormat('1.8').aosp().reflowLongStrings().skipJavadocFormatting()
119119
// fix formatting of type annotations
120120
formatAnnotations()
121121
// make sure every file has the following copyright header.
@@ -206,7 +206,7 @@ spotless {
206206
// optional: you can specify a specific version (>= 1.8) and/or switch to AOSP style
207207
// and/or reflow long strings
208208
// and/or use custom group artifact (you probably don't need this)
209-
googleJavaFormat('1.8').aosp().reflowLongStrings().reorderImports(false).groupArtifact('com.google.googlejavaformat:google-java-format')
209+
googleJavaFormat('1.8').aosp().reflowLongStrings().formatJavadoc(false).reorderImports(false).groupArtifact('com.google.googlejavaformat:google-java-format')
210210
```
211211

212212
### palantir-java-format

plugin-maven/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ To use it in your pom, just [add the Spotless dependency](https://search.maven.o
109109
<version>1.8</version>
110110
<style>AOSP</style>
111111
<reflowLongStrings>true</reflowLongStrings>
112+
<formatJavadoc>false</formatJavadoc>
112113
</googleJavaFormat>
113114

114115
<!-- make sure every file has the following copyright header.
@@ -233,6 +234,7 @@ any other maven phase (i.e. compile) then it can be configured as below;
233234
<version>1.8</version> <!-- optional, 1.8 is minimum supported version -->
234235
<style>GOOGLE</style> <!-- or AOSP (optional) -->
235236
<reflowLongStrings>true</reflowLongStrings> <!-- optional -->
237+
<formatJavadoc>false</formatJavadoc> <!-- optional -->
236238
<!-- optional: custom group artifact (you probably don't need this) -->
237239
<groupArtifact>com.google.googlejavaformat:google-java-format</groupArtifact>
238240
</googleJavaFormat>

0 commit comments

Comments
 (0)