Closed NipunaRanasinghe closed 2 months ago
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'
}
this mapping is build in you can use:
license {
mapping {
java = 'SLASHSTAR_STYLE'
}
}
Thanks for your suggestions @edewit. both options works for me :)
The plugin uses
/** ... */
instead of/* ... */
for license headers for java files. Therefore some of the IDEs (like IntelliJ) marks them asDangling Javadoc comment
.