Shellum
Shellum

Reputation: 3179

How can a Github Gradle project built in travis-ci access dependencies normally found in my local Maven repo?

I have a GitHub project with a Gradle build. Gradle knows how to look in my local Maven repository when building locally.

How can I tell Travis-CI about these dependencies without including the artifacts in the actual project? The dependencies are private and can't really be pushed to something like maven central for everyone to see.

Upvotes: 2

Views: 594

Answers (1)

Peter Niederwieser
Peter Niederwieser

Reputation: 123950

You can either commit the artifacts to a private source control repository, or push them to a private binary repository. The only suitable software-as-a-service binary repository that I'm aware of at this time is Artifactory Online. If you go with a binary repository, you'll also have to provide Travis with (temporary) credentials to download the artifacts. One way to do this would be to configure the Travis build to set an environment variable containing the necessary information.

Upvotes: 1

Related Questions