publish-module.gradle 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. developer {
  43. id = 'godotengine'
  44. name = 'Godot Engine contributors'
  45. email = '[email protected]'
  46. }
  47. // Add all other devs here...
  48. }
  49. // Version control info - if you're using GitHub, follow the
  50. // format as seen here
  51. scm {
  52. connection = 'scm:git:github.com/godotengine/godot.git'
  53. developerConnection = 'scm:git:ssh://github.com/godotengine/godot.git'
  54. url = 'https://github.com/godotengine/godot/tree/master'
  55. }
  56. }
  57. }
  58. }
  59. }
  60. }
  61. signing {
  62. useInMemoryPgpKeys(
  63. rootProject.ext["signing.keyId"],
  64. rootProject.ext["signing.key"],
  65. rootProject.ext["signing.password"],
  66. )
  67. sign publishing.publications
  68. }