Answer the question
In order to leave comments, you need to log in
Java: how to move common functionality into a separate package?
Hello! I'm new to Java, so don't judge too hard.
I have several java applications (server, android application, desktop) that use the same classes. I would like to put them in separate packages, and so that they are automatically synchronized between applications. How is it better to do this? For assembly I use Gradle, IDE - Idea.
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Collect everything in a separate lib (project-common.jar) and add it to all projects as a dependency ..
PS. In Gradle or Maven, I usually make modules.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question