pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.anas.alqurancloudapi</groupId>
  7. <artifactId>alquran-cloud-api</artifactId>
  8. <version>0.4.5</version>
  9. <packaging>jar</packaging>
  10. <name>alquran-cloud-api</name>
  11. <description>A simple java wrapper library for alquran-cloud api</description>
  12. <url>https://github.com/0x61nas/alquran-cloud-api</url>
  13. <distributionManagement>
  14. <repository>
  15. <id>github</id>
  16. <name>GitHub Anas Elgarhy Apache Maven Packages</name>
  17. <url>https://maven.pkg.github.com/${repository-owner}/${repository-name}</url>
  18. </repository>
  19. </distributionManagement>
  20. <licenses>
  21. <license>
  22. <name>GNU General Public License v3.0</name>
  23. <url>https://www.gnu.org/licenses/gpl-3.0.txt</url>
  24. <distribution>repo</distribution>
  25. </license>
  26. </licenses>
  27. <scm>
  28. <url>https://svn.apache.org/viewvc/maven</url>
  29. </scm>
  30. <dependencies>
  31. <dependency>
  32. <groupId>com.fasterxml.jackson.core</groupId>
  33. <artifactId>jackson-databind</artifactId>
  34. <version>2.16.2</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.junit.jupiter</groupId>
  38. <artifactId>junit-jupiter</artifactId>
  39. <version>5.10.0</version>
  40. <scope>test</scope>
  41. </dependency>
  42. </dependencies>
  43. <build>
  44. <pluginManagement>
  45. <plugins>
  46. <plugin>
  47. <groupId>org.apache.maven.plugins</groupId>
  48. <artifactId>maven-source-plugin</artifactId>
  49. <version>3.3.0</version>
  50. <executions>
  51. <execution>
  52. <id>attach-sources</id>
  53. <goals>
  54. <goal>jar</goal>
  55. </goals>
  56. </execution>
  57. </executions>
  58. </plugin>
  59. <plugin>
  60. <groupId>com.github.github</groupId>
  61. <artifactId>site-maven-plugin</artifactId>
  62. <version>0.12</version>
  63. <configuration>
  64. <message>Maven artifacts for ${project.version}</message>
  65. <noJekyll>true</noJekyll>
  66. <outputDirectory>${project.build.directory}</outputDirectory>
  67. <branch>refs/heads/${branch-name}</branch>
  68. <includes>
  69. <include>**/*</include>
  70. </includes>
  71. <merge>true</merge>
  72. <repositoryName>${repository-name}</repositoryName>
  73. <repositoryOwner>${repository-owner}</repositoryOwner>
  74. <server>github</server>
  75. </configuration>
  76. <executions>
  77. <execution>
  78. <goals>
  79. <goal>site</goal>
  80. </goals>
  81. <phase>deploy</phase>
  82. </execution>
  83. </executions>
  84. </plugin>
  85. <plugin>
  86. <artifactId>maven-deploy-plugin</artifactId>
  87. <version>3.1.1</version>
  88. <!-- <configuration>-->
  89. <!-- <altDeploymentRepository>-->
  90. <!-- internal.repo::default::file://${project.build.directory}/mvn-artifact-->
  91. <!-- online.repo::default::https://maven.pkg.github.com/${repository-owner}/${repository-name}-->
  92. <!-- </altDeploymentRepository>-->
  93. <!-- </configuration>-->
  94. </plugin>
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-source-plugin</artifactId>
  98. <version>3.3.0</version>
  99. <executions>
  100. <execution>
  101. <id>attach-sources</id>
  102. <goals>
  103. <goal>jar</goal>
  104. </goals>
  105. </execution>
  106. </executions>
  107. </plugin>
  108. </plugins>
  109. </pluginManagement>
  110. <plugins>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-compiler-plugin</artifactId>
  114. <configuration>
  115. <source>11</source>
  116. <target>11</target>
  117. </configuration>
  118. </plugin>
  119. </plugins>
  120. </build>
  121. <repositories>
  122. <repository>
  123. <id>PROJECT-REPO-URL</id>
  124. <url>https://github.com/${repository-owner}/${repository-name}/${branch-name}</url>
  125. <snapshots>
  126. <enabled>true</enabled>
  127. <updatePolicy>always</updatePolicy>
  128. </snapshots>
  129. </repository>
  130. </repositories>
  131. <properties>
  132. <repository-owner>0x61nas</repository-owner>
  133. <repository-name>alquran-cloud-api</repository-name>
  134. <branch-name>master</branch-name>
  135. <github.global.server>github</github.global.server>
  136. <maven.compiler.source>17</maven.compiler.source>
  137. <maven.compiler.target>17</maven.compiler.target>
  138. </properties>
  139. </project>