Vernam Core Library provides all necessary utilities for generating cryptic passwords
In order to publish the packet to GitHub Package you need to provide GITHUB_USERNAME
and GITHUB_TOKEN
.
You may pass it via env variables like this:
USERNAME=<USERNAME> TOKEN=<TOKEN> ./gradlew publish
Or create file local.properties
with following content:
gpr.user=<github username>
gpr.key=<github token>
- Add
GitHub Package
repo to your Gradle project:
def localProperties = new Properties()
localProperties.load(new FileInputStream(rootProject.file("local.properties")))
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ZVernam/vernam-tools")
credentials {
username = localProperties["gpr.user"] ?: System.getenv("USERNAME")
password = localProperties["gpr.key"] ?: System.getenv("TOKEN")
}
}
}
- Add
implementation
dependency:
// vernam library
implementation "com.github.zeckson:vernam-tools:$version"