Accessing the Artifact Repository

When you provided the signed Evaluation Agreement, you would have received the credentials to access the TomTom Digital Cockpit Nexus repository, a binary repository hosted by TomTom. The build process needs these credentials to retrieve TomTom Digital Cockpit platform dependencies from the repository.

These credentials can be passed to the build process in several ways:

Note: When you decide to store the binary artifacts or the Nexus credentials in a repository, please make sure that it is not publicly accessible.

Storing credentials globally

You can store the credentials in your file, in the directory specified by the GRADLE_USER_HOME environment variable, usually ~/.gradle/. When such a file does not exists yet, you can create one.

Windows: Use the file in the %UserProfile%\.gradle folder.

In your file, add the following:


Note: On some operating systems, a hash character # in the username or password must be escaped as \# to be properly recognized.

Specifying credentials on the command line

When you don't like storing credentials in a local properties file, you can provide them on the command line when invoking Gradle. For example:

Linux or Mac:

./gradlew -PnexusUsername=<username> -PnexusPassword=<password> build


.\gradlew.bat -PnexusUsername=<username> -PnexusPassword=<password> build

Next step: Configuring Android Studio