Skip to content
/ Japson Public
forked from Sitrica/Japson

A Java Protocol using Gson with Heartbeat

License

Notifications You must be signed in to change notification settings

Skungee/Japson

 
 

Repository files navigation

Japson

A Java Protocol using Gson with Heartbeat

Report all issues in our issues tab.

Maven

Maven requires setting up profiles and defining the token else where https://help.github.com/en/github/managing-packages-with-github-packages/configuring-apache-maven-for-use-with-github-packages

Gradle

Latest version can be found at https://github.com/Sitrica/Japson/packages

In your build.gradle add:

repositories {
	maven {
		url 'https://maven.pkg.github.com/Sitrica/Japson/'
		credentials {
			username = "<INSERT USERNAME>"
			password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_PACKAGES_KEY")
		}
	}
}

dependencies {
	compile (group: 'com.sitrica', name: 'japson', version: 'INSERT VERSION')
}

Getting a Github token:

1.) Go into your account settings on Github and create a personal token with the read:packages scope checked.

2.) Generate that key, and now go add a System Environment Variable named GITHUB_PACKAGES_KEY or set the gradle property "gpr.key" to your key.

3.) Restart system or if using Chocolatey type refreshenv

Note: you can just directly put your token as the password, but we highly discourage that.

Usage

See examples at https://github.com/Sitrica/Japson/tree/master/src/test/java/com/sitrica/japson

About

A Java Protocol using Gson with Heartbeat

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%