Skip to content

Commit

Permalink
Add support for calls to compile method using GRPC
Browse files Browse the repository at this point in the history
  • Loading branch information
zakariamaaraki committed Apr 18, 2024
1 parent e271bbf commit eb7ea9a
Show file tree
Hide file tree
Showing 60 changed files with 6,613 additions and 85 deletions.
100 changes: 99 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>1.5.5.Final</version>
</dependency>

<!-- Thymeleaf template engine -->
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -117,6 +123,24 @@
<version>2.2.2.RELEASE</version>
</dependency>

<!-- GRPC -->
<!-- https://mvnrepository.com/artifact/net.devh/grpc-server-spring-boot-starter -->
<dependency>
<groupId>net.devh</groupId>
<artifactId>grpc-server-spring-boot-starter</artifactId>
<version>2.15.0.RELEASE</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>1.40.1</version>
</dependency>

<!-- Sleuth for distributed tracing -->
<dependency>
<groupId>org.springframework.cloud</groupId>
Expand Down Expand Up @@ -210,6 +234,80 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>1.5.5.Final</version>
</path>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.4</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>com.github.os72</groupId>
<artifactId>protoc-jar-maven-plugin</artifactId>
<version>3.11.4</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<addProtoSources>all</addProtoSources>
<includeImports>true</includeImports>
<includeStdTypes>true</includeStdTypes>
<includeMavenTypes>direct</includeMavenTypes>
<outputDirectory>src/main/generated</outputDirectory>
<inputDirectories>
<include>src/main/proto</include>
</inputDirectories>
<!-- <includeDirectories>-->
<!-- <include>src/main/proto-imports</include>-->
<!-- </includeDirectories>-->
<outputTargets>
<outputTarget>
<type>java</type>
<outputDirectory>src/main/generated</outputDirectory>
</outputTarget>
<outputTarget>
<type>grpc-java</type>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.60.1</pluginArtifact>
<outputDirectory>src/main/generated</outputDirectory>
</outputTarget>
</outputTargets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/generated</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand All @@ -232,7 +330,7 @@
<configuration>
<excludes>
<exclude>**/config/SwaggerConfig.class</exclude>
<exclude>**/controllers/*</exclude>
<exclude>**/api/*</exclude>
</excludes>
</configuration>
</plugin>
Expand Down
Loading

0 comments on commit eb7ea9a

Please sign in to comment.