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) }