/dodona-api-java

Java bindings for the Dodona API.

Primary LanguageJavaMIT LicenseMIT

dodona-api-java

Java Java codecov Codacy Badge

Java binding for the Dodona API.

Installation

Gradle

GitHub packages require a personal access token to be downloaded. The readme below contains an access token that can only be used to download public packages, so you can use this if you don't want to use your own token.

plugins {
    id 'java'
}

group 'org.example'
version '1.0-SNAPSHOT'

repositories {
    mavenCentral()

    maven {
        url = "https://maven.pkg.github.com/thepieterdc/dodona-api-java"
        credentials {
            username = "PublicToken"
            password = "\u0064\u0064\u0066\u0039\u0036\u0065\u0030\u0063\u0061\u0032\u0066\u0065\u0032\u0039\u0033\u0033\u0036\u0030\u0035\u0062\u0031\u0033\u0031\u0035\u0038\u0063\u0061\u0064\u0061\u0033\u0030\u0031\u0030\u0035\u0062\u0037\u0035\u0032\u0066\u0061"
        }
    }
}

dependencies {
    compile group: 'io.github.thepieterdc.dodona', name: 'dodona-api-interface', version: '1.9.3'
    runtime group: 'io.github.thepieterdc.dodona', name: 'dodona-api-impl', version: '1.9.3'
}

Usage

public class ApiApplication {
    public static void main(String[] args) {
		final DodonaClient dodona = DodonaBuilder.builder()
			.authenticate("myToken")
			.setHost("https://dodona.be")
			.build();
		
		System.out.println("My name is " + dodona.me().getFirstName());
    }
}

Documentation

You can find the API documentation at https://thepieterdc.github.io/dodona-api-java/.

Releasing

This process is automated via GitHub Actions. In order to make a new release, trigger the Release workflow.

Credits

This library was created by Pieter De Clercq and Tobiah Lissens.