Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ services:
jdk:
- openjdk8
install:
- ./mvnw -B -q -Pdocker-gitlab dependency:go-offline verify -DskipTests -Ddocker.skip
- export GNUPGHOME="$(mktemp -d)"
- eval $(gpg-agent --daemon)
- gpg --batch --gen-key gpg.key
- gpg --list-keys
- ./mvnw -Pdocker-gitlab dependency:go-offline verify -DskipTests -Ddocker.skip -Dgpg.passphrase=abc
script:
- ./mvnw -B -V -Pdocker-gitlab verify
- ./mvnw -V -Pdocker-gitlab verify -Darguments=-Dgpg.passphrase=abc
9 changes: 9 additions & 0 deletions gpg.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Key-Type: DSA
Key-Length: 1024
Subkey-Type: ELG-E
Subkey-Length: 1024
Name-Real: Joe Tester
Name-Comment: with regular passphrase
Name-Email: [email protected]
Expire-Date: 0
Passphrase: abc
35 changes: 15 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -222,26 +222,21 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>

</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/gitlab/api/models/GitlabAccessLevel.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package org.gitlab.api.models;

import com.fasterxml.jackson.annotation.JsonCreator;

// added MinimalAccess level 5 - for git 13.x and beyond
public enum GitlabAccessLevel {
Guest(10),
Reporter(20),
Developer(30),
Master(40),
MinimalAccess(5),
Owner(50);

public final int accessValue;
Expand Down