publish-module.gradle 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. apply plugin: 'maven-publish'
  2. apply plugin: 'signing'
  3. group = ossrhGroupId
  4. version = PUBLISH_VERSION
  5. afterEvaluate {
  6. publishing {
  7. publications {
  8. templateDebug(MavenPublication) {
  9. from components.templateDebug
  10. // The coordinates of the library, being set from variables that
  11. // we'll set up later
  12. groupId ossrhGroupId
  13. artifactId DEBUG_PUBLISH_ARTIFACT_ID
  14. version PUBLISH_VERSION
  15. // Mostly self-explanatory metadata
  16. pom {
  17. name = DEBUG_PUBLISH_ARTIFACT_ID
  18. description = 'Godot Engine Android Library - (Debug) Template Build'
  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. }
  48. // Version control info - if you're using GitHub, follow the
  49. // format as seen here
  50. scm {
  51. connection = 'scm:git:github.com/godotengine/godot.git'
  52. developerConnection = 'scm:git:ssh://github.com/godotengine/godot.git'
  53. url = 'https://github.com/godotengine/godot/tree/master'
  54. }
  55. }
  56. }
  57. templateRelease(MavenPublication) {
  58. from components.templateRelease
  59. // The coordinates of the library, being set from variables that
  60. // we'll set up later
  61. groupId ossrhGroupId
  62. artifactId PUBLISH_ARTIFACT_ID
  63. version PUBLISH_VERSION
  64. // Mostly self-explanatory metadata
  65. pom {
  66. name = PUBLISH_ARTIFACT_ID
  67. description = 'Godot Engine Android Library - Template Build'
  68. url = 'https://godotengine.org/'
  69. licenses {
  70. license {
  71. name = 'MIT License'
  72. url = 'https://github.com/godotengine/godot/blob/master/LICENSE.txt'
  73. }
  74. }
  75. developers {
  76. developer {
  77. id = 'm4gr3d'
  78. name = 'Fredia Huya-Kouadio'
  79. email = '[email protected]'
  80. }
  81. developer {
  82. id = 'reduz'
  83. name = 'Juan Linietsky'
  84. email = '[email protected]'
  85. }
  86. developer {
  87. id = 'akien-mga'
  88. name = 'Rémi Verschelde'
  89. email = '[email protected]'
  90. }
  91. developer {
  92. id = 'godotengine'
  93. name = 'Godot Engine contributors'
  94. email = '[email protected]'
  95. }
  96. }
  97. // Version control info - if you're using GitHub, follow the
  98. // format as seen here
  99. scm {
  100. connection = 'scm:git:github.com/godotengine/godot.git'
  101. developerConnection = 'scm:git:ssh://github.com/godotengine/godot.git'
  102. url = 'https://github.com/godotengine/godot/tree/master'
  103. }
  104. }
  105. }
  106. toolsRelease(MavenPublication) {
  107. from components.editorRelease
  108. // The coordinates of the library, being set from variables that
  109. // we'll set up later
  110. groupId ossrhGroupId
  111. artifactId TOOLS_PUBLISH_ARTIFACT_ID
  112. version PUBLISH_VERSION
  113. // Mostly self-explanatory metadata
  114. pom {
  115. name = TOOLS_PUBLISH_ARTIFACT_ID
  116. description = 'Godot Engine Tools Android Library - Editor Build'
  117. url = 'https://godotengine.org/'
  118. licenses {
  119. license {
  120. name = 'MIT License'
  121. url = 'https://github.com/godotengine/godot/blob/master/LICENSE.txt'
  122. }
  123. }
  124. developers {
  125. developer {
  126. id = 'm4gr3d'
  127. name = 'Fredia Huya-Kouadio'
  128. email = '[email protected]'
  129. }
  130. developer {
  131. id = 'reduz'
  132. name = 'Juan Linietsky'
  133. email = '[email protected]'
  134. }
  135. developer {
  136. id = 'akien-mga'
  137. name = 'Rémi Verschelde'
  138. email = '[email protected]'
  139. }
  140. developer {
  141. id = 'godotengine'
  142. name = 'Godot Engine contributors'
  143. email = '[email protected]'
  144. }
  145. }
  146. // Version control info - if you're using GitHub, follow the
  147. // format as seen here
  148. scm {
  149. connection = 'scm:git:github.com/godotengine/godot.git'
  150. developerConnection = 'scm:git:ssh://github.com/godotengine/godot.git'
  151. url = 'https://github.com/godotengine/godot/tree/master'
  152. }
  153. }
  154. }
  155. }
  156. }
  157. }
  158. signing {
  159. useInMemoryPgpKeys(
  160. rootProject.ext["signing.keyId"],
  161. rootProject.ext["signing.key"],
  162. rootProject.ext["signing.password"],
  163. )
  164. sign publishing.publications
  165. }