Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Kotlin source folder #63

Open
Poeschl opened this issue Jul 14, 2016 · 3 comments
Open

Support Kotlin source folder #63

Poeschl opened this issue Jul 14, 2016 · 3 comments
Labels

Comments

@Poeschl
Copy link

Poeschl commented Jul 14, 2016

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.

@kt3k kt3k added the ready label Apr 13, 2017
clboettcher added a commit to qaware/majx that referenced this issue Jul 13, 2017
The coveralls plugin does not support kotlin at the moment.
See kt3k/coveralls-gradle-plugin#63.
@kt3k kt3k mentioned this issue May 23, 2019
@monokrome
Copy link

Seems long overdue, yeah?

@cristian-m-vasile
Copy link

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?

@Jim-Robbins
Copy link

Jim-Robbins commented Sep 28, 2020

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants