Fixes https://github.com/spring-projects/spring-integration-aws/issues/157 It turns out that `implementation` provides a `runtime` dependency in Maven's POM, which is not what we would expect to behave as an `optional` * Apply Gradle variants for those dependencies which should be as `optional` in the generate POM * Some Gradle build config refactoring
61 lines
1.8 KiB
Groovy
61 lines
1.8 KiB
Groovy
apply plugin: 'maven-publish'
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
suppressAllPomMetadataWarnings()
|
|
from components.java
|
|
artifact docsZip
|
|
artifact schemaZip
|
|
artifact distZip
|
|
pom {
|
|
afterEvaluate {
|
|
name = project.description
|
|
description = project.description
|
|
}
|
|
url = linkScmUrl
|
|
organization {
|
|
name = 'Spring IO'
|
|
url = 'https://spring.io/projects/spring-integration'
|
|
}
|
|
licenses {
|
|
license {
|
|
name = 'Apache License, Version 2.0'
|
|
url = 'https://www.apache.org/licenses/LICENSE-2.0'
|
|
distribution = 'repo'
|
|
}
|
|
}
|
|
scm {
|
|
url = linkScmUrl
|
|
connection = linkScmConnection
|
|
developerConnection = linkScmDevConnection
|
|
}
|
|
developers {
|
|
developer {
|
|
id = 'artembilan'
|
|
name = 'Artem Bilan'
|
|
email = 'abilan@pivotal.io'
|
|
roles = ['project lead']
|
|
}
|
|
}
|
|
issueManagement {
|
|
system = 'GitHub'
|
|
url = linkIssue
|
|
}
|
|
}
|
|
versionMapping {
|
|
usage('java-api') {
|
|
fromResolutionResult()
|
|
}
|
|
usage('java-runtime') {
|
|
fromResolutionResult()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
artifactoryPublish {
|
|
publications(publishing.publications.mavenJava)
|
|
}
|