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

JavaCompile task fails with no sources #244

Closed
ZacSweers opened this issue Jan 11, 2021 · 1 comment · Fixed by #245
Closed

JavaCompile task fails with no sources #244

ZacSweers opened this issue Jan 11, 2021 · 1 comment · Fixed by #245

Comments

@ZacSweers
Copy link
Contributor

ZacSweers commented Jan 11, 2021

I'm unable to compile with the latest version of KSP (20200107), it seems like it tries to force the JavaCompile task to run even if there are no java source files generated.

* What went wrong:
Execution failed for task ':moshi-ksp:moshi-ksp:compileJava'.
> no source files

Repro: ZacSweers/MoshiX#75

One possible clue might be the auto-service-ksp plugin generating resources, which I know got some work in this release.

@gavra0 might have some advice for this, as he fixed a similar issue in AGP awhile back for kotlin-only Android projects.

gavra0 added a commit to gavra0/ksp that referenced this issue Jan 11, 2021
JavaCompile task will process only *.java files,
and resources need to registered using different
mechanism.

This fixes google#244.
@gavra0
Copy link
Contributor

gavra0 commented Jan 11, 2021

This is basically the same issue as https://youtrack.jetbrains.com/issue/KT-31127.

ting-yuan pushed a commit that referenced this issue Jan 11, 2021
JavaCompile task will process only *.java files,
and resources need to registered using different
mechanism.

This fixes #244.
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

Successfully merging a pull request may close this issue.

2 participants