From 3958c475817671db445ae78babc990a2feac903f Mon Sep 17 00:00:00 2001 From: Florian Schrofner Date: Sun, 29 Jan 2023 13:27:58 +0100 Subject: [PATCH] adapt gradle cache extractor readme --- gradle-cache-extractor/readme.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/gradle-cache-extractor/readme.md b/gradle-cache-extractor/readme.md index 47f2f00..ecb4f98 100644 --- a/gradle-cache-extractor/readme.md +++ b/gradle-cache-extractor/readme.md @@ -26,5 +26,32 @@ allprojects { } ``` -Unfortunately I wasn't able to make this works with private repositories and a token. If you got that to work, I'd be happy to hear about it! It would make that solution even nicer. +Unfortunately I wasn't able to make this works with private repositories and a token on Github. If you got that to work, I'd be happy to hear about it! It would make that solution even nicer. + +On Bitbucket you can actually use app passwords and specify them for private repositories like this: +```groovy +``` +maven { + url 'https://api.bitbucket.org/2.0/repositories/USER/REPO/src/BRANCH/FOLDER' + credentials { + username = bitbucketUser + password = bitbucketPassword + } + authentication { + basic(BasicAuthentication) + } +} +``` +``` + Either way you can also just host it on any static webserver. + +### Fish +To use the script from anywhere easily, you can create the following fish function: + +``` +function gce + PATH_TO_SCRIPT/gce.clj $argv +end +funcsave gce +```