Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Workiva/maven_repository

Repository files navigation

maven_repository

OneCloud internal Java Maven Repository

Instructions

Prerequisites

  1. Make sure you have a GitHub personal access token setup on your machine with access to read/write packages. If you do not, follow the instructions here
  2. Add the generated token to your ~/.zshrc (or equivalent) as an environment variable GITHUB_TOKEN
    1. The token must have access to read/write packages
  3. Add another environment variable to your ~/.zshrc (or equivalent) containing your github username, stored in GITHUB_USERNAME

Publishing Steps

  1. Copy the contents of the sample build.gradle file to your library. then add additional gradle settings and dependencies as desired
  2. Copy the sample gradle.properties file in this repo and replace the variables with the desired values
  3. Develop your library
  4. ./gradlew publish
  5. Once completed, you will see the new package here

Using Published Libraries

  1. In your build.gradle file, add the below maven repository configuration
repositories {
    // ... other repositories such as mavenCentral()
    maven {
        url = "https://maven.pkg.github.com/OneCloudInc/maven_repository"
        credentials {
            username = System.getenv("GITHUB_USERNAME")
            password = System.getenv("GITHUB_TOKEN")
        }
    }
}

About

OneCloud internal Java Maven Repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages