Skip to content

Installation

The Pine engine is distributed using GitHub Packages.

Option 1: Use boilerplate project setup

  1. Fork the Pine-boilerplate repository.
  2. Read the setup guide in the README file
  3. Customize the project to suit your needs

Option 2: Install using Gradle

  1. In your build.gradle file, add the following lines:

    build.gradle
    repositories {
    mavenCentral()
    maven {
    url "https://repo.gradle.org/gradle/libs-releases"
    }
    maven {
    url = uri("https://maven.pkg.github.com/prozilla/pine")
    credentials {
    username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
    password = project.findProperty("gpr.token") ?: System.getenv("TOKEN")
    }
    }
    }
    dependencies {
    implementation "dev.prozilla:pine:1.0.0"
    }
  2. Create a file with your environment variables. Replace YOUR_USERNAME and YOUR_TOKEN with your GitHub username and token respectively.

    gradle.properties
    gpr.user=YOUR_USERNAME
    gpr.token=YOUR_TOKEN

    Make sure to add this file to .gitignore so it remains private.