Skip to content

Accompanying repo to tutorial video where you’ll learn how to securely setup credentials for your private Maven repository using Jenkins credentials, and inject them into your Gradle builds.

jenkins-hero/gradle-credentials-jenkins

Repository files navigation

Repository to go along with the How To Secure Your Gradle Credentials In Jenkins article at jenkinshero.com.

Pre-requisites

  • Docker

Running

./gradlew docker dockerComposeUp

This will run:

  • Jenkins
  • Archiva

Stopping

docker-compose down

(unfortunately the Palantir Gradle plugin doesn't provide a dockerComposeDown task so we have to run the docker-compose command directly)

Publishing

./gradlew publish

This will publish a simple jar file with a single Java class to a locally configured Archiva Maven repository.

Building

./gradlew build

This will try to build the project-to-build project. It has a dependency on an artifact that it expects to be in a locally configured Archiva Maven repository.

About

Accompanying repo to tutorial video where you’ll learn how to securely setup credentials for your private Maven repository using Jenkins credentials, and inject them into your Gradle builds.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published