Add JitPack token

This commit is contained in:
Erik C. Thauvin 2025-04-18 15:55:57 -07:00
parent 9e49da5d56
commit 749334493b
Signed by: erik
GPG key ID: 776702A6A2DA330E
5 changed files with 6 additions and 6 deletions

View file

@ -24,7 +24,7 @@ commands:
version: 2.1.10 version: 2.1.10
- run: - run:
name: Download dependencies name: Download dependencies
command: ./bld download command: ./bld -Djitpack.token=$JITPACK_TOKEN download
- run: - run:
name: Compile source name: Compile source
command: ./bld compile command: ./bld compile

View file

@ -41,7 +41,7 @@ jobs:
run: ./bld download run: ./bld download
- name: Compile source - name: Compile source
run: ./bld compile run: ./bld -Djitpack.token=${{ secrets.JITPACK_TOKEN }} compile
- name: Run tests - name: Run tests
run: ./bld jacoco run: ./bld jacoco

View file

@ -19,6 +19,6 @@ before_script:
test: test:
stage: test stage: test
script: script:
- ./bld download - ./bld -Djitpack.token=$JITPACK_TOKEN download
- ./bld compile - ./bld compile
- ./bld test - ./bld test

View file

@ -15,6 +15,6 @@ pipelines:
- sdk install kotlin - sdk install kotlin
- source "$HOME/.sdkman/bin/sdkman-init.sh" - source "$HOME/.sdkman/bin/sdkman-init.sh"
# Download, compile and test with bld # Download, compile and test with bld
- ./bld download - ./bld -Djitpack.token=$JITPACK_TOKEN download
- ./bld compile - ./bld compile
- ./bld test - ./bld test

View file

@ -67,7 +67,7 @@ public class MobibotBuild extends Project {
pkg = "net.thauvin.erik.mobibot"; pkg = "net.thauvin.erik.mobibot";
name = "mobibot"; name = "mobibot";
version = version(0, 8, 0, "rc+" + version = version(0, 8, 0, "rc+" +
DateTimeFormatter.ofPattern("yyyyMMddHHmmss").format(LocalDateTime.now())); DateTimeFormatter.ofPattern("yyyyMMddHHmmss").format(LocalDateTime.now()));
mainClass = pkg + ".Mobibot"; mainClass = pkg + ".Mobibot";
@ -77,7 +77,7 @@ public class MobibotBuild extends Project {
repositories = List.of( repositories = List.of(
MAVEN_LOCAL, MAVEN_LOCAL,
MAVEN_CENTRAL, MAVEN_CENTRAL,
new Repository("https://jitpack.io"), new Repository("https://jitpack.io").withCredentials(property("jitpack.token"), "."),
SONATYPE_SNAPSHOTS_LEGACY); SONATYPE_SNAPSHOTS_LEGACY);
var log4j = version(2, 24, 3); var log4j = version(2, 24, 3);