用java实现gitlab api
因为最近公司需要用到java实现gitlab api,网上找了很久没有找到合适的,索性自己写了一份。
gitlab版本:GitLab Community Edition 12.9.0
api版本:v4
jdk:8u101
maven依赖:
<dependencies>
<!-- 基本-->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.4</version>
</dependency>