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

Can't use the gradle plugin in an Android project #384

Open
villevoutilainen opened this issue Sep 29, 2024 · 3 comments
Open

Can't use the gradle plugin in an Android project #384

villevoutilainen opened this issue Sep 29, 2024 · 3 comments
Labels

Comments

@villevoutilainen
Copy link

The instructions suggest requiring the java plugin as a dependency. The plugin seems to do that itself, too.
A gradle project can't use both the java plugin and the android plugin.

I do not need to run JTE on Android. I need to run it during my Android project's build. I want to precompile my templates,
and use them in an annotation processor that also runs during the build, not on the target phone.

Any ideas?

@kelunik
Copy link
Collaborator

kelunik commented Sep 29, 2024

What are you trying to do with jte then? Generate code within the build process?

@villevoutilainen
Copy link
Author

Yeah. The build process runs an annotation processor, which then uses JTE to generate code from those annotations. To be more specific, this is https://github.com/villevoutilainen/Jenny

@edward3h
Copy link
Contributor

I don't know about Android builds.

I'm imagining your annotation processor depends on JTE plugin at build time. Then the main code depends on the annotation processor at its build time. So the main code build doesn't depend on the JTE plugin.

Does your annotation processor need to be built with the Android toolchain?

@casid casid added the gradle label Oct 1, 2024
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

4 participants