开源中国 2018 年度最后一场技术盛会邀你来约~错过就要等明年啦!点此立即预约

abel533 / spring-framework-referenceJava

Metrics
0
Watch 375 Star 777 Fork 229
Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Spring4.x中文参考文档 spread retract

build.gradle 1.33 KB
Copy Edit Web IDE Raw Blame History
defaultTasks 'referenceHtmlMulti'
buildscript {
repositories {
maven { url "https://repo.spring.io/plugins-release" }
}
dependencies {
classpath("org.asciidoctor:asciidoctor-gradle-plugin:0.7.0")
classpath("io.spring.gradle:docbook-reference-plugin:0.3.0")
}
}
description = "Spring Framework"
apply plugin: "asciidoctor"
apply plugin: "docbook-reference"
apply plugin: "groovy"
asciidoctor {
baseDir = project.file('src/asciidoc')
backend = 'docbook5'
options = [
eruby: 'erubis',
attributes: [
doctype: 'book',
'spring-version' : '4.1.3.RELEASE',
revnumber : '4.1.3.RELEASE',
docinfo : ""
]
]
}
reference {
sourceDir = asciidoctor.outputDir
pdfFilename = "spring-framework-reference.pdf"
epubFilename = "spring-framework-reference.epub"
expandPlaceholders = ""
}
afterEvaluate {
tasks.findAll { it.name.startsWith("reference") }.each{ it.dependsOn.add("asciidoctor") }
}
configurations.archives.artifacts.clear()
task docsZip(type: Zip, dependsOn: 'reference') {
group = "Distribution"
baseName = "spring-framework"
classifier = "docs"
description = "Builds -${classifier} archive containing api and reference " +
"for deployment at http://static.springframework.org/spring-framework/docs."
from (reference) {
into "spring-framework-reference"
}
}

Comment ( 0 )

You need to Sign in for post a comment

Help Search