From 749334493bca7090c1fcb549a064802995c30e4a Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Fri, 18 Apr 2025 15:55:57 -0700 Subject: [PATCH] Add JitPack token --- .circleci/config.yml | 2 +- .github/workflows/bld.yml | 2 +- .gitlab-ci.yml | 2 +- bitbucket-pipelines.yml | 2 +- src/bld/java/net/thauvin/erik/MobibotBuild.java | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c781fdc..9586fcd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,7 +24,7 @@ commands: version: 2.1.10 - run: name: Download dependencies - command: ./bld download + command: ./bld -Djitpack.token=$JITPACK_TOKEN download - run: name: Compile source command: ./bld compile diff --git a/.github/workflows/bld.yml b/.github/workflows/bld.yml index 8e7d939..5b88e5a 100644 --- a/.github/workflows/bld.yml +++ b/.github/workflows/bld.yml @@ -41,7 +41,7 @@ jobs: run: ./bld download - name: Compile source - run: ./bld compile + run: ./bld -Djitpack.token=${{ secrets.JITPACK_TOKEN }} compile - name: Run tests run: ./bld jacoco diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 10b9b0f..a2a4384 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,6 +19,6 @@ before_script: test: stage: test script: - - ./bld download + - ./bld -Djitpack.token=$JITPACK_TOKEN download - ./bld compile - ./bld test diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index ace99d2..132ed8d 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -15,6 +15,6 @@ pipelines: - sdk install kotlin - source "$HOME/.sdkman/bin/sdkman-init.sh" # Download, compile and test with bld - - ./bld download + - ./bld -Djitpack.token=$JITPACK_TOKEN download - ./bld compile - ./bld test diff --git a/src/bld/java/net/thauvin/erik/MobibotBuild.java b/src/bld/java/net/thauvin/erik/MobibotBuild.java index 6ed1d06..e4da3b1 100644 --- a/src/bld/java/net/thauvin/erik/MobibotBuild.java +++ b/src/bld/java/net/thauvin/erik/MobibotBuild.java @@ -67,7 +67,7 @@ public class MobibotBuild extends Project { pkg = "net.thauvin.erik.mobibot"; name = "mobibot"; version = version(0, 8, 0, "rc+" + - DateTimeFormatter.ofPattern("yyyyMMddHHmmss").format(LocalDateTime.now())); + DateTimeFormatter.ofPattern("yyyyMMddHHmmss").format(LocalDateTime.now())); mainClass = pkg + ".Mobibot"; @@ -77,7 +77,7 @@ public class MobibotBuild extends Project { repositories = List.of( MAVEN_LOCAL, MAVEN_CENTRAL, - new Repository("https://jitpack.io"), + new Repository("https://jitpack.io").withCredentials(property("jitpack.token"), "."), SONATYPE_SNAPSHOTS_LEGACY); var log4j = version(2, 24, 3);