coveralls-gradle-plugin icon indicating copy to clipboard operation
coveralls-gradle-plugin copied to clipboard

Support Kotlin source folder

Open Poeschl opened this issue 8 years ago • 3 comments

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.

Poeschl avatar Jul 14 '16 08:07 Poeschl

Seems long overdue, yeah?

monokrome avatar Oct 15 '19 00:10 monokrome

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?

cristian-m-vasile avatar Jul 03 '20 17:07 cristian-m-vasile

If you are using the kotlin gradle dsl, the correct syntax is:

coveralls {
    sourceDirs = mutableListOf("src/main/kotlin")
}

Jim-Robbins avatar Sep 28 '20 15:09 Jim-Robbins