publish-module.gradle 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. apply plugin: 'maven-publish'
  2. apply plugin: 'signing'
  3. group = ossrhGroupId
  4. version = PUBLISH_VERSION
  5. afterEvaluate {
  6. publishing {
  7. publications {
  8. templateRelease(MavenPublication) {
  9. from components.templateRelease
  10. // The coordinates of the library, being set from variables that
  11. // we'll set up later
  12. groupId ossrhGroupId
  13. artifactId PUBLISH_ARTIFACT_ID
  14. version PUBLISH_VERSION
  15. // Mostly self-explanatory metadata
  16. pom {
  17. name = PUBLISH_ARTIFACT_ID
  18. description = 'Godot Engine Android Library'
  19. url = 'https://godotengine.org/'
  20. licenses {
  21. license {
  22. name = 'MIT License'
  23. url = 'https://github.com/godotengine/godot/blob/master/LICENSE.txt'
  24. }
  25. }
  26. developers {
  27. developer {
  28. id = 'm4gr3d'
  29. name = 'Fredia Huya-Kouadio'
  30. email = '[email protected]'
  31. }
  32. developer {
  33. id = 'reduz'
  34. name = 'Juan Linietsky'
  35. email = '[email protected]'
  36. }
  37. developer {
  38. id = 'akien-mga'
  39. name = 'Rémi Verschelde'
  40. email = '[email protected]'
  41. }
  42. // Add all other devs here...
  43. }
  44. // Version control info - if you're using GitHub, follow the
  45. // format as seen here
  46. scm {
  47. connection = 'scm:git:github.com/godotengine/godot.git'
  48. developerConnection = 'scm:git:ssh://github.com/godotengine/godot.git'
  49. url = 'https://github.com/godotengine/godot/tree/master'
  50. }
  51. }
  52. }
  53. }
  54. }
  55. }
  56. signing {
  57. useInMemoryPgpKeys(
  58. rootProject.ext["signing.keyId"],
  59. rootProject.ext["signing.key"],
  60. rootProject.ext["signing.password"],
  61. )
  62. sign publishing.publications
  63. }