bsideup / jabel

Jabel - unlock Javac 9+ syntax when targeting Java 8
Apache License 2.0
803 stars 47 forks source link

Android support #70

Open serivesmejia opened 3 years ago

serivesmejia commented 3 years ago

Hi! I was wondering if there was any sort of support for this using the android gradle plugin, since it seems like it doesn't directly expose a "compileJava" task, and im not precisely sure how this is handled on android. thanks!

bsideup commented 3 years ago

Hi @serivesmejia,

Sorry, I am not familiar with Android, so you would need to find a way how to configure Java compilation for Android yourself. But, as long as they are using Javac, Jabel would also work.

One alternative is to put everything into a "standard" Java module and depend on it from your Android module.

Username404-59 commented 3 years ago

Hi! I was wondering if there was any sort of support for this using the android gradle plugin, since it seems like it doesn't directly expose a "compileJava" task, and im not precisely sure how this is handled on android. thanks!

compileJava is provided by gradle, so using Jabel for Android projects shouldn't be that different; the android gradle plugin uses compileJava so you can probably write what's in the README and it'll just work.