pom.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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.yujin</groupId>
  7. <artifactId>yujin-thumbnailator</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <maven.compiler.source>17</maven.compiler.source>
  11. <maven.compiler.target>17</maven.compiler.target>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <kotlin.version>1.9.23</kotlin.version>
  14. </properties>
  15. <parent>
  16. <groupId>org.noear</groupId>
  17. <artifactId>solon-parent</artifactId>
  18. <version>3.2.0</version>
  19. </parent>
  20. <dependencies>
  21. <!-- Solon Boot Web -->
  22. <dependency>
  23. <groupId>org.noear</groupId>
  24. <artifactId>solon-web</artifactId>
  25. </dependency>
  26. <!-- Solon Boot Jackson -->
  27. <dependency>
  28. <groupId>org.noear</groupId>
  29. <artifactId>solon-logging-logback</artifactId>
  30. </dependency>
  31. <!-- YAML Configuration Support -->
  32. <dependency>
  33. <groupId>org.yaml</groupId>
  34. <artifactId>snakeyaml</artifactId>
  35. </dependency>
  36. <!-- Thumbnailator -->
  37. <dependency>
  38. <groupId>net.coobird</groupId>
  39. <artifactId>thumbnailator</artifactId>
  40. <version>0.4.20</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.noear</groupId>
  44. <artifactId>solon-net-httputils</artifactId>
  45. </dependency>
  46. <!-- Kotlin Standard Library -->
  47. <dependency>
  48. <groupId>org.jetbrains.kotlin</groupId>
  49. <artifactId>kotlin-stdlib</artifactId>
  50. <version>${kotlin.version}</version>
  51. </dependency>
  52. <!-- Test Dependencies -->
  53. <dependency>
  54. <groupId>org.junit.jupiter</groupId>
  55. <artifactId>junit-jupiter</artifactId>
  56. <version>5.10.0</version>
  57. <scope>test</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.noear</groupId>
  61. <artifactId>solon-test</artifactId>
  62. <version>${solon.version}</version>
  63. <scope>test</scope>
  64. </dependency>
  65. </dependencies>
  66. <build>
  67. <sourceDirectory>src/main/kotlin</sourceDirectory>
  68. <testSourceDirectory>src/test/kotlin</testSourceDirectory>
  69. <plugins>
  70. <!-- Kotlin Compiler Plugin -->
  71. <plugin>
  72. <groupId>org.jetbrains.kotlin</groupId>
  73. <artifactId>kotlin-maven-plugin</artifactId>
  74. <version>${kotlin.version}</version>
  75. <executions>
  76. <execution>
  77. <id>compile</id>
  78. <phase>compile</phase>
  79. <goals>
  80. <goal>compile</goal>
  81. </goals>
  82. </execution>
  83. <execution>
  84. <id>test-compile</id>
  85. <phase>test-compile</phase>
  86. <goals>
  87. <goal>test-compile</goal>
  88. </goals>
  89. </execution>
  90. </executions>
  91. <configuration>
  92. <jvmTarget>17</jvmTarget>
  93. </configuration>
  94. </plugin>
  95. <!-- 配置打包插件(并打包成胖包) -->
  96. <plugin>
  97. <groupId>org.noear</groupId>
  98. <artifactId>solon-maven-plugin</artifactId>
  99. <configuration>
  100. <!-- 指定启动主类 -->
  101. <mainClass>com.yujin.thumbnail.ThumbnailApplication</mainClass>
  102. </configuration>
  103. </plugin>
  104. <!-- Maven Compiler Plugin -->
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-compiler-plugin</artifactId>
  108. <version>3.11.0</version>
  109. <configuration>
  110. <source>17</source>
  111. <target>17</target>
  112. </configuration>
  113. </plugin>
  114. </plugins>
  115. </build>
  116. </project>