NightStorm
NightStorm

Reputation: 111

How to use classes from one project in another project

I am building a custom Java library. I keep most of my "repeated" codes there, like file handling, string processing, etc. Each time I want to use them, I have to copy and paste the class into the other project(s) I'm on. Is there a way I can make this custom library class into a "dependency"? I'm using IntelliJ as my IDE.

Upvotes: 1

Views: 900

Answers (1)

evren
evren

Reputation: 140

you can add the master project as a jar (dependency) to your projects.

Upvotes: 2

Related Questions