Publish docs zip to Maven

It seems I broke this while updating the Gradle build.
This commit is contained in:
Gareth Clay
2020-11-30 17:54:34 +00:00
parent d9257c3b4d
commit cc0551c164
2 changed files with 14 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
import java.util.concurrent.ConcurrentHashMap
/*
* Copyright 2002-2020 the original author or authors.
*
@@ -237,7 +238,7 @@ configure(publishedProjects) {
publications {
mavenJava(MavenPublication) {
suppressAllPomMetadataWarnings()
from components.java
from components.findByName('java')
pom {
afterEvaluate {
name = project.description
@@ -356,6 +357,16 @@ distributions {
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact docsDistZip {
classifier 'docs'
}
}
}
}
task codeCoverageReport(type: JacocoReport) {
dependsOn staticAnalysisProjects*.test
@@ -413,5 +424,5 @@ def getLibraryProjects() {
}
def getPublishedProjects() {
libraryProjects + starterProjects
libraryProjects + starterProjects + rootProject
}

View File

@@ -45,7 +45,7 @@ jobs:
disable_checksum_uploads: true
artifact_set:
- include:
- "/**/spring-cloud-app-broker-docs-*.zip"
- "/**/spring-cloud-app-broker-*-docs.zip"
properties:
"zip.type": "docs"
"zip.deployed": "false"