1 Star 0 Fork 234

skybob/spring-framework-reference

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
abel533 提交于 2015-01-01 23:21 . 继续简化gradle配置
defaultTasks 'referenceHtmlMulti'
buildscript {
repositories {
maven { url "http://maven.oschina.net/content/groups/public/" }
}
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"
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bobzhang/spring-framework-reference.git
git@gitee.com:bobzhang/spring-framework-reference.git
bobzhang
spring-framework-reference
spring-framework-reference
master

搜索帮助