| POM: |
Show
hide
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.github.crawler-commons</groupId>
<artifactId>urlfrontier</artifactId>
<version>2.6</version>
</parent>
<name>urlfrontier-API</name>
<artifactId>urlfrontier-API</artifactId>
<packaging>jar</packaging>
<description>URLFrontier Java API</description>
<properties>
<grpc.version>1.76.0</grpc.version>
<protobuf-maven-plugin.version>3.10.2</protobuf-maven-plugin.version>
<protoc-gen-doc.version>1.5.1</protoc-gen-doc.version>
</properties>
<dependencies>
<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>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
<version>${grpc.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>${grpc.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>${grpc.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-services</artifactId>
<version>${grpc.version}</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>${protobuf.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>io.github.ascopes</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>${protobuf-maven-plugin.version}</version>
<configuration>
<protocVersion>${protobuf.version}</protocVersion>
<!-- Vanilla protoc plugins - these are platform specific
executables just like protoc is. -->
<binaryMavenPlugins>
<binaryMavenPlugin>
<groupId>io.grpc</groupId>
<artifactId>protoc-gen-grpc-java</artifactId>
<version>${grpc.version}</version>
</binaryMavenPlugin>
</binaryMavenPlugins>
</configuration>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<!-- Regenerates urlfrontier.md from the proto. Kept out of the default build so
that it stays offline-friendly: run it whenever the proto changes and commit
the result, with `mvn -Pprotodoc generate-sources -pl API`. -->
<profile>
<id>protodoc</id>
<build>
<plugins>
<plugin>
<groupId>io.github.ascopes</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>${protobuf-maven-plugin.version}</version>
<executions>
<execution>
<id>generate-markdown-doc</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<!-- only protoc-gen-doc here, the Java stubs are the job of
the default execution -->
<javaEnabled>false</javaEnabled>
<binaryMavenPlugins>
<binaryMavenPlugin>
<groupId>io.github.pseudomuto</groupId>
<artifactId>protoc-gen-doc</artifactId>
<version>${protoc-gen-doc.version}</version>
<options>markdown,urlfrontier.md</options>
<!-- the generated doc is committed next to the README
which links to it; cleanOutputDirectories must stay
false, this is the module directory -->
<outputDirectory>${project.basedir}</outputDirectory>
<registerAsCompilationRoot>false</registerAsCompilationRoot>
</binaryMavenPlugin>
</binaryMavenPlugins>
<!-- always regenerate: the output lives outside target/ and the
incremental cache would not notice it being deleted -->
<incrementalCompilation>false</incrementalCompilation>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
|