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

Latest commit

 

History

History
42 lines (29 loc) · 1.07 KB

DEV.md

File metadata and controls

42 lines (29 loc) · 1.07 KB

Setting up Gradle

  1. If it does not already exist, create a .gradle directory in your home directory like this:
mkdir -p ~/.gradle
  1. Create a file named gradle.properties at ~/.gradle/gradle.properties with the following content:
ARTIFACTORY_USERNAME=<YOUR_ARTIFACTORY_USERNAME>
ARTIFACTORY_PASSWORD=<YOUR_ARTIFACTORY_USERNAME>
FORGEROCK_MAVEN_USERNAME=<YOUR_FORGEROCK_MAVEN_USERNAME>
FORGEROCK_MAVEN_PASSWORD=<YOUR_FORGEROCK_MAVEN_PASSWORD>
  1. Replace the text <...> with the relevant information.

Setting up NPM

  1. Update your ~/.npmrc file with your Trusona Artifactory credentials
cat <<EOF > ~/.npmrc
@trusona:registry=https://trusona.jfrog.io/trusona/api/npm/npm
//trusona.jfrog.io/trusona/api/npm/:_password="$(echo -ne $ARTIFACTORY_PASSWORD | base64 -w 0)"
//trusona.jfrog.io/trusona/api/npm/:username=$ARTIFACTORY_USERNAME
//trusona.jfrog.io/trusona/api/npm/:email=$ARTIFACTORY_EMAIL
//trusona.jfrog.io/trusona/api/npm/:always-auth=true
EOF

Building the project

  1. Run the command:
./gradlew clean build