Rename ‘docs’ subproject to be more descriptive

This commit is contained in:
Roy Clarkson
2018-06-21 20:22:54 -04:00
parent fb2e6cb11e
commit 3e0acf5cdd
21 changed files with 49 additions and 31 deletions

View File

@@ -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'
}
}

View File

@@ -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': ''
}

View File

@@ -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

View 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': ''
}