Skip to content

Commit 158ea92

Browse files
committed
Add PITest plugin
Resolves #616
1 parent 7af0d5a commit 158ea92

File tree

21 files changed

+152
-0
lines changed

21 files changed

+152
-0
lines changed

auth/basic/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'java-library'
22
apply plugin: 'biz.aQute.bnd.builder'
3+
apply plugin: 'info.solidsoft.pitest'
34

45
description = 'Trellis Basic Auth'
56

@@ -25,3 +26,9 @@ dependencies {
2526
testImplementation "org.mockito:mockito-core:$mockitoVersion"
2627
}
2728

29+
pitest {
30+
testPlugin = 'junit5'
31+
pitestVersion = pitestToolVersion
32+
threads = 4
33+
}
34+

auth/jwt/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'java-library'
22
apply plugin: 'biz.aQute.bnd.builder'
3+
apply plugin: 'info.solidsoft.pitest'
34

45
description = 'Trellis Microprofile JWT-Auth'
56

@@ -33,6 +34,12 @@ dependencies {
3334
testRuntimeOnly "ch.qos.logback:logback-classic:$logbackVersion"
3435
}
3536

37+
pitest {
38+
testPlugin = 'junit5'
39+
pitestVersion = pitestToolVersion
40+
threads = 4
41+
}
42+
3643
if (project.sourceCompatibility.isJava11Compatible()) {
3744
test {
3845
inputs.property("moduleName", moduleName)

auth/oauth/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'java-library'
22
apply plugin: 'biz.aQute.bnd.builder'
3+
apply plugin: 'info.solidsoft.pitest'
34

45
description = 'Trellis OAuth'
56

@@ -29,3 +30,10 @@ dependencies {
2930
testImplementation "org.glassfish.jersey.core:jersey-server:$jerseyVersion"
3031
testImplementation "org.mockito:mockito-core:$mockitoVersion"
3132
}
33+
34+
pitest {
35+
testPlugin = 'junit5'
36+
pitestVersion = pitestToolVersion
37+
threads = 4
38+
}
39+

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
}
5+
configurations.maybeCreate('pitest')
6+
dependencies {
7+
classpath "info.solidsoft.gradle.pitest:gradle-pitest-plugin:$pitestVersion"
8+
pitest "org.pitest:pitest-junit5-plugin:$pitestJunit5Version"
9+
}
10+
}
11+
112
plugins {
213
id 'com.github.ben-manes.versions' version "$versionsVersion"
314
id 'com.github.hierynomus.license' version "$licenseVersion"

components/app/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'java-library'
22
apply plugin: 'biz.aQute.bnd.builder'
3+
apply plugin: 'info.solidsoft.pitest'
34

45
description = 'Trellis Application'
56

@@ -34,6 +35,12 @@ dependencies {
3435
testImplementation project(':trellis-audit')
3536
}
3637

38+
pitest {
39+
testPlugin = 'junit5'
40+
pitestVersion = pitestToolVersion
41+
threads = 4
42+
}
43+
3744
if (project.sourceCompatibility.isJava11Compatible()) {
3845
test {
3946
inputs.property("moduleName", moduleName)

components/audit/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'java-library'
22
apply plugin: 'biz.aQute.bnd.builder'
3+
apply plugin: 'info.solidsoft.pitest'
34

45
description = 'Trellis Audit'
56

@@ -16,3 +17,10 @@ dependencies {
1617
testImplementation "org.mockito:mockito-core:$mockitoVersion"
1718
testImplementation "org.apache.commons:commons-rdf-simple:$commonsRdfVersion"
1819
}
20+
21+
pitest {
22+
testPlugin = 'junit5'
23+
pitestVersion = pitestToolVersion
24+
threads = 4
25+
}
26+

components/cache/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'java-library'
22
apply plugin: 'biz.aQute.bnd.builder'
3+
apply plugin: 'info.solidsoft.pitest'
34

45
description = "Trellis Cache Implementation"
56

@@ -14,3 +15,9 @@ dependencies {
1415
testImplementation "org.mockito:mockito-core:$mockitoVersion"
1516
}
1617

18+
pitest {
19+
testPlugin = 'junit5'
20+
pitestVersion = pitestToolVersion
21+
threads = 4
22+
}
23+

components/cdi/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'java-library'
22
apply plugin: 'biz.aQute.bnd.builder'
3+
apply plugin: 'info.solidsoft.pitest'
34

45
description = 'Trellis CDI component'
56

@@ -26,6 +27,12 @@ dependencies {
2627
testImplementation project(':trellis-constraint-rules')
2728
}
2829

30+
pitest {
31+
testPlugin = 'junit5'
32+
pitestVersion = pitestToolVersion
33+
threads = 4
34+
}
35+
2936
if (project.sourceCompatibility.isJava11Compatible()) {
3037
test {
3138
inputs.property("moduleName", moduleName)

components/constraint-rules/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'java-library'
22
apply plugin: 'biz.aQute.bnd.builder'
3+
apply plugin: 'info.solidsoft.pitest'
34

45
description = 'Trellis Constraint Rules'
56

@@ -21,3 +22,10 @@ dependencies {
2122
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
2223
testImplementation "org.mockito:mockito-core:$mockitoVersion"
2324
}
25+
26+
pitest {
27+
testPlugin = 'junit5'
28+
pitestVersion = pitestToolVersion
29+
threads = 4
30+
}
31+

components/file/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'java-library'
22
apply plugin: 'biz.aQute.bnd.builder'
3+
apply plugin: 'info.solidsoft.pitest'
34

45
description = 'Trellis File'
56

@@ -29,3 +30,9 @@ dependencies {
2930
testImplementation "io.smallrye:smallrye-config:$smallryeConfigVersion"
3031
}
3132

33+
pitest {
34+
testPlugin = 'junit5'
35+
pitestVersion = pitestToolVersion
36+
threads = 4
37+
}
38+

0 commit comments

Comments
 (0)