Class SecretLoader

java.lang.Object
net.darkhax.mmc.module.SecretLoader

public class SecretLoader extends Object
This module loads secrets from a JSON file. This file is typically encrypted and can not be read outside the CI container.

The path to the file must be specified using secretFileV2 or secretFile, with V2 being preferred when available.

The JSON file must be structured as a map of strings. Values will be directly injected into extra properties using the JSON key as the property name. Keys that start with _ or end with _comment will be excluded.

  • Constructor Details

    • SecretLoader

      public SecretLoader()
  • Method Details

    • loadSecrets

      public static void loadSecrets(org.gradle.api.Project rootProject)