| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| --> |
| <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
| xmlns="http://maven.apache.org/POM/4.0.0" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.kie.kogito.examples</groupId> |
| <artifactId>serverless-workflow-greeting-rpc-quarkus</artifactId> |
| <version>1.0-SNAPSHOT</version> |
| </parent> |
| <artifactId>serverless-workflow-greeting-server-rpc-quarkus</artifactId> |
| <name>Kogito Example :: Serverless Workflow Greeting :: gRPC Server :: Quarkus</name> |
| <description>Kogito Serverless Workflow Example that defines a simple gRPC service - Quarkus</description> |
| <properties> |
| <version.compiler.plugin>3.13.0</version.compiler.plugin> |
| <maven.compiler.release>17</maven.compiler.release> |
| <version.surefire.plugin>3.3.1</version.surefire.plugin> |
| <version.com.google.protobuf>3.22.0</version.com.google.protobuf> |
| <version.io.grpc>1.56.0</version.io.grpc> |
| <version.kr.motd.maven.os>1.6.0</version.kr.motd.maven.os> |
| <version.org.xolstice.maven.protobuf>0.6.1</version.org.xolstice.maven.protobuf> |
| <version.jib-maven-plugin>3.3.0</version.jib-maven-plugin> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-netty-shaded</artifactId> |
| <version>${version.io.grpc}</version> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-protobuf</artifactId> |
| <version>${version.io.grpc}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-stub</artifactId> |
| <version>${version.io.grpc}</version> |
| </dependency> |
| <dependency> |
| <!-- necessary for Java 9+ --> |
| <groupId>org.apache.tomcat</groupId> |
| <artifactId>annotations-api</artifactId> |
| <version>6.0.53</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter</artifactId> |
| <version>5.9.3</version> |
| </dependency> |
| </dependencies> |
| <build> |
| <extensions> |
| <extension> |
| <groupId>kr.motd.maven</groupId> |
| <artifactId>os-maven-plugin</artifactId> |
| <version>${version.kr.motd.maven.os}</version> |
| </extension> |
| </extensions> |
| <resources> |
| <resource> |
| <directory>${basedir}/src/main/resources</directory> |
| </resource> |
| <resource> |
| <directory>${project.build.directory}/generated-resources</directory> |
| </resource> |
| </resources> |
| <finalName>${project.artifactId}</finalName> |
| <plugins> |
| <plugin> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>${version.compiler.plugin}</version> |
| <configuration> |
| <release>${maven.compiler.release}</release> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.xolstice.maven.plugins</groupId> |
| <artifactId>protobuf-maven-plugin</artifactId> |
| <version>${version.org.xolstice.maven.protobuf}</version> |
| <configuration> |
| <protocArtifact> |
| com.google.protobuf:protoc:${version.com.google.protobuf}:exe:${os.detected.classifier} |
| </protocArtifact> |
| <pluginId>grpc-java</pluginId> |
| <pluginArtifact>io.grpc:protoc-gen-grpc-java:${version.io.grpc}:exe:${os.detected.classifier} |
| </pluginArtifact> |
| <attachProtoSources>false</attachProtoSources> |
| <protoSourceRoot>${project.basedir}/src/main/proto</protoSourceRoot> |
| <outputDirectory>${project.build.directory}/generated-sources/protobuf/java</outputDirectory> |
| <clearOutputDirectory>false</clearOutputDirectory> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>compile</goal> |
| <goal>compile-custom</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <version>2.15</version> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>${version.surefire.plugin}</version> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>container</id> |
| <activation> |
| <property> |
| <name>container</name> |
| </property> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>com.google.cloud.tools</groupId> |
| <artifactId>jib-maven-plugin</artifactId> |
| <version>${version.jib-maven-plugin}</version> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>com.google.cloud.tools</groupId> |
| <artifactId>jib-maven-plugin</artifactId> |
| <version>${version.jib-maven-plugin}</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>dockerBuild</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <to> |
| <image>dev.local/${USER}/${project.artifactId}:${project.version}</image> |
| </to> |
| <container> |
| <mainClass>org.kie.kogito.examples.sw.greeting.GreeterService</mainClass> |
| </container> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |