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

Sources JAR is missing Kotlin sources #74

Open
mike-burns opened this issue Apr 26, 2019 · 0 comments
Open

Sources JAR is missing Kotlin sources #74

mike-burns opened this issue Apr 26, 2019 · 0 comments

Comments

@mike-burns
Copy link

In the Maven configuration you specify that the sources are the Java files via android.sourceSets.main.java.sourceFiles. Very few of the files in this project are *.java files, though.

I think the better thing to do here is:

    task androidSourcesJar(type: Jar) {
        classifier = 'sources'
        from android.sourceSets.main.java.srcDirs
        include "**/*.kt"
    }

(Even still I wasn't able to convince Android Studio to attach sources to the files I was debugging. Maybe that just doesn't work with Kotlin.)

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

1 participant