publish-module.gradle 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. apply plugin: 'maven-publish'
  2. apply plugin: 'signing'
  3. group = ossrhGroupId
  4. version = PUBLISH_VERSION
  5. afterEvaluate {
  6. publishing {
  7. publications {
  8. release(MavenPublication) {
  9. // The coordinates of the library, being set from variables that
  10. // we'll set up later
  11. groupId ossrhGroupId
  12. artifactId PUBLISH_ARTIFACT_ID
  13. version PUBLISH_VERSION
  14. // Two artifacts, the `aar` (or `jar`) and the sources
  15. if (project.plugins.findPlugin("com.android.library")) {
  16. from components.release
  17. } else {
  18. from components.java
  19. }
  20. // Mostly self-explanatory metadata
  21. pom {
  22. name = PUBLISH_ARTIFACT_ID
  23. description = 'Godot Engine Android Library'
  24. url = 'https://godotengine.org/'
  25. licenses {
  26. license {
  27. name = 'MIT License'
  28. url = 'https://github.com/godotengine/godot/blob/master/LICENSE.txt'
  29. }
  30. }
  31. developers {
  32. developer {
  33. id = 'm4gr3d'
  34. name = 'Fredia Huya-Kouadio'
  35. email = 'fhuyakou@gmail.com'
  36. }
  37. developer {
  38. id = 'reduz'
  39. name = 'Juan Linietsky'
  40. email = 'reduzio@gmail.com'
  41. }
  42. developer {
  43. id = 'akien-mga'
  44. name = 'Rémi Verschelde'
  45. email = 'rverschelde@gmail.com'
  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. }