N
N
Nikita072021-08-18 07:27:55
Java
Nikita07, 2021-08-18 07:27:55

How to find out what versions of libraries are installed in a Java project?

Hello everyone, please tell me how can I find out which libraries and their versions were installed in a Java project?
For example, in C#, for this you need to open the .csproj file, but is there any such file in Java?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Erik Mironov, 2021-08-18
@Erik_Mironov

Libraries can be added to the project both manually as a java-archive, or managed by the automatic project build system like maven/gradle/ant. They do exactly the same thing, namely add java archives to the "External Libraries" section of your project, the name of the archive itself usually indicates the version of this library, or if you use the auto-build system, then the version of the library is indicated in the markup when it is added .

S
shalomman, 2021-08-18
@shalomman

mvn dependency:tree if using maven
gradle dependencies for gradle
note that there may be libraries with different versions and then you need to know the debugging strategy used by the dependency management system.
for example https://maven.apache.org/guides/introduction/intro...
In any case, you can manually set the desired version of any library.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question