Configuring Gradle
How to configure the Gradle package manager
Last updated
How to configure the Gradle package manager
This page explains how to configure the Gradle package manager to pull packages from the Seal artifact server based on your existing setup.
Make sure you have the access token for the server ready.
Open the project's build.gradle file under the app directory.
In the repositories section add Seal Security's artifact server. Note that it should replace or be before the built-in servers such as mavenCentral() and google() as explained here. See the following example:
repositories {
maven {
credentials {
username "$sealUser"
password "$sealToken"
}
url "https://maven.sealsecurity.io"
}
}Open the project's gradle.properties file and set the following properties, where SEAL_TOKEN stands for your token and SEAL_PROJECT should be the name of your project:
sealUser=SEAL_PROJECT
sealToken=SEAL_TOKENGo to JFrog's Artifactory configuration and create a new remote Maven repository.
In the Basic configuration, choose whatever Repository Key you like.
In both the URL field set https://maven.sealsecurity.io.
In the User Name field use jfrog.
In the Password / Access Token field paste the Production token you created earlier.
Turn off the Handle Snapshots option.
Save the new repository, and set it as the top priority remote repository in the virtual repository you're using.
Last updated