Advertisement
FahimHoque

POM

Nov 10th, 2021
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.42 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.     <parent>
  6.         <groupId>org.springframework.boot</groupId>
  7.         <artifactId>spring-boot-starter-parent</artifactId>
  8.         <version>2.5.6</version>
  9.         <relativePath/> <!-- lookup parent from repository -->
  10.     </parent>
  11.     <groupId>grpc</groupId>
  12.     <artifactId>grpc</artifactId>
  13.     <version>0.0.1-SNAPSHOT</version>
  14.     <name>grpc</name>
  15.     <description>GRPC implementation</description>
  16.     <properties>
  17.         <java.version>17</java.version>
  18.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19.         <grpc.version>1.41.0</grpc.version>
  20.         <protobuf.version>3.15.1</protobuf.version>
  21.         <protoc.version>3.15.1</protoc.version>
  22.     </properties>
  23.     <dependencies>
  24.         <dependency>
  25.             <groupId>org.springframework.boot</groupId>
  26.             <artifactId>spring-boot-starter-data-jpa</artifactId>
  27.         </dependency>
  28.         <dependency>
  29.             <groupId>org.springframework.boot</groupId>
  30.             <artifactId>spring-boot-starter-web</artifactId>
  31.         </dependency>
  32.  
  33.         <dependency>
  34.             <groupId>mysql</groupId>
  35.             <artifactId>mysql-connector-java</artifactId>
  36.             <scope>runtime</scope>
  37.         </dependency>
  38.         <dependency>
  39.             <groupId>org.springframework.boot</groupId>
  40.             <artifactId>spring-boot-starter-test</artifactId>
  41.             <scope>test</scope>
  42.         </dependency>
  43.  
  44.         <!--PROTO/gRpc Related dependencies-->
  45.         <dependency>
  46.             <groupId>io.grpc</groupId>
  47.             <artifactId>grpc-netty-shaded</artifactId>
  48.             <version>${grpc.version}</version>
  49.             <scope>runtime</scope>
  50.         </dependency>
  51.         <dependency>
  52.             <groupId>io.grpc</groupId>
  53.             <artifactId>grpc-protobuf</artifactId>
  54.             <version>${grpc.version}</version>
  55.         </dependency>
  56.         <dependency>
  57.             <groupId>io.grpc</groupId>
  58.             <artifactId>grpc-stub</artifactId>
  59.             <version>${grpc.version}</version>
  60.         </dependency>
  61.         <dependency>
  62.             <groupId>com.google.protobuf</groupId>
  63.             <artifactId>protobuf-java-util</artifactId>
  64.             <version>4.0.0-rc-2</version>
  65.         </dependency>
  66.         <dependency>
  67.             <groupId>org.apache.tomcat</groupId>
  68.             <artifactId>annotations-api</artifactId>
  69.             <version>6.0.53</version>
  70.             <scope>provided</scope>
  71.         </dependency>
  72.  
  73.         <dependency>
  74.             <groupId>junit</groupId>
  75.             <artifactId>junit</artifactId>
  76.             <version>4.12</version>
  77.             <scope>test</scope>
  78.         </dependency>
  79.  
  80.     </dependencies>
  81.  
  82.     <build>
  83.         <extensions>
  84.             <extension>
  85.                 <groupId>kr.motd.maven</groupId>
  86.                 <artifactId>os-maven-plugin</artifactId>
  87.                 <version>1.6.2</version>
  88.             </extension>
  89.         </extensions>
  90.         <plugins>
  91.             <plugin>
  92.                 <groupId>org.springframework.boot</groupId>
  93.                 <artifactId>spring-boot-maven-plugin</artifactId>
  94.             </plugin>
  95.             <plugin>
  96.                 <groupId>com.github.os72</groupId>
  97.                 <artifactId>protoc-jar-maven-plugin</artifactId>
  98.                 <version>3.11.4</version>
  99.                 <executions>
  100.                     <execution>
  101.                         <phase>generate-sources</phase>
  102.                         <goals>
  103.                             <goal>run</goal>
  104.                         </goals>
  105.                         <configuration>
  106.                             <protocVersion>${protoc.version}</protocVersion>
  107.                             <inputDirectories>src/main/proto</inputDirectories>
  108.                             <!--Generate the stubs in src/main/stubs-->
  109.                             <outputDirectory>src/main/stubs</outputDirectory>
  110.                         </configuration>
  111.                     </execution>
  112.                 </executions>
  113.             </plugin>
  114.         </plugins>
  115.     </build>
  116.  
  117. </project>
  118.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement