Skip to content

Commit

Permalink
Compile protos for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sleipnir committed Jun 17, 2022
1 parent 8d3764f commit 0ad73a5
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 6 deletions.
57 changes: 56 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.eigr</groupId>
<artifactId>spawn-springboot-sdk</artifactId>
<version>0.1.8</version>
<version>0.1.9</version>
<packaging>pom</packaging>
<name>spawn-springboot-sdk</name>
<url>https://eigr.io</url>
Expand Down Expand Up @@ -36,4 +36,59 @@
<scope>test</scope>
</dependency>
</dependencies>


<build>
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>1.6.2</version>
</extension>
</extensions>

<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<configuration>
<protocArtifact>com.google.protobuf:protoc:3.19.2:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.47.0:exe:${os.detected.classifier}</pluginArtifact>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>compile-custom</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>add-test-sources</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-test-sources/protobuf</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>


</project>
6 changes: 3 additions & 3 deletions spawn-springboot-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.eigr</groupId>
<artifactId>spawn-springboot-examples</artifactId>
<version>0.1.8</version>
<version>0.1.9</version>
<name>spawn-springboot-examples</name>
<url>http://www.example.com</url>

Expand All @@ -17,7 +17,7 @@
<parent>
<groupId>io.eigr</groupId>
<artifactId>spawn-springboot-sdk</artifactId>
<version>0.1.8</version>
<version>0.1.9</version>
</parent>

<dependencyManagement>
Expand All @@ -43,7 +43,7 @@
<dependency>
<groupId>io.eigr</groupId>
<artifactId>spawn-springboot-starter</artifactId>
<version>0.1.8</version>
<version>0.1.9</version>
</dependency>

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions spawn-springboot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.eigr</groupId>
<artifactId>spawn-springboot-starter</artifactId>
<version>0.1.8</version>
<version>0.1.9</version>
<name>spawn-springboot-starter</name>
<url>https://eigr.io</url>

<parent>
<groupId>io.eigr</groupId>
<artifactId>spawn-springboot-sdk</artifactId>
<version>0.1.8</version>
<version>0.1.9</version>
</parent>

<properties>
Expand Down

0 comments on commit 0ad73a5

Please sign in to comment.