Skip to content

Commit

Permalink
fix maven building issues for plugin-tester-scala
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyPlane committed Oct 26, 2023
1 parent 7978c17 commit 82d4ea1
Showing 1 changed file with 65 additions and 16 deletions.
81 changes: 65 additions & 16 deletions plugin-tester-scala/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
<akka.http.cors.version>0.4.2</akka.http.cors.version>
<grpc.version>1.58.0</grpc.version> <!-- checked synced by VersionSyncCheckPlugin -->
<project.encoding>UTF-8</project.encoding>
<protobuf-java.version>3.22.2</protobuf-java.version>
<proto-google-common-protos.version>2.16.0</proto-google-common-protos.version>
</properties>

<repositories>
Expand Down Expand Up @@ -44,6 +46,11 @@
<artifactId>akka-http-cors_2.13</artifactId>
<version>${akka.http.cors.version}</version>
</dependency>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-actor-typed_2.12</artifactId>
<version>${akka.version}</version>
</dependency>

<dependency>
<groupId>com.typesafe.akka</groupId>
Expand Down Expand Up @@ -104,6 +111,56 @@
</executions>
</plugin>

<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.5.1</version>
<executions>
<execution>
<id>getClasspathFilenames</id>
<goals>
<!-- provides the jars of the classpath as properties inside of maven
so that we can refer to one of the jars in the exec plugin config below -->
<goal>properties</goal>
</goals>
</execution>

<!-- #unpack-protos -->
<execution>
<id>unpack</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>${protobuf-java.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/proto</outputDirectory>
<includes>**/*.proto</includes>
</artifactItem>
<artifactItem>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-common-protos</artifactId>
<version>${proto-google-common-protos.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/proto</outputDirectory>
<includes>**/*.proto</includes>
</artifactItem>
</artifactItems>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
<!-- #unpack-protos -->

</executions>
</plugin>

<plugin>
<groupId>com.lightbend.akka.grpc</groupId>
<artifactId>akka-grpc-maven-plugin</artifactId>
Expand All @@ -114,6 +171,13 @@
<serverPowerApis>true</serverPowerApis>
</generatorSettings>
<includeStdTypes>true</includeStdTypes>
<!-- #all-proto-paths -->
<protoPaths>
<protoPath>target/proto</protoPath>
<protoPath>src/main/proto</protoPath>
<protoPath>src/main/protobuf</protoPath>
</protoPaths>
<!-- #all-proto-paths -->
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -152,21 +216,6 @@
</executions>
</plugin>

<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.5.1</version>
<executions>
<execution>
<id>getClasspathFilenames</id>
<goals>
<!-- provides the jars of the classpath as properties inside of maven
so that we can refer to one of the jars in the exec plugin config below -->
<goal>properties</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
Expand All @@ -175,7 +224,7 @@
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath />
<classpath/>
<argument>example.myapp.helloworld.GreeterServer</argument>
</arguments>
</configuration>
Expand Down

0 comments on commit 82d4ea1

Please sign in to comment.