pom.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. <dependency>
  67. <groupId>org.springframework.security</groupId>
  68. <artifactId>spring-security-web</artifactId>
  69. <version>6.1.5</version>
  70. </dependency>
  71. </dependencies>
  72. <build>
  73. <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
  74. <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
  75. <plugins>
  76. <plugin>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-maven-plugin</artifactId>
  79. <configuration>
  80. <excludes>
  81. <exclude>
  82. <groupId>org.projectlombok</groupId>
  83. <artifactId>lombok</artifactId>
  84. </exclude>
  85. </excludes>
  86. </configuration>
  87. </plugin>
  88. <plugin>
  89. <groupId>org.jetbrains.kotlin</groupId>
  90. <artifactId>kotlin-maven-plugin</artifactId>
  91. <configuration>
  92. <args>
  93. <arg>-Xjsr305=strict</arg>
  94. </args>
  95. <compilerPlugins>
  96. <plugin>spring</plugin>
  97. <plugin>jpa</plugin>
  98. </compilerPlugins>
  99. </configuration>
  100. <dependencies>
  101. <dependency>
  102. <groupId>org.jetbrains.kotlin</groupId>
  103. <artifactId>kotlin-maven-allopen</artifactId>
  104. <version>${kotlin.version}</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.jetbrains.kotlin</groupId>
  108. <artifactId>kotlin-maven-noarg</artifactId>
  109. <version>${kotlin.version}</version>
  110. </dependency>
  111. </dependencies>
  112. </plugin>
  113. </plugins>
  114. </build>
  115. </project>