Rename ‘docs’ subproject to be more descriptive
This commit is contained in:
@@ -194,7 +194,7 @@ configure(rootProject) {
|
||||
destinationDir = new File(buildDir, "apidocs")
|
||||
}
|
||||
|
||||
task docsZip(type: Zip, dependsOn: [':docs:asciidoctor']) {
|
||||
task docsZip(type: Zip, dependsOn: [':spring-cloud-open-service-broker-docs:asciidoctor']) {
|
||||
group = "Distribution"
|
||||
classifier = "docs"
|
||||
description = "Builds -${classifier} archive containing api and reference " +
|
||||
@@ -203,8 +203,8 @@ configure(rootProject) {
|
||||
from(apidocs) {
|
||||
into "apidocs"
|
||||
}
|
||||
println project.tasks.findByPath(':docs:asciidoctor')
|
||||
from(project.tasks.findByPath(':docs:asciidoctor')) {
|
||||
println project.tasks.findByPath(':spring-cloud-open-service-broker-docs:asciidoctor')
|
||||
from(project.tasks.findByPath(':spring-cloud-open-service-broker-docs:asciidoctor')) {
|
||||
into 'reference'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
plugins {
|
||||
id 'org.asciidoctor.convert'
|
||||
}
|
||||
|
||||
dependencyManagement {
|
||||
imports {
|
||||
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'org.asciidoctor.convert'
|
||||
|
||||
dependencies {
|
||||
compile project(":spring-cloud-open-service-broker-core")
|
||||
compile("org.springframework.boot:spring-boot-starter")
|
||||
compile("org.springframework.boot:spring-boot-starter-security")
|
||||
compile("org.springframework.boot:spring-boot-starter-tomcat")
|
||||
}
|
||||
|
||||
asciidoctor {
|
||||
|
||||
attributes 'revnumber': project.version,
|
||||
'branch-or-tag': project.version.endsWith('SNAPSHOT') ? 'master' : "v${project.version}",
|
||||
'nofooter': true,
|
||||
'allow-uri-read': ''
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
rootProject.name = "spring-cloud-open-service-broker"
|
||||
|
||||
include ":spring-cloud-open-service-broker-docs"
|
||||
include ":spring-cloud-open-service-broker-core"
|
||||
include ":spring-cloud-open-service-broker-autoconfigure"
|
||||
include ":spring-cloud-starter-open-service-broker-webmvc"
|
||||
include ":docs"
|
||||
|
||||
project(":spring-cloud-open-service-broker-docs").projectDir = "$rootDir/spring-cloud-open-service-broker-docs" as File
|
||||
project(":spring-cloud-open-service-broker-core").projectDir = "$rootDir/spring-cloud-open-service-broker-core" as File
|
||||
project(":spring-cloud-open-service-broker-autoconfigure").projectDir = "$rootDir/spring-cloud-open-service-broker-autoconfigure" as File
|
||||
project(":spring-cloud-starter-open-service-broker-webmvc").projectDir = "$rootDir/spring-cloud-starter-open-service-broker-webmvc" as File
|
||||
project(":docs").projectDir = "$rootDir/docs" as File
|
||||
|
||||
44
spring-cloud-open-service-broker-docs/build.gradle
Normal file
44
spring-cloud-open-service-broker-docs/build.gradle
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2016-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
plugins {
|
||||
id 'org.asciidoctor.convert'
|
||||
}
|
||||
|
||||
description = "Spring Cloud Open Service Broker Documentation"
|
||||
|
||||
dependencyManagement {
|
||||
imports {
|
||||
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'org.asciidoctor.convert'
|
||||
|
||||
dependencies {
|
||||
compile project(":spring-cloud-open-service-broker-core")
|
||||
compile("org.springframework.boot:spring-boot-starter")
|
||||
compile("org.springframework.boot:spring-boot-starter-security")
|
||||
compile("org.springframework.boot:spring-boot-starter-tomcat")
|
||||
}
|
||||
|
||||
asciidoctor {
|
||||
|
||||
attributes 'revnumber': project.version,
|
||||
'branch-or-tag': project.version.endsWith('SNAPSHOT') ? 'master' : "v${project.version}",
|
||||
'nofooter': true,
|
||||
'allow-uri-read': ''
|
||||
}
|
||||
Reference in New Issue
Block a user