I'm developing a backend application in Java 8 and I'd like to share some code with an Android app someone else is developing (mainly DTOs), and so I have a few questions I'd like to ask:
- Is it enough to set the
maven.compiler.target
property to1.6
for the module containing the DTOs/common methods? - What if I "mistakenly" use some of the new Java 8 features/APIs like
java.time
in that same module? - What are some of the best practices for sharing JARs between these two very different kind of application?