Javadoc style license headers for java files
NipunaRanasinghe opened this issue · 2 comments
NipunaRanasinghe commented
The plugin uses /** ... */
instead of /* ... */
for license headers for java files. Therefore some of the IDEs (like IntelliJ) marks them as Dangling Javadoc comment
.
edewit commented
you can do it by making your own custom definition like this:
license {
headerDefinitions {
custom_definition {
firstLine = "/*"
endLine = " */"
beforeEachLine = " * "
firstLineDetectionPattern = "/\\*\$"
lastLineDetectionPattern = ".*\\*/(\\s|\\t)*\$"
allowBlankLines = false
isMultiline = true
}
}
mapping {
java='custom_definition'
}
edewit commented
this mapping is build in you can use:
license {
mapping {
java = 'SLASHSTAR_STYLE'
}
}