GitHub’s 10,000 Most Popular Java Projects: Here are the Top Libraries They Use
Join the DZone community and get the full member experience.Join For Free
as java developers working with a language that’s both mature yet highly evolving, we’re faced with a constant dilemma whenever we write new code – go with the hot new technology that everyone is talking about, or stick with a tried-and-true library?
since a very large part of java applications are commercial in nature, it can sometimes be hard to separate the buzz around a new framework with the number of projects actually putting it to use. this is important, as the community of users and contributors around a framework is one of the strongest factors in determining its continuous success and development.
we decided to use a data-based approach to get more insight into this, by analyzing which java projects developers are actually using on the world’s largest open repository for java projects – github.
to generate our dataset we queried 10,000 java projects, with a bias towards the ones most favorited by the community, as a strong qualifying indicator towards their relative importance. we used the pom.xml , which is used by the vast majority of java projects on gh, to define dependencies. we then analyzed and grouped those into categories. the results were really interesting.
logging . the most popular java library is slf4j - the logging facade framework, with 3,068 entries. it seems that java gh developers have fully embraced a decoupled approach towards their logging engine, and have standardized on slf4j to do so.
since slf4j isn’t a logging engine by itself, it’s also useful to see the top logging engines being used. it looks like the “winner” here is log4j - 891 projects are using it. next in line is apache commons-logging, with 334 projects. while very respectable, this number still represents less than half of the projects using log4j. sfl4j’s simple logging implementation comes in third at 174 projects.
the most popular java library today is slf4j – used by 30.7% of the 10,000 projects ( tweet this )
spring . while spring may be perceived by some as a more mature and less “hip” framework, it still sees tremendous usage, placing 15 libraries in the top 100. since spring is an umbrella framework, it’s interesting to see which of its components are being used the most. spring-test is the most used part of the framework (after the core library) with 376 entries. it’s followed by web-mvc for designing robust web applications with 277 entries. after web functionality, we see web-orm with 218 entries, highlighting spring’s key use case for building a db backed java web application.
tdd . right there with spring at the top is junit with 3,068 entries . this really shows the profound effect that test driven development has had on the java landscape. it seems that if you’re a java developer posting your code, unit tests today are an absolute requirement. it’s also worthwhile noting that while junit is not alone in this space ( testng , the 2nd most popular testing framework, has 331 entries) it is by far the most dominant.
mockito , a popular framework for mock based testing, has also gained wide appeal with 413 entries. easymock , another mocking framework, comes 2nd in this category with 231 project entries.
google’s guava framework is becoming mainstream – 4.8% of 10,000 java github projects are using it ( tweet this )
apache commons . having looked at spring, it’s important we don’t neglect apache commons, one of the most fundamental set of libraries within the language. commons-io and commons-lang are right there in the top 10 with 519 and 504 entries respectively, showing their strong prevalence.
as a whole apache commons have 13 libraries in the top 100. google’s guava framework, which itself provides language utils (some similar to those found in commons) is also doing very well with 483 entries, marking it as another key java building block.
sql & nosql . with nosql and big data being all the buzz these last couple of years (some for good reasons), it’s worthwhile looking at the actual usage numbers for both relational and nosql technologies. the most popular sql db out there is mysql with 225 entries. hibernate orm, while not a db in itself, is also fairly popular with 181 entries. this is one area that we need to keep in mind that as gh is an open source repository, we might see a somewhat stronger bias towards commercial dbs such as oracle’s in a closed source dataset.
justifying the buzz: hadoop is more popular in java github projects than postgre sql ( tweet this )
hadoop is also doing very well with 168 entries, showing that the buzz is justified when looking at its actual usage data. to put in perspective, it has more entries than postgre sql (with 121 entries), one of the most mature relational open source dbs out there.
elasticsearch , another big data technology, is also on the board with 110 project entries. it’s surprising to note that sqlite , which has 1,085 entries in ruby, isn’t in the java top 100.
android . for mobile developers on gh we see 228 project entries consuming android via maven. while this can signify that not a lot of mobile projects are placed on gh, it’s still a strong indicator that java remains a very strong server side language.
surprised by some of the results? we know we were with some of them. take a look at the full list of the top 100 java libraries on github below, and let us know .
originally appeared on
Opinions expressed by DZone contributors are their own.
Seven Steps To Deploy Kedro Pipelines on Amazon EMR
Getting Started With Istio in AWS EKS for Multicluster Setup
What Is Envoy Proxy?
Event-Driven Architecture Using Serverless Technologies