diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml index d3f40317a8..b5123a4c7f 100644 --- a/.github/workflows/snyk.yml +++ b/.github/workflows/snyk.yml @@ -39,7 +39,7 @@ jobs: services.gradle.org:443 - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 - name: Run Snyk test - uses: snyk/actions/gradle@master + uses: snyk/actions/gradle-jdk11@master continue-on-error: true env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} @@ -57,9 +57,10 @@ jobs: with: sarif_file: snyk.sarif - name: Run Snyk monitor - uses: snyk/actions/gradle@master + uses: snyk/actions/gradle-jdk11@master continue-on-error: true env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} with: command: monitor + args: -- --no-configuration-cache diff --git a/examples/coalescing-bulkloader-reactor/gradle/wrapper/gradle-wrapper.properties b/examples/coalescing-bulkloader-reactor/gradle/wrapper/gradle-wrapper.properties index ac72c34e8a..b745ffcc57 100644 --- a/examples/coalescing-bulkloader-reactor/gradle/wrapper/gradle-wrapper.properties +++ b/examples/coalescing-bulkloader-reactor/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-rc-1-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/examples/graal-native/gradle/wrapper/gradle-wrapper.properties b/examples/graal-native/gradle/wrapper/gradle-wrapper.properties index c30b486a89..e3b77bf66e 100644 --- a/examples/graal-native/gradle/wrapper/gradle-wrapper.properties +++ b/examples/graal-native/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-rc-1-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/examples/hibernate/README.md b/examples/hibernate/README.md index 7d6313f1a8..8ae8c57ce4 100644 --- a/examples/hibernate/README.md +++ b/examples/hibernate/README.md @@ -17,7 +17,7 @@ path may be overridden by setting the `hibernate.javax.cache.uri` in the previou ```hocon caffeine.jcache { default { - policy.maximum.size = 500 + monitoring.statistics = true } # Hibernate framework caches diff --git a/examples/hibernate/gradle/wrapper/gradle-wrapper.properties b/examples/hibernate/gradle/wrapper/gradle-wrapper.properties index c30b486a89..e3b77bf66e 100644 --- a/examples/hibernate/gradle/wrapper/gradle-wrapper.properties +++ b/examples/hibernate/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-rc-1-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/examples/resilience-failsafe/gradle/wrapper/gradle-wrapper.properties b/examples/resilience-failsafe/gradle/wrapper/gradle-wrapper.properties index ac72c34e8a..b745ffcc57 100644 --- a/examples/resilience-failsafe/gradle/wrapper/gradle-wrapper.properties +++ b/examples/resilience-failsafe/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-rc-1-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/examples/write-behind-rxjava/gradle/wrapper/gradle-wrapper.properties b/examples/write-behind-rxjava/gradle/wrapper/gradle-wrapper.properties index ac72c34e8a..b745ffcc57 100644 --- a/examples/write-behind-rxjava/gradle/wrapper/gradle-wrapper.properties +++ b/examples/write-behind-rxjava/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-rc-1-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 780317d2cd..49a07f4377 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -22,7 +22,7 @@ coveralls = "2.12.2" dependency-check = "8.4.0" eclipse-collections = "12.0.0.M3" ehcache3 = "3.10.8" -errorprone-core = "2.21.1" +errorprone-core = "2.22.0" errorprone-plugin = "3.1.0" errorprone-support = "0.13.0" expiring-map = "0.5.10" diff --git a/gradle/plugins/src/main/kotlin/lifecycle/java-library-caffeine-conventions.gradle.kts b/gradle/plugins/src/main/kotlin/lifecycle/java-library-caffeine-conventions.gradle.kts index 9f3e043ca4..4252712046 100644 --- a/gradle/plugins/src/main/kotlin/lifecycle/java-library-caffeine-conventions.gradle.kts +++ b/gradle/plugins/src/main/kotlin/lifecycle/java-library-caffeine-conventions.gradle.kts @@ -54,7 +54,6 @@ tasks.withType().configureEach { } } -val projectDescription = objects.property().convention(provider { project.description }) tasks.jar { inputs.property("version", project.version.toString()) outputs.cacheIf { true } @@ -62,9 +61,7 @@ tasks.jar { from("$rootDir/LICENSE") } bundle { - properties = projectDescription.map { - mapOf("project.description" to it) - } + properties.empty() bnd(mapOf( "Bundle-License" to "https://www.apache.org/licenses/LICENSE-2.0", "Build-Jdk-Spec" to java.toolchain.languageVersion.get(), diff --git a/gradle/plugins/src/main/kotlin/quality/errorprone-caffeine-conventions.gradle.kts b/gradle/plugins/src/main/kotlin/quality/errorprone-caffeine-conventions.gradle.kts index 0821e63ec5..f27c5f7da3 100644 --- a/gradle/plugins/src/main/kotlin/quality/errorprone-caffeine-conventions.gradle.kts +++ b/gradle/plugins/src/main/kotlin/quality/errorprone-caffeine-conventions.gradle.kts @@ -125,6 +125,7 @@ fun enabledChecks() = listOf( "SwitchDefault", "TimeUnitMismatch", "TransientMisuse", + "TruthContainsExactlyElementsInUsage", "UnnecessarilyVisible", "UnnecessaryAnonymousClass", "UnnecessaryOptionalGet", diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 9f93a78601..cfebe1804e 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,4 +1,4 @@ -distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-rc-1-bin.zip distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME diff --git a/guava/src/test/java/com/github/benmanes/caffeine/guava/compatibility/CacheLoadingTest.java b/guava/src/test/java/com/github/benmanes/caffeine/guava/compatibility/CacheLoadingTest.java index 00e3503b74..e511222039 100644 --- a/guava/src/test/java/com/github/benmanes/caffeine/guava/compatibility/CacheLoadingTest.java +++ b/guava/src/test/java/com/github/benmanes/caffeine/guava/compatibility/CacheLoadingTest.java @@ -448,7 +448,7 @@ public Map loadAll(Iterable keys) { Object[] lookupKeys = new Object[] { new Object(), new Object(), new Object() }; ImmutableMap result = cache.getAll(asList(lookupKeys)); - assertThat(result.keySet()).containsExactlyElementsIn(asList(lookupKeys)); + assertThat(result.keySet()).containsExactly(lookupKeys); for (Map.Entry entry : result.entrySet()) { Object key = entry.getKey(); Object value = entry.getValue(); @@ -485,7 +485,7 @@ public Map loadAll(Iterable keys) { Object[] lookupKeys = new Object[] { new Object(), new Object(), new Object() }; ImmutableMap result = cache.getAll(asList(lookupKeys)); - assertThat(result.keySet()).containsExactlyElementsIn(asList(lookupKeys)); + assertThat(result.keySet()).containsExactlyElementsIn(lookupKeys); for (Map.Entry entry : result.entrySet()) { Object key = entry.getKey(); Object value = entry.getValue();