Skip to content

Commit

Permalink
minor build polish
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Mar 1, 2024
1 parent 210be6b commit 3cc066c
Show file tree
Hide file tree
Showing 25 changed files with 37 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dependency-submission-pr-retreive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
- name: Retrieve and submit dependency graph
uses: gradle/actions/dependency-submission@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
with:
dependency-graph-action: retrieve-and-submit
dependency-graph: download-and-submit
2 changes: 1 addition & 1 deletion .github/workflows/dependency-submission-pr-submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
uses: gradle/actions/dependency-submission@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
dependency-graph-action: generate-and-save
dependency-graph: generate-and-upload
16 changes: 8 additions & 8 deletions caffeine/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,15 @@ for (scenario in Scenario.all()) {
"implementation" to implementation)

useTestNG {
if (slow == Slow.Disabled) {
threadCount = max(6, Runtime.getRuntime().availableProcessors() - 1)
jvmArgs("-XX:+UseG1GC", "-XX:+ParallelRefProcEnabled")
excludeGroups("slow", "isolated", "lincheck")
parallel = "methods"
} else {
jvmArgs("-XX:+UseParallelGC")
includeGroups.add("slow")
if (slow == Slow.Enabled) {
maxParallelForks = 2
includeGroups.add("slow")
jvmArgs("-XX:+UseParallelGC")
} else {
parallel = "methods"
excludeGroups("slow", "isolated", "lincheck")
jvmArgs("-XX:+UseG1GC", "-XX:+ParallelRefProcEnabled")
threadCount = max(6, Runtime.getRuntime().availableProcessors() - 1)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
caffeine = "3.1.8"
junit = "5.10.2"
reactor = "3.6.2"
truth = "1.4.1"
truth = "1.4.2"
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.7-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-rc-2-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion examples/coalescing-bulkloader-reactor/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("com.gradle.enterprise") version "3.16.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.12.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.13"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

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.1"
junit = "5.10.2"
truth = "1.4.1"
truth = "1.4.2"
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.7-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-rc-2-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion examples/graal-native/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pluginManagement {
}
plugins {
id("com.gradle.enterprise") version "3.16.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.12.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.13"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

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.4.4.Final"
junit = "5.10.2"
log4j2 = "3.0.0-beta2"
slf4j = "2.0.7"
truth = "1.4.1"
truth = "1.4.2"
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.7-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-rc-2-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion examples/hibernate/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("com.gradle.enterprise") version "3.16.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.12.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.13"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

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.10.2"
truth = "1.4.1"
truth = "1.4.2"
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.7-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-rc-2-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion examples/resilience-failsafe/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("com.gradle.enterprise") version "3.16.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.12.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.13"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-rc-2-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion examples/write-behind-rxjava/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("com.gradle.enterprise") version "3.16.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.12.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.13"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ snakeyaml = "2.2"
sonarqube = "4.4.1.3373"
spotbugs-contrib = "7.6.4"
spotbugs-core = "4.8.3"
spotbugs-plugin = "6.0.7"
spotbugs-plugin = "6.0.8"
stream = "2.9.8"
tcache = "2.0.1"
testng = "7.9.0"
truth = "1.4.1"
truth = "1.4.2"
univocity-parsers = "2.9.1"
versions = "0.51.0"
xz = "1.9"
Expand Down
2 changes: 1 addition & 1 deletion gradle/plugins/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("com.gradle.enterprise") version "3.16.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.12.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.13"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

Expand Down
9 changes: 5 additions & 4 deletions gradle/plugins/src/main/kotlin/ProjectExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import org.gradle.accessors.dm.LibrariesForLibs
import org.gradle.api.Project
import org.gradle.kotlin.dsl.the

val Project.libs get() = the<LibrariesForLibs>()
val Project.libs
get() = the<LibrariesForLibs>()

fun Project.version(major: Int, minor: Int, patch: Int, releaseBuild: Boolean) {
version = "$major.$minor.$patch" + if (releaseBuild) "" else "-SNAPSHOT"
Expand Down Expand Up @@ -32,6 +33,6 @@ val DisableStrongEncapsulationJvmArgs = listOf(
"--add-exports", "jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED",
"--add-exports", "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
"--add-exports", "jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED",
"--add-opens", "jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
"--add-opens", "jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED",
"--add-opens", "jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED")
"--add-opens", "jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
"--add-opens", "jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED",
"--add-opens", "jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED")
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ tasks.withType<JmhTask>().configureEach {
}

tasks.withType<JmhBytecodeGeneratorTask>().configureEach {
javaLauncher= javaToolchains.launcherFor {
javaLauncher = javaToolchains.launcherFor {
languageVersion = java.toolchain.languageVersion
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tasks.named<DependencyUpdatesTask>("dependencyUpdates").configure {
componentSelection {
all {
val stable = setOf("com.hazelcast", "javax.json.bind",
"org.jetbrains.kotlin", "org.osgi", "org.slf4j")
"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 @@ -29,7 +29,7 @@ publishing {
name = "Caffeine cache"
description = project.description
url = "https://github.com/ben-manes/caffeine"
inceptionYear= "2014"
inceptionYear = "2014"

scm {
url = "https://github.com/ben-manes/caffeine"
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.7-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-rc-2-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pluginManagement {
}
plugins {
id("com.gradle.enterprise") version "3.16.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.12.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.13"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

Expand Down

0 comments on commit 3cc066c

Please sign in to comment.