Skip to content

Commit 0ad73a5

Browse files
committed
Compile protos for tests
1 parent 8d3764f commit 0ad73a5

File tree

3 files changed

+61
-6
lines changed

3 files changed

+61
-6
lines changed

pom.xml

+56-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>io.eigr</groupId>
66
<artifactId>spawn-springboot-sdk</artifactId>
7-
<version>0.1.8</version>
7+
<version>0.1.9</version>
88
<packaging>pom</packaging>
99
<name>spawn-springboot-sdk</name>
1010
<url>https://eigr.io</url>
@@ -36,4 +36,59 @@
3636
<scope>test</scope>
3737
</dependency>
3838
</dependencies>
39+
40+
41+
<build>
42+
<extensions>
43+
<extension>
44+
<groupId>kr.motd.maven</groupId>
45+
<artifactId>os-maven-plugin</artifactId>
46+
<version>1.6.2</version>
47+
</extension>
48+
</extensions>
49+
50+
<plugins>
51+
<plugin>
52+
<groupId>org.xolstice.maven.plugins</groupId>
53+
<artifactId>protobuf-maven-plugin</artifactId>
54+
<version>0.6.1</version>
55+
<configuration>
56+
<protocArtifact>com.google.protobuf:protoc:3.19.2:exe:${os.detected.classifier}</protocArtifact>
57+
<pluginId>grpc-java</pluginId>
58+
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.47.0:exe:${os.detected.classifier}</pluginArtifact>
59+
</configuration>
60+
<executions>
61+
<execution>
62+
<goals>
63+
<goal>compile</goal>
64+
<goal>compile-custom</goal>
65+
<goal>test-compile</goal>
66+
</goals>
67+
</execution>
68+
</executions>
69+
</plugin>
70+
71+
<plugin>
72+
<groupId>org.codehaus.mojo</groupId>
73+
<artifactId>build-helper-maven-plugin</artifactId>
74+
<version>3.2.0</version>
75+
<executions>
76+
<execution>
77+
<id>add-test-sources</id>
78+
<phase>generate-test-sources</phase>
79+
<goals>
80+
<goal>add-test-source</goal>
81+
</goals>
82+
<configuration>
83+
<sources>
84+
<source>${project.build.directory}/generated-test-sources/protobuf</source>
85+
</sources>
86+
</configuration>
87+
</execution>
88+
</executions>
89+
</plugin>
90+
</plugins>
91+
</build>
92+
93+
3994
</project>

spawn-springboot-examples/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>io.eigr</groupId>
66
<artifactId>spawn-springboot-examples</artifactId>
7-
<version>0.1.8</version>
7+
<version>0.1.9</version>
88
<name>spawn-springboot-examples</name>
99
<url>http://www.example.com</url>
1010

@@ -17,7 +17,7 @@
1717
<parent>
1818
<groupId>io.eigr</groupId>
1919
<artifactId>spawn-springboot-sdk</artifactId>
20-
<version>0.1.8</version>
20+
<version>0.1.9</version>
2121
</parent>
2222

2323
<dependencyManagement>
@@ -43,7 +43,7 @@
4343
<dependency>
4444
<groupId>io.eigr</groupId>
4545
<artifactId>spawn-springboot-starter</artifactId>
46-
<version>0.1.8</version>
46+
<version>0.1.9</version>
4747
</dependency>
4848

4949
<dependency>

spawn-springboot-starter/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>io.eigr</groupId>
66
<artifactId>spawn-springboot-starter</artifactId>
7-
<version>0.1.8</version>
7+
<version>0.1.9</version>
88
<name>spawn-springboot-starter</name>
99
<url>https://eigr.io</url>
1010

1111
<parent>
1212
<groupId>io.eigr</groupId>
1313
<artifactId>spawn-springboot-sdk</artifactId>
14-
<version>0.1.8</version>
14+
<version>0.1.9</version>
1515
</parent>
1616

1717
<properties>

0 commit comments

Comments
 (0)