Skip to content

Commit

Permalink
minor build updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Sep 23, 2023
1 parent 076f130 commit 9c3b88b
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 17 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ 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 }}
with:
command: test
args: --sarif-file-output=snyk.sarif -- --no-configuration-cache
args: --sarif-file-output=snyk.sarif --all-sub-projects -- --no-configuration-cache
- name: Check file existence
id: check_files
uses: andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2.0.0
Expand All @@ -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: --all-sub-projects -- --no-configuration-cache
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion examples/hibernate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,14 @@ tasks.withType<AbstractArchiveTask>().configureEach {
}
}

val projectDescription = objects.property<String>().convention(provider { project.description })
tasks.jar {
inputs.property("version", project.version.toString())
outputs.cacheIf { true }
metaInf {
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(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ fun enabledChecks() = listOf(
"SwitchDefault",
"TimeUnitMismatch",
"TransientMisuse",
"TruthContainsExactlyElementsInUsage",
"UnnecessarilyVisible",
"UnnecessaryAnonymousClass",
"UnnecessaryOptionalGet",
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public Map<Object, Object> loadAll(Iterable<?> keys) {

Object[] lookupKeys = new Object[] { new Object(), new Object(), new Object() };
ImmutableMap<Object, Object> result = cache.getAll(asList(lookupKeys));
assertThat(result.keySet()).containsExactlyElementsIn(asList(lookupKeys));
assertThat(result.keySet()).containsExactly(lookupKeys);
for (Map.Entry<Object, Object> entry : result.entrySet()) {
Object key = entry.getKey();
Object value = entry.getValue();
Expand Down Expand Up @@ -485,7 +485,7 @@ public Map<Object, Object> loadAll(Iterable<?> keys) {

Object[] lookupKeys = new Object[] { new Object(), new Object(), new Object() };
ImmutableMap<Object, Object> result = cache.getAll(asList(lookupKeys));
assertThat(result.keySet()).containsExactlyElementsIn(asList(lookupKeys));
assertThat(result.keySet()).containsExactlyElementsIn(lookupKeys);
for (Map.Entry<Object, Object> entry : result.entrySet()) {
Object key = entry.getKey();
Object value = entry.getValue();
Expand Down

0 comments on commit 9c3b88b

Please sign in to comment.