Skip to content

Commit

Permalink
dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Jul 14, 2024
1 parent 5ada041 commit 3f8e29f
Show file tree
Hide file tree
Showing 25 changed files with 50 additions and 54 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
- simulator:check
- jcache:check
- guava:check
java: [ 11, 22 ]
java: [ 11, 24 ]
include:
- suite: caffeine:weakKeysAndStrongValuesStatsSyncGuavaSlowTest
java: 11
Expand Down Expand Up @@ -182,6 +182,7 @@ jobs:
with:
java: ${{ env.JAVA_VERSION }}
arguments: ${{ matrix.suite }}
early-access: ${{ env.EA_JDK }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Format Test Artifact Name
if: always() && (env.JAVA_VERSION == env.PUBLISH_JDK)
Expand Down
3 changes: 1 addition & 2 deletions caffeine/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ sourceSets {
val compileJavaPoetJava by tasks.existing
val javaAgent: Configuration by configurations.creating
val collections4Sources: Configuration by configurations.creating
var javaPoetImplementation: Configuration = configurations["javaPoetImplementation"]
val javaPoetImplementation: Configuration = configurations["javaPoetImplementation"]

dependencies {
api(libs.checker.annotations)
Expand All @@ -39,7 +39,6 @@ dependencies {
testImplementation(libs.jctools)
testImplementation(libs.fastutil)
testImplementation(libs.lincheck)
testImplementation(libs.guava.testlib)
testImplementation(libs.commons.lang3)
testImplementation(libs.bundles.slf4j.test)
testImplementation(libs.commons.collections4)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
caffeine = "3.1.8"
junit = "5.11.0-M2"
reactor = "3.6.7"
truth = "1.4.3"
truth = "1.4.4"
versions = "0.51.0"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion examples/graal-native/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
caffeine = "3.1.8"
graal = "0.10.2"
junit = "5.11.0-M2"
truth = "1.4.3"
truth = "1.4.4"
versions = "0.51.0"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion examples/hibernate/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ hibernate = "6.5.2.Final"
junit = "5.11.0-M2"
log4j2 = "3.0.0-beta2"
slf4j = "2.0.7"
truth = "1.4.3"
truth = "1.4.4"
versions = "0.51.0"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
5 changes: 5 additions & 0 deletions examples/indexable/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
org.gradle.configuration-cache=true
org.gradle.configureondemand=true
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.daemon=true
2 changes: 1 addition & 1 deletion examples/indexable/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
caffeine = "3.1.8"
guava = "33.2.1-jre"
junit-jupiter = "5.11.0-M2"
truth = "1.4.3"
truth = "1.4.4"
versions = "0.51.0"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion examples/resilience-failsafe/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
caffeine = "3.1.8"
failsafe = "3.3.2"
junit = "5.11.0-M2"
truth = "1.4.3"
truth = "1.4.4"
versions = "0.51.0"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-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
@@ -1,4 +1,4 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
12 changes: 6 additions & 6 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ commons-text = "1.12.0"
concurrentlinkedhashmap = "1.4.2"
config = "1.4.3"
coveralls = "2.12.2"
dependency-check = "10.0.1"
dependency-check = "10.0.2"
eclipse-collections = "12.0.0.M3"
ehcache3 = "3.10.8"
errorprone = "2.28.0"
Expand All @@ -41,8 +41,8 @@ hamcrest = "2.2"
hazelcast = "5.3.7"
httpclient = "4.5.14"
idea = "1.1.8"
jackrabbit = "1.64.0"
jackson = "2.17.1"
jackrabbit = "1.66.0"
jackson = "2.17.2"
jacoco = "0.8.12"
jakarta-inject = "2.0.1"
jamm = "0.4.0"
Expand All @@ -59,7 +59,7 @@ jmh-plugin = "0.7.2"
jmh-report = "0.9.6"
joor = "0.9.15"
json-bind = "1.0"
jsoup = "1.17.2"
jsoup = "1.18.1"
junit-testng = "1.0.5"
junit4 = "4.13.2"
junit5 = "5.11.0-M2"
Expand All @@ -86,11 +86,11 @@ snakeyaml = "2.2"
sonarqube = "5.1.0.4882"
spotbugs = "4.8.6"
spotbugs-contrib = "7.6.4"
spotbugs-plugin = "6.0.18"
spotbugs-plugin = "6.0.19"
stream = "2.9.8"
tcache = "2.0.1"
testng = "7.10.2"
truth = "1.4.3"
truth = "1.4.4"
univocity-parsers = "2.9.1"
versions = "0.51.0"
xz = "1.9"
Expand Down
2 changes: 1 addition & 1 deletion gradle/plugins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ tasks.withType<DependencyUpdatesTask> {
componentSelection {
val ignoredGroups = listOf("com.beust", "org.apache.logging.log4j",
"org.jetbrains.kotlin", "org.gradle.kotlin.kotlin-dsl")
val stable = setOf("com.fasterxml.jackson", "com.squareup.okhttp3")
val stable = setOf("com.fasterxml.jackson", "com.google.protobuf", "com.squareup.okhttp3")
val isNonStable = "^[0-9,.v-]+(-r)?$".toRegex()
all {
if ((candidate.group in ignoredGroups) && (candidate.version != currentVersion)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {
}

configurations.jmh {
extendsFrom(configurations.testImplementation.get())
extendsFrom(configurations["testImplementation"])
exclude(module = "jazzer-junit")
exclude(module = "slf4j-test")
}
Expand Down Expand Up @@ -95,7 +95,7 @@ tasks.named("jmhReport").configure {
}

idea.module {
scopes["PROVIDED"]!!["plus"]!!.add(configurations.jmh.get())
scopes["PROVIDED"]!!["plus"]!!.add(configurations["jmh"])
}

eclipse.classpath.file.whenMerged {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ tasks.withType<JavaCompile>().configureEach {
languageVersion = maxOf(javaVersion, JavaLanguageVersion.of(17))
}

options.compilerArgs.add("-Xlint:all,-auxiliaryclass,-exports,-processing,"
+ "-removal,-requires-automatic,-requires-transitive-automatic")
options.compilerArgs.addAll(listOf("-Xmaxerrs", "500", "-Xmaxwarns", "500"))
options.compilerArgs.addAll(listOf( "-Xlint:all", "-Xlint:-auxiliaryclass", "-Xlint:-classfile",
"-Xlint:-exports", "-Xlint:-processing", "-Xlint:-removal", "-Xlint:-requires-automatic"))
if (javaVersion.canCompileOrRun(21)) {
options.compilerArgs.add("-proc:full")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies {
testImplementation(libs.hamcrest)
testImplementation(libs.awaitility)
testImplementation(libs.bundles.junit)
testImplementation(libs.guava.testlib)
testImplementation(libs.bundles.osgi.test.compile)

testImplementation(platform(libs.asm.bom))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ tasks.named<DependencyUpdatesTask>("dependencyUpdates").configure {
componentSelection {
all {
val ignoredGroups = listOf("com.beust", "org.apache.logging.log4j")
val stable = setOf("com.hazelcast", "javax.json.bind",
"org.jetbrains.kotlin", "org.osgi", "org.slf4j")
val stable = setOf("com.google.protobuf", "com.hazelcast",
"javax.json.bind", "org.jetbrains.kotlin", "org.osgi", "org.slf4j")
if ((candidate.group in stable) && isNonStable(candidate.version)) {
reject("Release candidate")
} else if ((candidate.module == "commons-io") && candidate.version.startsWith("2003")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ tasks.withType<JacocoReport>().configureEach {
}

tasks.withType<Test>().configureEach {
if (environment["JDK_EA"] == "true") {
if (System.getenv("JDK_EA") == "true") {
systemProperty("net.bytebuddy.experimental", true)
configure<JacocoTaskExtension> {
enabled = false
isEnabled = false
}
}
}
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.9-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
5 changes: 0 additions & 5 deletions guava/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@ dependencies {
api(libs.guava)

testImplementation(libs.jctools)
testImplementation(libs.guava.testlib)
testImplementation(libs.bundles.slf4j.nop)
}

tasks.named<JavaCompile>("compileJava").configure {
modularity.inferModulePath = true
}

tasks.withType<Test>().configureEach {
useJUnitPlatform()

Expand Down
6 changes: 0 additions & 6 deletions jcache/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ dependencies {
api(libs.jcache)
api(libs.config)

testImplementation(libs.guava)
testImplementation(libs.jcache.guice)
testImplementation(libs.guava.testlib)
testImplementation(libs.bundles.slf4j.nop)
testImplementation(files(testResourcesJar))
testImplementation(libs.jcache.tck)
Expand Down Expand Up @@ -76,10 +74,6 @@ val unzipJCacheJavaDoc by tasks.registering(Copy::class) {
into(layout.buildDirectory.dir("jcache-docs"))
}

tasks.named<JavaCompile>("compileJava").configure {
modularity.inferModulePath = true
}

tasks.jar {
bundle.bnd(mapOf(
"Automatic-Module-Name" to "com.github.benmanes.caffeine.jcache",
Expand Down
26 changes: 14 additions & 12 deletions simulator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ tasks.withType<JavaCompile>().configureEach {
disableWarningsInGeneratedCode = true
nullaway.disable()
}
modularity.inferModulePath = true
}

tasks.withType<Test>().configureEach {
Expand All @@ -77,19 +76,10 @@ tasks.withType<Javadoc>().configureEach {
tasks.named<JavaExec>("run").configure {
description = "Runs a single simulation and generates a report"
}

tasks.register<Simulate>("simulate") {
description = "Runs multiple simulations and generates an aggregate report"
mainClass = "com.github.benmanes.caffeine.cache.simulator.Simulate"
}

tasks.register<Rewrite>("rewrite") {
description = "Rewrite traces into the format used by other simulators"
mainClass = "com.github.benmanes.caffeine.cache.simulator.parser.Rewriter"
}
tasks.register<Simulate>("simulate")
tasks.register<Rewrite>("rewrite")

tasks.withType<JavaExec>().configureEach {
group = group ?: "Application"
dependsOn(tasks.processResources, tasks.compileJava)
classpath(sourceSets["main"].runtimeClasspath)
systemProperties(caffeineSystemProperties())
Expand Down Expand Up @@ -117,6 +107,12 @@ abstract class Simulate @Inject constructor(
@OutputDirectory
val reportDir = File(projectLayout.buildDirectory.get().asFile, "/reports/$name")

init {
group = "Application"
mainClass = "com.github.benmanes.caffeine.cache.simulator.Simulate"
description = "Runs multiple simulations and generates an aggregate report"
}

@TaskAction
override fun exec() {
if (maximumSize.isNotEmpty()) {
Expand All @@ -140,6 +136,12 @@ abstract class Rewrite : JavaExec() {
@Input @Option(option = "outputFormat", description = "The output format")
var outputFormat: String = ""

init {
group = "Application"
description = "Rewrite traces into the format used by other simulators"
mainClass = "com.github.benmanes.caffeine.cache.simulator.parser.Rewriter"
}

@TaskAction
override fun exec() {
if (inputFiles.isNotEmpty()) {
Expand Down

0 comments on commit 3f8e29f

Please sign in to comment.