码云 Gitee IDE 全新上线——支持 Git 管理的轻量在线编码环境
2 Watch 372 Star 777 Fork 226

abel533 / spring-framework-referenceJava

加入码云
与超过 300 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
Spring4.x中文参考文档
一键复制 编辑 Web IDE 原始数据 按行查看 历史
build.gradle 1.33 KB
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"
}
}

评论 ( 0 )

你可以在登录后,发表评论

搜索帮助