목차

Doclets for Springframework

SpringDoclet

Gradle SpringDoclet

Add Gradle example · Issue #3 · scottfrederick/springdoclet 참조.

configurations {
    springDoclet
}
 
dependencies {
    springDoclet files("libs/springdoclet-0.0.1-jar-with-dependencies.jar")
}
 
task generateRestApiDocs(type: Javadoc) {
    source = sourceSets.main.allJava
    destinationDir = file("${buildDir}/docs/springdoc")
 
    classpath = configurations.runtime
    options.docletpath = configurations.springDoclet.files.asType(List)
    options.doclet = "org.springdoclet.SpringDoclet"
    // options.docTitle = "${project.name} Spring Doc"  // 안됨. 패치 고려
}

Rest Doclet

WsDoc