shchuko

Untitled

Nov 2nd, 2021 (edited)
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 12.61 KB | None | 0 0
  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.  
  6.     <parent>
  7.         <groupId>org.springframework.boot</groupId>
  8.         <artifactId>spring-boot-starter-parent</artifactId>
  9.         <version>2.5.3</version>
  10.         <relativePath/> <!-- lookup parent from repository -->
  11.     </parent>
  12.  
  13.     <groupId>com.itmo.microservices</groupId>
  14.     <artifactId>p81</artifactId>
  15.     <version>0.1.1-SNAPSHOT</version>
  16.     <name>p81</name>
  17.     <description>Demo project for microservices course 21-22</description>
  18.  
  19.     <properties>
  20.         <java.version>11</java.version>
  21.         <kotlin.version>1.5.21</kotlin.version>
  22.         <guava.version>30.1.1-jre</guava.version>
  23.         <jjwt.version>0.9.1</jjwt.version>
  24.         <common-lib.version>0.6.0-SNAPSHOT</common-lib.version>
  25.  
  26.         <buildnumber-maven-plugin.version>1.4</buildnumber-maven-plugin.version>
  27.         <jib-maven-plugin.version>2.8.0</jib-maven-plugin.version>
  28.     </properties>
  29.  
  30.     <dependencies>
  31.         <dependency>
  32.             <groupId>com.itmo.microservices</groupId>
  33.             <artifactId>common-lib</artifactId>
  34.             <version>${common-lib.version}</version>
  35.         </dependency>
  36.  
  37.         <dependency>
  38.             <groupId>org.hibernate</groupId>
  39.             <artifactId>hibernate-validator</artifactId>
  40.             <version>7.0.1.Final</version>
  41.         </dependency>
  42.  
  43.         <dependency>
  44.             <groupId>org.jetbrains.kotlin</groupId>
  45.             <artifactId>kotlin-stdlib-jdk8</artifactId>
  46.         </dependency>
  47.         <dependency>
  48.             <groupId>org.jetbrains.kotlin</groupId>
  49.             <artifactId>kotlin-reflect</artifactId>
  50.         </dependency>
  51.  
  52.         <dependency>
  53.             <groupId>org.springframework.boot</groupId>
  54.             <artifactId>spring-boot-starter-web</artifactId>
  55.         </dependency>
  56.         <dependency>
  57.             <groupId>org.springframework.boot</groupId>
  58.             <artifactId>spring-boot-starter-security</artifactId>
  59.         </dependency>
  60.         <dependency>
  61.             <groupId>org.springframework.boot</groupId>
  62.             <artifactId>spring-boot-starter-data-jpa</artifactId>
  63.         </dependency>
  64.         <dependency>
  65.             <groupId>org.springframework.boot</groupId>
  66.             <artifactId>spring-boot-starter-actuator</artifactId>
  67.         </dependency>
  68.         <dependency>
  69.             <groupId>org.springframework.boot</groupId>
  70.             <artifactId>spring-boot-configuration-processor</artifactId>
  71.             <scope>compile</scope>
  72.             <optional>true</optional>
  73.         </dependency>
  74.  
  75.         <dependency>
  76.             <groupId>org.springdoc</groupId>
  77.             <artifactId>springdoc-openapi-ui</artifactId>
  78.             <version>1.5.2</version>
  79.         </dependency>
  80.         <dependency>
  81.             <groupId>io.swagger</groupId>
  82.             <artifactId>swagger-annotations</artifactId>
  83.             <version>1.6.2</version>
  84.         </dependency>
  85.  
  86.         <dependency>
  87.             <groupId>com.h2database</groupId>
  88.             <artifactId>h2</artifactId>
  89.             <scope>runtime</scope>
  90.         </dependency>
  91.         <dependency>
  92.             <groupId>org.postgresql</groupId>
  93.             <artifactId>postgresql</artifactId>
  94.             <scope>runtime</scope>
  95.         </dependency>
  96.  
  97.         <dependency>
  98.             <groupId>io.jsonwebtoken</groupId>
  99.             <artifactId>jjwt</artifactId>
  100.             <version>${jjwt.version}</version>
  101.         </dependency>
  102.  
  103.         <dependency>
  104.             <groupId>com.fasterxml.jackson.module</groupId>
  105.             <artifactId>jackson-module-kotlin</artifactId>
  106.         </dependency>
  107.  
  108.         <dependency>
  109.             <groupId>com.google.guava</groupId>
  110.             <artifactId>guava</artifactId>
  111.             <version>${guava.version}</version>
  112.         </dependency>
  113.  
  114.         <dependency>
  115.             <groupId>net.logstash.logback</groupId>
  116.             <artifactId>logstash-logback-encoder</artifactId>
  117.             <version>6.6</version>
  118.         </dependency>
  119.  
  120.         <dependency>
  121.             <groupId>io.micrometer</groupId>
  122.             <artifactId>micrometer-registry-prometheus</artifactId>
  123.         </dependency>
  124.  
  125.         <dependency>
  126.             <groupId>org.projectlombok</groupId>
  127.             <artifactId>lombok</artifactId>
  128.         </dependency>
  129.  
  130.         <dependency>
  131.             <groupId>org.liquibase</groupId>
  132.             <artifactId>liquibase-core</artifactId>
  133.         </dependency>
  134.  
  135.         <dependency>
  136.             <groupId>org.springframework.boot</groupId>
  137.             <artifactId>spring-boot-starter-test</artifactId>
  138.             <scope>test</scope>
  139.         </dependency>
  140.  
  141.         <dependency>
  142.             <groupId>org.springframework.security</groupId>
  143.             <artifactId>spring-security-test</artifactId>
  144.             <scope>test</scope>
  145.         </dependency>
  146.  
  147.         <dependency>
  148.             <groupId>org.junit.vintage</groupId>
  149.             <artifactId>junit-vintage-engine</artifactId>
  150.             <scope>test</scope>
  151.         </dependency>
  152.     </dependencies>
  153.  
  154.     <scm>
  155.         <connection>scm:git:https://https://github.com/${github}.git</connection>
  156.         <developerConnection>scm:git:https://https://github.com/${github}.git</developerConnection>
  157.         <tag>HEAD</tag>
  158.         <url>https://https://github.com/${github}.git</url>
  159.     </scm>
  160.  
  161.     <distributionManagement>
  162.         <snapshotRepository>
  163.             <id>snapshots</id>
  164.             <url>http://artifactory:8081/artifactory/libs-snapshot-local</url>
  165.         </snapshotRepository>
  166.     </distributionManagement>
  167.  
  168.     <repositories>
  169.         <repository>
  170.             <id>central</id>
  171.             <url>https://repo1.maven.org/maven2/</url>
  172.         </repository>
  173.         <repository>
  174.             <id>itmo-central</id>
  175.             <url>http://77.234.215.138:30031/artifactory/libs-release</url>
  176.         </repository>
  177.         <repository>
  178.             <id>itmo-snapshots</id>
  179.             <url>http://77.234.215.138:30031/artifactory/libs-snapshot</url>
  180.             <snapshots>
  181.                 <enabled>true</enabled>
  182.             </snapshots>
  183.         </repository>
  184.     </repositories>
  185.  
  186.     <build>
  187.         <plugins>
  188.             <plugin>
  189.                 <groupId>org.springframework.boot</groupId>
  190.                 <artifactId>spring-boot-maven-plugin</artifactId>
  191.             </plugin>
  192.             <plugin>
  193.                 <groupId>org.jetbrains.kotlin</groupId>
  194.                 <artifactId>kotlin-maven-plugin</artifactId>
  195.                 <configuration>
  196.                     <args>
  197.                         <arg>-Xjsr305=strict</arg>
  198.                     </args>
  199.                     <compilerPlugins>
  200.                         <plugin>spring</plugin>
  201.                     </compilerPlugins>
  202.                 </configuration>
  203.                 <executions>
  204.                     <execution>
  205.                         <id>kapt</id>
  206.                         <goals>
  207.                             <goal>kapt</goal>
  208.                         </goals>
  209.                         <configuration>
  210.                             <sourceDirs>
  211.                                 <sourceDir>src/main/kotlin</sourceDir>
  212.                                 <sourceDir>src/main/java</sourceDir>
  213.                             </sourceDirs>
  214.                             <annotationProcessorPaths>
  215.                                 <!-- Specify your annotation processors here. -->
  216.                                 <annotationProcessorPath>
  217.                                     <groupId>org.springframework.boot</groupId>
  218.                                     <artifactId>spring-boot-configuration-processor</artifactId>
  219.                                     <version>2.5.3</version>
  220.                                 </annotationProcessorPath>
  221.                             </annotationProcessorPaths>
  222.                         </configuration>
  223.                     </execution>
  224.                     <execution>
  225.                         <id>compile</id>
  226.                         <phase>process-sources</phase>
  227.                         <goals>
  228.                             <goal>compile</goal>
  229.                         </goals>
  230.                         <configuration>
  231.                             <sourceDirs>
  232.                                 <sourceDir>src/main/kotlin</sourceDir>
  233.                                 <sourceDir>src/main/java</sourceDir>
  234.                             </sourceDirs>
  235.                         </configuration>
  236.                     </execution>
  237.                     <execution>
  238.                         <id>test-compile</id>
  239.                         <goals>
  240.                             <goal>test-compile</goal>
  241.                         </goals>
  242.                         <configuration>
  243.                             <sourceDirs>
  244.                                 <sourceDir>src/test/java</sourceDir>
  245.                                 <sourceDir>src/test/kotlin</sourceDir>
  246.                             </sourceDirs>
  247.                         </configuration>
  248.                     </execution>
  249.                 </executions>
  250.                 <dependencies>
  251.                     <dependency>
  252.                         <groupId>org.jetbrains.kotlin</groupId>
  253.                         <artifactId>kotlin-maven-allopen</artifactId>
  254.                         <version>1.5.0</version>
  255.                     </dependency>
  256.                 </dependencies>
  257.             </plugin>
  258.             <plugin>
  259.                 <groupId>org.apache.maven.plugins</groupId>
  260.                 <artifactId>maven-compiler-plugin</artifactId>
  261.                 <configuration>
  262.                     <source>11</source>
  263.                     <target>11</target>
  264.                 </configuration>
  265.                 <executions>
  266.                     <!-- Replacing default-compile as it is treated specially by maven -->
  267.                     <execution>
  268.                         <id>default-compile</id>
  269.                         <phase>none</phase>
  270.                     </execution>
  271.                     <!-- Replacing default-testCompile as it is treated specially by maven -->
  272.                     <execution>
  273.                         <id>default-testCompile</id>
  274.                         <phase>none</phase>
  275.                     </execution>
  276.                     <execution>
  277.                         <id>java-compile</id>
  278.                         <phase>compile</phase>
  279.                         <goals>
  280.                             <goal>compile</goal>
  281.                         </goals>
  282.                     </execution>
  283.                     <execution>
  284.                         <id>java-test-compile</id>
  285.                         <phase>test-compile</phase>
  286.                         <goals>
  287.                             <goal>testCompile</goal>
  288.                         </goals>
  289.                     </execution>
  290.                 </executions>
  291.             </plugin>
  292.  
  293.             <plugin>
  294.                 <groupId>org.codehaus.mojo</groupId>
  295.                 <artifactId>buildnumber-maven-plugin</artifactId>
  296.                 <version>${buildnumber-maven-plugin.version}</version>
  297.                 <executions>
  298.                     <execution>
  299.                         <phase>validate</phase>
  300.                         <goals>
  301.                             <goal>create</goal>
  302.                         </goals>
  303.                     </execution>
  304.                 </executions>
  305.                 <configuration>
  306.                     <doCheck>false</doCheck>
  307.                     <doUpdate>false</doUpdate>
  308.                 </configuration>
  309.             </plugin>
  310.             <plugin>
  311.                 <groupId>com.google.cloud.tools</groupId>
  312.                 <artifactId>jib-maven-plugin</artifactId>
  313.                 <version>${jib-maven-plugin.version}</version>
  314.                 <configuration>
  315.                     <to>
  316.                         <image>${env.DOCKER_REPO_HOST_INTERNAL}/${project.artifactId}</image>
  317.                         <tags>${scmBranch}_${project.version}</tags>
  318.                     </to>
  319.                     <allowInsecureRegistries>true</allowInsecureRegistries>
  320.  
  321.                 </configuration>
  322.                 <executions>
  323.                     <execution>
  324.                         <id>build and push image</id>
  325.                         <phase>deploy</phase>
  326.                         <goals>
  327.                             <goal>build</goal>
  328.                         </goals>
  329.                     </execution>
  330.                 </executions>
  331.             </plugin>
  332.         </plugins>
  333.     </build>
  334.  
  335. </project>
  336.  
Add Comment
Please, Sign In to add comment