63 lines
1.6 KiB
Groovy
63 lines
1.6 KiB
Groovy
plugins.withType(MavenPublishPlugin) {
|
|
publishing {
|
|
if (project.hasProperty("deploymentRepository")) {
|
|
repositories {
|
|
maven {
|
|
url = project.property("deploymentRepository")
|
|
name = "deployment"
|
|
}
|
|
}
|
|
}
|
|
publications {
|
|
maven(MavenPublication) { publication ->
|
|
project.plugins.withType(JavaPlugin) {
|
|
from components.java
|
|
versionMapping {
|
|
usage("java-api") {
|
|
fromResolutionResult()
|
|
}
|
|
usage("java-runtime") {
|
|
fromResolutionResult()
|
|
}
|
|
}
|
|
}
|
|
project.plugins.withType(JavaPlatformPlugin) {
|
|
from components.javaPlatform
|
|
}
|
|
pom {
|
|
name = project.provider { project.description }
|
|
description = project.provider { project.description }
|
|
url = "https://github.com/spring-projects/spring-restdocs"
|
|
organization {
|
|
name = "Spring IO"
|
|
url = "https://projects.spring.io/spring-restdocs"
|
|
}
|
|
licenses {
|
|
license {
|
|
name = "The Apache Software License, Version 2.0"
|
|
url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
|
|
distribution = "repo"
|
|
}
|
|
}
|
|
scm {
|
|
url = "https://github.com/spring-projects/spring-restdocs"
|
|
connection = "scm:git:git://github.com/spring-projects/spring-restdocs"
|
|
developerConnection = "scm:git:git://github.com/spring-projects/spring-restdocs"
|
|
}
|
|
developers {
|
|
developer {
|
|
id = "awilkinson"
|
|
name = "Andy Wilkinson"
|
|
email = "awilkinson@pivotal.io"
|
|
}
|
|
}
|
|
issueManagement {
|
|
system = "GitHub"
|
|
url = "https://github.com/spring-projects/spring-restdocs/issues"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|