title: Jitpack Gitlab Private Repository Trial No read access to repo
body: <p>I am trying out the 14 days trial of <code>Jitpack.io</code> so that I can use my Android Libraries on gitlab through <code>gradle</code> in my production apps.</p>
  
  <p>So what I basically have:
  2 Android apps on GitLab
  2 Android Libraries on GitLab</p>
  
  <p>I am currently importing them by (settings.gradle): </p>
  
  <pre><code>include ':app',':library'
  project(':library').projectDir = new File(settingsDir, 'some_/long/path')
  </code></pre>
  
  <p>build.gradle:</p>
  
  <pre><code>    implementation project(':library')
  </code></pre>
  
  <p>Which is obviously quite troublesome. So I did:</p>
  
  <ol>
  <li>I followed the 'setup' part on <a href="https://jitpack.io/docs/PRIVATE/" rel="nofollow noreferrer">the original docs</a></li>
  <li>I followed the 'Gitlab' part on <a href="https://jitpack.io/docs/PRIVATE/" rel="nofollow noreferrer">the original docs</a></li>
  </ol>
  
  <p>I think everything was quite well setup because I saw my repositories at the <a href="https://jitpack.io/" rel="nofollow noreferrer">homepage</a> on the left hand side so I went to the <a href="https://jitpack.io/private" rel="nofollow noreferrer">private page</a> to test out if I could get it to work. I also obviously did what was told in the private section. </p>
  
  <p>So my files looked like this: </p>
  
  <p>gradle.properties (nothing, basically that line):</p>
  
  <pre><code>authToken=my_super_secret_token_generated_by_gitlab
  </code></pre>
  
  <p>project build.gradle:</p>
  
  <pre><code>    maven {
          url "https://jitpack.io"
          credentials { username authToken }
      }
  </code></pre>
  
  <p>And then my build.gradle in my app:</p>
  
  <pre><code>implementation 'com.gitlab.organization:library:master'
  </code></pre>
  
  <p>But then I get a strange unauthorized error, I don't know why. My Access Token has API access and when I fill in the token in Jitpack it also shows a green checkmark. See my error below:</p>
  
  <pre><code>Could not resolve all files for configuration ':app:debugCompileClasspath'.
  &gt; Could not resolve com.gitlab.organization:library:master.
    Required by:
        project :app
     &gt; Could not resolve com.gitlab.organization:library:master.
        &gt; Could not get resource 'https://jitpack.io/com/gitlab/organization/library/master/library-master.pom'.
           &gt; Could not GET 'https://jitpack.io/com/gitlab/organization/library/master/library-master/libary-master.pom'. Received status code 401 from server: Unauthorized
  </code></pre>
  
  <p>Does someone has any idea why it is unauthorized? I got to say <code>library</code> is in a subgroup, so I have tried many other ways to try to resolve it but It did not really help.</p>