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

add kotlin support #77

Closed
Gogomoe opened this issue Jun 23, 2017 · 3 comments
Closed

add kotlin support #77

Gogomoe opened this issue Jun 23, 2017 · 3 comments

Comments

@Gogomoe
Copy link

Gogomoe commented Jun 23, 2017

I'm failed to send the report to Coveralls
got following log:

:coveralls
service name: travis-ci
service job id: 246121223
repo token: present (not shown for security)
No source file found on the project: "ForeverNight"
With coverage file: /home/travis/build/gogo81745/ForeverNightEngine/build/reports/jacoco/test/jacocoTestReport.xml

Finally, I know the reason is that my project use kotlin only
refer to this

project.plugins.withType(GroovyPlugin) {
	targetSrcDirs += project.sourceSets.main.groovy.srcDirs
}

project.plugins.withType(ScalaPlugin) {
	targetSrcDirs += project.sourceSets.main.scala.srcDirs
}

But there is no kotlin here. That's why the plugin find no source file
So I add an additional configuration

coveralls {
    project.extensions.coveralls.sourceDirs += project.sourceSets.main.kotlin.srcDirs
}

It's like this

coveralls {
    sourceDirs += ['src/main/kotlin']
}

It is working now.
I hope to add support for Kotlin.

@kt3k
Copy link
Owner

kt3k commented Jun 23, 2017

PRs are welcome!

@Gogomoe
Copy link
Author

Gogomoe commented Jun 23, 2017

Sorry , I am not familiar with gradle and groovy
In fact , I just started using gradle
I don't know how to fix it 😅

@kt3k
Copy link
Owner

kt3k commented May 23, 2019

This was duplicate of #63

@kt3k kt3k closed this as completed May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants