Skip to content

Commit

Permalink
minor build updates, JDK-22 EA
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Sep 23, 2023
1 parent 076f130 commit 387c3aa
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .github/actions/run-gradle/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ inputs:
required: true
description: The JDK version
early-access:
default: '21'
default: '22'
required: false
description: The early access release
graal:
default: '17'
default: '21'
required: false
description: The GraalVM version
token:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 20, 21, GraalVM ]
java: [ 11, 21, 22, GraalVM ]
env:
JAVA_VERSION: ${{ matrix.java }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ env:
schemastore.org:443
www.graalvm.org:443
PUBLISH_JDK: 11
EA_JDK: 21
EA_JDK: 22

jobs:
compile:
Expand All @@ -47,7 +47,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 20, 21, GraalVM ]
java: [ 11, 21, 22, GraalVM ]
env:
JAVA_VERSION: ${{ matrix.java }}
steps:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
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: -- --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
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,27 +54,21 @@ 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)
}
bnd(mapOf(
"Bundle-License" to "https://www.apache.org/licenses/LICENSE-2.0",
"Build-Jdk-Spec" to java.toolchain.languageVersion.get(),
"Implementation-Title" to project.description,
"Bundle-Description" to project.description,
"Implementation-Version" to version,
"-noextraheaders" to true,
"-reproducible" to true,
"-snapshot" to "SNAPSHOT"))
}
bundle.bnd(mapOf(
"Bundle-License" to "https://www.apache.org/licenses/LICENSE-2.0",
"Build-Jdk-Spec" to java.toolchain.languageVersion.get(),
"Implementation-Title" to project.description,
"Bundle-Description" to project.description,
"Implementation-Version" to version,
"-noextraheaders" to true,
"-reproducible" to true,
"-snapshot" to "SNAPSHOT"))
}

tasks.withType<Javadoc>().configureEach {
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 387c3aa

Please sign in to comment.