Inventory of the 100 most popular Java libraries! Who wins?

Who wins? Who is behind?

We analyzed 47,251 dependencies in GitHub and found the 100 most popular Java libraries.

During the long weekend, our favorite pastime is to traverse GitHub to find the most popular Java libraries. We decided to share the fun and income with everyone.

We analyzed 47,251 import statements of 12,059 different Java libraries used in the first 3862 Java projects in GitHub. From this list, we selected the top 100 Java libraries and presented the results here.

Top 20 Java libraries



In the next two years, junit became the most popular Java library on GitHub for the second time. At the same time, the Java logging API slf4j took second place, and log4j ranked fourth.

In addition, Guava, Google's open source project, took the third place. The library contains a series of core Java libraries contained in Google. If you don't know much about Guava or are not sure how to use it, you should read our article to learn about Google Guava's little-known features but in fact every developer should know.

The rise of the Spring library

As the primary competitor of Java EE, the Spring framework is becoming increasingly popular, and its popular programs are also reflected in GitHub. Among the 100 most popular Java libraries this time, 44 libraries are related to Spring.

Among them, the most interesting is the rapid growth of Spring Boot, which can help developers create Spring-driven applications and services through the most streamlined references. Do you want to build a Java application that can adapt to the production environment in the shortest possible time? Please pay attention to the public number Java technology stack and reply to boot to read the series of articles.

List of the most popular Spring libraries:

第13名 – springframework.spring-context 第17名 – springframework.spring-test 第22名 – springframework.spring-webmvc 第24名 – springframework.spring-core 第27名 – springframework.spring-web 第36名 – springframework.spring-jdbc 第37名 – springframework.spring-orm 第38名 – springframework.spring-tx 第40名 – springframework.spring-aop 第47名 – springframework.spring-context-support 第72名 – springframework.boot.spring-boot-starter-web 第81名 – springframework.security.spring-security-web 第82名 – springframework.security.spring-security-config 第88名 – springframework.boot.spring-boot-starter-test 第99名 – springframework.security.spring-security-core

The most popular JSON library

We know that Java does not provide native support for JSON (although Java 9 almost included it), and we are interested to know how popular these libraries are in the GitHub project.

You should not judge the quality of a library based on appearances. Not all JSON libraries have the same performance. It is very important to choose a library that suits your environment. To know how to choose a JSON library, you can check our latest JSON benchmark.

The most popular JSON libraries are:

14th place – fasterxml.jackson.core.jackson-databind 19th place – google.code.gson.gson 43rd place – json.json 80th place – googlecode.json-simple.json-simple 89th place – thoughtworks. xstream.xstream

The 4 most amazing libraries

In fact, there are many interesting and even new libraries that impress us. However, we decided to focus on the following 4 libraries:

No. 68: projectlombok.lombok-This library aims to simplify the reference samples in Java, and replaces some extremely complicated reference samples with simple annotation sets.

No. 90: jsoup.jsoup-this library is used to collaborate with HTML. It provides APIs to extract and manipulate data through DOM manipulation, CSS, and jquery-like methods.

No. 92: io.netty.netty-all-a network application framework for quickly and easily deploying maintainable high-performance protocol servers and clients.

No. 98: dom4j.dom4j-an open source framework for processing XML. Integrate with XPath to provide comprehensive support for DOM, JAXP and Java platforms.

100 Java libraries sorted by type

Name calculation method


You may be wondering how we got this sort. First, we extract the top-ranked Java projects in GitHub based on the score. After that, extract the projects that use Maven or Ivy for dependency management, and quickly get their pom.xml / ivy.xml dependencies. So far, we have 47,251 data points.

Next, after some integration and analysis, we got 12,059 different Java libraries from the first 3862 Java projects. Therefore, based on the number of times these libraries appear in GitHub, it is not difficult to get the 100 most popular libraries.

If you want to view our raw data, you can view the file here. Although we strive to be rigorous to prevent oversight, you can also look at the data, and maybe there will be new and interesting insights.

Reflection at the end of the article

When we compared this year's top 100 data with last year's, we found that small Java libraries have some ranking changes. Among them, the ranking of Spring-related libraries has increased overall, while people's interest in MongoDB-related libraries has declined.

However, for the vast majority of Java developers, they maintain considerable loyalty to the GitHub repository of their choice. Considering the number of existing projects using these libraries, we have reason to believe that these libraries will be popular in the future.

This article is transferred from OneAPM official blog Original address: https://dzone.com/articles/the-top-100-java-libraries-in-2016-after-analyzing

Recommend to read more on my blog:

1. A series of tutorials on Java JVM, collections, multithreading, and new features

2. Spring MVC, Spring Boot, Spring Cloud series of tutorials

3. Maven, Git, Eclipse, Intellij IDEA series tool tutorial

4. The latest interview questions from major manufacturers such as Java, back-end, architecture, and Alibaba

Feel good, don’t forget to like + forward!

Finally, pay attention to the WeChat official account of the stack leader: Java technology stack, reply: Welfare, you can get a free copy of the latest Java interview questions I have compiled for 2020. It is really complete (including answers), without any routine.

Guess you like

Origin blog.csdn.net/youanyyou/article/details/108338081