Skip to content

Commit 4cd6f30

Browse files
committed
chore(build): clean up skipTests condition
When there is only one property to check, we do not need to iterate over a list.
1 parent 94831e5 commit 4cd6f30

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

buildSrc/build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,7 @@ dependencies {
6868

6969
tasks.withType(Test).configureEach {
7070
onlyIf {
71-
![
72-
'skipTests'
73-
].find {
74-
project.hasProperty(it)
75-
}
71+
!project.hasProperty('skipTests')
7672
}
7773

7874
useJUnitPlatform()

gradle/test-config.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,7 @@ tasks.withType(Test).configureEach {
4242

4343
tasks.named('integrationTest', Test) {
4444
onlyIf {
45-
![
46-
'skipTests'
47-
].find {
48-
project.hasProperty(it)
49-
}
45+
!project.hasProperty('skipTests')
5046
}
5147

5248
systemProperty 'geb.build.reportsDir', reporting.file("$project.projectDir/build/geb-reports")

0 commit comments

Comments
 (0)