Skip to content

Commit

Permalink
fix jitpack build [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Dec 25, 2024
1 parent ddd1210 commit 7f44f04
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
plugins {
id("dev.sigstore.sign")
`maven-publish`
`java-library`
signing
}

if (System.getenv("ACTIONS_ID_TOKEN_REQUEST_URL") != null) {
apply(plugin = "dev.sigstore.sign")
}

java {
withJavadocJar()
withSourcesJar()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import static com.google.common.base.MoreObjects.firstNonNull;
import static com.google.common.collect.ImmutableMap.toImmutableMap;
import static com.google.common.truth.Truth.assertThat;
import static java.util.Objects.requireNonNull;
import static java.util.function.Function.identity;
import static javax.cache.expiry.Duration.FIVE_MINUTES;

Expand Down Expand Up @@ -141,7 +142,8 @@ final class MapLoader implements CacheLoader<Integer, Integer> {
return map.get(key);
}
@Override public ImmutableMap<Integer, Integer> loadAll(Iterable<? extends Integer> keys) {
return Streams.stream(keys).collect(toImmutableMap(identity(), this::load));
return Streams.stream(keys).collect(
toImmutableMap(identity(), key -> requireNonNull(load(key))));
}
}
}
4 changes: 2 additions & 2 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
before_install:
- source "$HOME/.sdkman/bin/sdkman-init.sh"
- sdk update
- sdk install java 21.0.3-zulu
- sdk use java 21.0.3-zulu
- sdk install java 21.0.5-zulu
- sdk use java 21.0.5-zulu

0 comments on commit 7f44f04

Please sign in to comment.