File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ To utilize the GitLab API for Java in your project, simply add the following dep
1111``` java
1212dependencies {
1313 ...
14- compile group: ' org.gitlab4j' , name: ' gitlab4j-api' , version: ' 4.8.17 '
14+ compile group: ' org.gitlab4j' , name: ' gitlab4j-api' , version: ' 4.8.18 '
1515}
1616```
1717
@@ -20,7 +20,7 @@ dependencies {
2020<dependency >
2121 <groupId >org.gitlab4j</groupId >
2222 <artifactId >gitlab4j-api</artifactId >
23- <version >4.8.17 </version >
23+ <version >4.8.18 </version >
2424</dependency >
2525```
2626
@@ -320,4 +320,13 @@ List<SystemHook> hooks = gitLabApi.getSystemHooksApi().getSystemHooks();
320320``` java
321321// Get the User info for user_id 1
322322User user = gitLabApi. getUserApi(). getUser(1 );
323+
324+ // Create a new user with no password who will recieve a reset password email
325+ User userConfig = new User ()
326+ .withEmail(" jdoe@example.com" )
327+ .withName(" Jane Doe" )
328+ .withUsername(" jdoe" );
329+ String password = null ;
330+ boolean sendResetPasswordEmail = true ;
331+ gitLabApi. getUserApi(). createUser(userConfig, password, sendResetPasswordEmail);
323332```
You can’t perform that action at this time.
0 commit comments