untisapi/untis4j

Using Gradle is causing 401: Unauthorized

muelleel opened this issue · 2 comments

Hey,
Specifically - new Maintainer @maxmielchen

When using the provided snippets for using the Libary the remote Server does respond with 401:

Could not GET 'https://maven.pkg.github.com/ByteDream/untis4j/org/bytedream/untis4j/1.3.1/untis4j-1.3.1.pom'. Received status code 401 from server: Unauthorized

grafik

Any Ideas on this? I think this should be publicly available without authorization...

Unfortunately, for the time being, there will be no official way to access this package. Temporary we can get the package like this:

Installation:

Maven

Add the GitHub repository to your build file

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

Add the dependency

<dependency>
       <groupId>com.github.untisapi</groupId>
       <artifactId>untis4j</artifactId>
       <version>jitpack-SNAPSHOT</version>
</dependency>

Groovy

Add the GitHub repository to your build file

maven { url 'https://jitpack.io' }

Add the dependency

implementation 'com.github.untisapi:untis4j:jitpack-SNAPSHOT'

Kotlin

Add the GitHub repository to your build file

maven { url='https://jitpack.io' }

Add the dependency

implementation ("com.github.untisapi:untis4j:jitpack-SNAPSHOT")

Yeah that worked!

Thanks