mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-05-02 20:09:31 +01:00
7cfae94d70
This commit ensures that Gradle publications are using resolved dependency versions for Maven publications (i.e. POMs). This is useful since we're using the Spring dependency management plugin and we can't rely on declared dependency versions only. See gh-23282
53 lines
1.3 KiB
Groovy
53 lines
1.3 KiB
Groovy
apply plugin: "maven-publish"
|
|
apply plugin: 'com.jfrog.artifactory'
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
pom {
|
|
name = project.description
|
|
description = project.description
|
|
url = "https://github.com/spring-projects/spring-framework"
|
|
organization {
|
|
name = "Spring IO"
|
|
url = "https://spring.io/projects/spring-framework"
|
|
}
|
|
licenses {
|
|
license {
|
|
name = "Apache License, Version 2.0"
|
|
url = "https://www.apache.org/licenses/LICENSE-2.0"
|
|
distribution = "repo"
|
|
}
|
|
}
|
|
scm {
|
|
url = "https://github.com/spring-projects/spring-framework"
|
|
connection = "scm:git:git://github.com/spring-projects/spring-framework"
|
|
developerConnection = "scm:git:git://github.com/spring-projects/spring-framework"
|
|
}
|
|
developers {
|
|
developer {
|
|
id = "jhoeller"
|
|
name = "Juergen Hoeller"
|
|
email = "jhoeller@pivotal.io"
|
|
}
|
|
}
|
|
issueManagement {
|
|
system = "GitHub"
|
|
url = "https://github.com/spring-projects/spring-framework/issues"
|
|
}
|
|
}
|
|
versionMapping {
|
|
usage('java-api') {
|
|
fromResolutionResult()
|
|
}
|
|
usage('java-runtime') {
|
|
fromResolutionResult()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
artifactoryPublish {
|
|
publications(publishing.publications.mavenJava)
|
|
} |