We analyzed 47,251 dependencies on GitHub and found the top 100 Java class libraries, so let's see who's in front and who's behind.
Our pastime on a long weekend is to browse GitHub and search for popular Java class libraries. We decided to share the fun and results with you.
We analyzed 47,251 import statements in the top 3,862 items in GitHub, with 12,059 Java class libraries being relied upon. We extract the top 100 from this list and share the results with you.
Top 20 Most popular Java class libraries
In line with the previous analysis, JUnit is still the most popular class library on GitHub. The Log API SLF4J ranked second in Java and ranked fourth in log4j.
Google's Open source class library Guava is on the rise, ranking third (last year's fourth). Guava contains a series of core Java class libraries that were born inside Google.
The rise of Spring class library
The spring framework, as the main competitor of Java EE, is popular in the Java community and is well-presented on GitHub. Out of the top 100, there are 44 class libraries that are related to spring. The most interesting part is the rapid rise of spring boot, which reads Java Bootstrap:dropwizard vs. Spring boot.
Top-ranked Spring class library:
#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 class library
Because Java itself does not support JSON (although JAVA9 claims support), we want to look at the popularity of these JSON class libraries through the projects in GitHub.
You can't choose which class library to use by how much he uses, because these JSON frameworks have different capabilities. Instead, the most appropriate choice should be based on the actual use of the environment. If you don't know how to choose, you can refer to JSON benchmark.
Top-ranked JSON class library:
#14 –fasterxml.jackson.core.jackson-databind
#19 –google.code.gson.gson
#43 –json.json
#80 –googlecode.json-simple.json-simple
#89 –thoughtworks.xstream.xstream
Fantastic Four
There are a lot of interesting new libraries that even caught our attention, but we decided to focus on them as follows:
#68 –projectlombok.lombok–lombok provides a simple form of annotations to help us eliminate some of the necessary but bloated Java boilerplate code.
#90 –jsoup.jsoup–jsoup is a Java HTML parser that can parse a URL address and HTML text content directly. It provides a very labor-saving API that can be used to extract and manipulate data through dom,css and jQuery-like operations.
#92 –io.netty.netty-all– Network application framework for fast and easy development and maintenance of high-performance protocol servers and clients
#98 –dom4j.dom4j– The Open source framework for working with XML. It integrates XPath and provides full support for the DOM,JAXP and Java platforms.
Types of Top 100 class libraries
The Science behind Magic (how we came to this list)
You might want to know how we came up with this information. We first pull the project code from GitHub to local according to the number of star. We extracted and analyzed the pom.xml/ivy.xml used for dependency management in projects using MAVEN and Ivy, which gave us a 47,251-point source of data.
We did some crazy digging and analysis, and finally we got 12,059 Java class libraries from the top 3,862 projects in GitHub. This makes it easy to rank them, as long as they are sorted by the number of times they appear.
If you want to see our raw data, this file can. Although we have already introduced this article in a relatively clear, we still welcome you to see To make sure that we do not miss any interesting ideas.
The last bit of thought
When we compare this list with last year's results, we find that some small class libraries have small fluctuations in the rankings, and spring has a noticeable rise, and MongoDB disappears on the list.
If you already have a choice for the class library, but you are still looking for the ultimate tool, we have a perfect suggestion for you. Top Tools Java developers use after Major releases
This article is translated by Hollischuang from the Top of the Java Libraries in 2016–after analyzing 47,251 Dependencies. Original Author: Henn Idan
Java class library ranked top 100 in 2016