Skip to content

Commit e5d19a2

Browse files
committed
build: jdoc-spock plugin
1 parent 82d83b1 commit e5d19a2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

buildSrc/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ dependencies {
1010
implementation "com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.22"
1111
implementation "com.puppycrawl.tools:checkstyle:10.21.0"
1212
implementation "io.freefair.gradle:lombok-plugin:8.11"
13+
implementation "io.github.boolivar.jdoctest.jdoc-spock:io.github.boolivar.jdoctest.jdoc-spock.gradle.plugin:0.11.0"
1314
implementation "net.sourceforge.pmd:pmd-java:7.8.0"
1415
}

buildSrc/src/main/groovy/java-conventions.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
id "pmd"
55
id "checkstyle"
66
id "com.github.spotbugs"
7+
id "io.github.boolivar.jdoctest.jdoc-spock"
78
}
89

910
java {
@@ -43,6 +44,7 @@ tasks.named("jacocoTestCoverageVerification") {
4344

4445
tasks.named("check") {
4546
dependsOn "jacocoTestCoverageVerification"
47+
dependsOn "jdocSpockTest"
4648
}
4749

4850
tasks.named("jar") {
@@ -80,7 +82,7 @@ configurations {
8082
internalPlatform {
8183
visible = false
8284
}
83-
[compileClasspath, runtimeClasspath, testCompileClasspath, testRuntimeClasspath].each {
85+
[compileClasspath, runtimeClasspath, testCompileClasspath, testRuntimeClasspath, jdocSpockCompileClasspath, jdocSpockRuntimeClasspath].each {
8486
it.extendsFrom internalPlatform
8587
}
8688
testImplementation.extendsFrom compileOnly

0 commit comments

Comments
 (0)