- If it does not already exist, create a
.gradle
directory in your home directory like this:
- 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>
- Replace the text
<...>
with the relevant information.
- 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
- Run the command: