pom.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>3.1.5</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.swagger</groupId>
  12. <artifactId>rest</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>rest</name>
  15. <description>REST API</description>
  16. <properties>
  17. <java.version>17</java.version>
  18. <kotlin.version>1.8.22</kotlin.version>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-data-jpa</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-web</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>com.fasterxml.jackson.module</groupId>
  31. <artifactId>jackson-module-kotlin</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.jetbrains.kotlin</groupId>
  35. <artifactId>kotlin-reflect</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.jetbrains.kotlin</groupId>
  39. <artifactId>kotlin-stdlib</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.mysql</groupId>
  43. <artifactId>mysql-connector-j</artifactId>
  44. <scope>runtime</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.projectlombok</groupId>
  48. <artifactId>lombok</artifactId>
  49. <optional>true</optional>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-test</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>jakarta.validation</groupId>
  58. <artifactId>jakarta.validation-api</artifactId>
  59. <version>3.0.2</version>
  60. </dependency>
  61. <!-- <dependency>-->
  62. <!-- <groupId>org.springframework.security</groupId>-->
  63. <!-- <artifactId>spring-security-config</artifactId>-->
  64. <!-- <version>6.1.5</version>-->
  65. <!-- </dependency>-->
  66. </dependencies>
  67. <build>
  68. <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
  69. <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
  70. <plugins>
  71. <plugin>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-maven-plugin</artifactId>
  74. <configuration>
  75. <excludes>
  76. <exclude>
  77. <groupId>org.projectlombok</groupId>
  78. <artifactId>lombok</artifactId>
  79. </exclude>
  80. </excludes>
  81. </configuration>
  82. </plugin>
  83. <plugin>
  84. <groupId>org.jetbrains.kotlin</groupId>
  85. <artifactId>kotlin-maven-plugin</artifactId>
  86. <configuration>
  87. <args>
  88. <arg>-Xjsr305=strict</arg>
  89. </args>
  90. <compilerPlugins>
  91. <plugin>spring</plugin>
  92. <plugin>jpa</plugin>
  93. </compilerPlugins>
  94. </configuration>
  95. <dependencies>
  96. <dependency>
  97. <groupId>org.jetbrains.kotlin</groupId>
  98. <artifactId>kotlin-maven-allopen</artifactId>
  99. <version>${kotlin.version}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.jetbrains.kotlin</groupId>
  103. <artifactId>kotlin-maven-noarg</artifactId>
  104. <version>${kotlin.version}</version>
  105. </dependency>
  106. </dependencies>
  107. </plugin>
  108. </plugins>
  109. </build>
  110. </project>