coveralls-gradle-plugin
coveralls-gradle-plugin copied to clipboard
Support Kotlin source folder
Right now the kotlin source folder isn't supported right away, it would be nice to have it without a specific configuration. I already looked into it but couldn't get the check for a applied kotlin plugin to work.
Right now its possible with the additional source directories configuration like that
coveralls {
sourceDirs += ['src/main/kotlin']
}
The right place to add the check for the plugin and additional source folder would be here: JacocoSourceReportFactory.groovy#L51 I could be done like the scala plugin logic which above line 50 I guess.
Seems long overdue, yeah?
Right now the kotlin source folder isn't supported right away, it would be nice to have it without a specific configuration. I already looked into it but couldn't get the check for a applied kotlin plugin to work.
Right now its possible with the additional source directories configuration like that
coveralls { sourceDirs += ['src/main/kotlin'] }
The right place to add the check for the plugin and additional source folder would be here: JacocoSourceReportFactory.groovy#L51 I could be done like the scala plugin logic which above line 50 I guess.
if I try that I get "Assignment operators ambiguity" What am I missing?
If you are using the kotlin gradle dsl, the correct syntax is:
coveralls {
sourceDirs = mutableListOf("src/main/kotlin")
}