Files
spring-restdocs/samples/web-test-client/build.gradle
2022-01-12 12:36:42 +00:00

56 lines
1.1 KiB
Groovy

plugins {
id "org.asciidoctor.jvm.convert" version "3.3.2"
}
apply plugin: 'java'
apply plugin: 'eclipse'
repositories {
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
mavenCentral()
mavenLocal()
}
group = 'com.example'
sourceCompatibility = 17
targetCompatibility = 17
ext {
restdocsVersion = '3.0.0-SNAPSHOT'
snippetsDir = file('build/generated-snippets')
}
configurations {
asciidoctorExtensions
}
dependencies {
asciidoctorExtensions "org.springframework.restdocs:spring-restdocs-asciidoctor:$restdocsVersion"
implementation 'org.springframework:spring-context:6.0.0-M1'
implementation 'org.springframework:spring-webflux:6.0.0-M1'
testImplementation 'junit:junit:4.13.1'
testImplementation 'org.springframework:spring-test:6.0.0-M1'
testImplementation "org.springframework.restdocs:spring-restdocs-webtestclient:$restdocsVersion"
}
test {
outputs.dir snippetsDir
}
asciidoctor {
configurations "asciidoctorExtensions"
inputs.dir snippetsDir
dependsOn test
}
jar {
dependsOn asciidoctor
from ("${asciidoctor.outputDir}/html5") {
into 'static/docs'
}
}