M
M
mitaichik2016-05-04 16:27:37
Java
mitaichik, 2016-05-04 16:27:37

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

1 answer(s)
V
Viktor Maksimov, 2016-05-04
@mitaichik

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 question

Ask a Question

731 491 924 answers to any question