publish-maven.gradle 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. publishing {
  2. publications.withType(MavenPublication) {
  3. pom {
  4. name = project.description
  5. description = project.description
  6. artifactId = "spring-asciidoctor-backends"
  7. url = "https://github.com/spring-io/spring-asciidoctor-backends"
  8. organization {
  9. name = "Spring IO"
  10. url = "https://spring.io"
  11. }
  12. licenses {
  13. license {
  14. name = 'The Apache Software License, Version 2.0'
  15. url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
  16. distribution = 'repo'
  17. }
  18. }
  19. scm {
  20. url = "https://github.com/spring-io/spring-asciidoctor-backends"
  21. connection = "scm:git:git://github.com/spring-io/spring-asciidoctor-backends"
  22. developerConnection = "scm:git:git://github.com/spring-io/spring-asciidoctor-backends"
  23. }
  24. developers {
  25. developer {
  26. id = "spring"
  27. name = "Spring Team"
  28. email = "team@spring.io"
  29. }
  30. }
  31. issueManagement {
  32. system = "GitHub"
  33. url = "https://github.com/spring-io/spring-asciidoctor-backends/issues"
  34. }
  35. }
  36. }
  37. if (project.hasProperty("distributionRepository")) {
  38. repositories {
  39. maven {
  40. url = "${distributionRepository}"
  41. name = "distribution"
  42. }
  43. }
  44. }
  45. }