How to add any github repository as a maven dependency

https://jitpack.io/

How to

To get a Git project into your build:

Step 1. Add the JitPack repository to your build file

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Step 2. Add the dependency

	<dependency>
	    <groupId>com.github.User</groupId>
	    <artifactId>Repo</artifactId>
	    <version>Tag</version>
	</dependency>

That’s it! The first time you request a project JitPack checks out the code, builds it and serves the build artifacts (jar, aar).

If the project doesn’t have any GitHub Releases you can use the short commit hash or ‘master-SNAPSHOT’ as the version.

Example with coingecko API: https://github.com/Philipinho/CoinGecko-Java/issues/15#issuecomment-1001075163