Skip to content

Commit ac1dd29

Browse files
committed
Switch to findProperty
1 parent 1b59c7b commit ac1dd29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ext {
22
grailsVersion = projectVersion
33
isCiBuild = System.getenv().get('CI') as Boolean
4-
configuredTestParallel = System.getProperty('maxTestParallel') as Integer ?: (isCiBuild ? 3 : Runtime.runtime.availableProcessors() * 3/4 as int ?: 1)
4+
configuredTestParallel = find('maxTestParallel') as Integer ?: (isCiBuild ? 3 : Runtime.runtime.availableProcessors() * 3/4 as int ?: 1)
55
excludeUnusedTransDeps = findProperty('excludeUnusedTransDeps')
66

77
// Directories created during the build which are related

grails-gradle/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ext {
2121
ext.'signing.password' = project.findProperty('signing.password') ?: System.getenv('SIGNING_PASSPHRASE')
2222
ext.'signing.secretKeyRingFile' = project.findProperty('signing.secretKeyRingFile') ?: "${System.properties['user.home']}${File.separator}.gnupg${File.separator}secring.gpg"
2323
isCiBuild = System.getenv().get('CI') as Boolean
24-
configuredTestParallel = System.getProperty('maxTestParallel') as Integer ?: (isCiBuild ? 3 : Runtime.runtime.availableProcessors() * 3/4 as int ?: 1)
24+
configuredTestParallel = findProperty('maxTestParallel') as Integer ?: (isCiBuild ? 3 : Runtime.runtime.availableProcessors() * 3/4 as int ?: 1)
2525
}
2626
if (isReleaseVersion) {
2727
apply plugin: 'io.github.gradle-nexus.publish-plugin'

0 commit comments

Comments
 (0)