untisapi / untis4j

A java API for webuntis
GNU Lesser General Public License v3.0
23 stars 9 forks source link

Using Gradle is causing 401: Unauthorized #15

Closed muelleel closed 1 year ago

muelleel commented 1 year ago

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...

maxmielchen commented 1 year ago

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")
muelleel commented 1 year ago

Yeah that worked!

Thanks