|
4 | 4 | <parent>
|
5 | 5 | <groupId>com.salesforce.datacloud</groupId>
|
6 | 6 | <artifactId>jdbc-parent</artifactId>
|
7 |
| - <version>0.24.0-SNAPSHOT</version> |
| 7 | + <version>0.25.0-SNAPSHOT</version> |
| 8 | + <relativePath>../jdbc-parent</relativePath> |
8 | 9 | </parent>
|
9 | 10 |
|
10 | 11 | <artifactId>jdbc-grpc</artifactId>
|
11 | 12 |
|
12 | 13 | <properties>
|
13 |
| - <maven.compiler.source>${java.version}</maven.compiler.source> |
14 |
| - <maven.compiler.target>${java.version}</maven.compiler.target> |
15 |
| - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 14 | + <maven.deploy.skip>false</maven.deploy.skip> |
| 15 | + <rootDirectory>${project.basedir}/../</rootDirectory> |
16 | 16 | </properties>
|
17 | 17 |
|
18 | 18 | <dependencies>
|
19 |
| - <dependency> |
20 |
| - <groupId>com.salesforce.datacloud</groupId> |
21 |
| - <artifactId>jdbc-proto</artifactId> |
22 |
| - <version>${project.version}</version> |
23 |
| - </dependency> |
24 | 19 | <dependency>
|
25 | 20 | <groupId>io.grpc</groupId>
|
26 | 21 | <artifactId>grpc-netty</artifactId>
|
|
40 | 35 | </dependencies>
|
41 | 36 |
|
42 | 37 | <build>
|
| 38 | + <sourceDirectory>${project.build.directory}/generated-sources/protobuf</sourceDirectory> |
43 | 39 | <plugins>
|
| 40 | + <plugin> |
| 41 | + <groupId>org.codehaus.mojo</groupId> |
| 42 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 43 | + <version>${build-helper-maven-plugin.version}</version> |
| 44 | + <executions> |
| 45 | + <execution> |
| 46 | + <goals> |
| 47 | + <goal>add-source</goal> |
| 48 | + </goals> |
| 49 | + <phase>generate-sources</phase> |
| 50 | + <configuration> |
| 51 | + <sources> |
| 52 | + <source>${project.build.directory}/generated-sources/protobuf/grpc-java</source> |
| 53 | + <source>${project.build.directory}/generated-sources/protobuf/java</source> |
| 54 | + </sources> |
| 55 | + </configuration> |
| 56 | + </execution> |
| 57 | + </executions> |
| 58 | + </plugin> |
44 | 59 | <plugin>
|
45 | 60 | <groupId>org.xolstice.maven.plugins</groupId>
|
46 | 61 | <artifactId>protobuf-maven-plugin</artifactId>
|
47 |
| - <version>0.6.1</version> |
| 62 | + <version>${protobuf-maven-plugin.version}</version> |
48 | 63 | <configuration>
|
49 | 64 | <protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
|
50 | 65 | <pluginId>grpc-java</pluginId>
|
51 | 66 | <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
|
52 | 67 | <attachProtoSources>false</attachProtoSources>
|
53 |
| - <protoSourceRoot>${project.parent.basedir}/jdbc-proto/src/main/proto</protoSourceRoot> |
| 68 | + <protoSourceRoot>${project.basedir}/../jdbc-proto/src/main/proto</protoSourceRoot> |
54 | 69 | </configuration>
|
55 | 70 | <executions>
|
56 | 71 | <execution>
|
|
61 | 76 | </execution>
|
62 | 77 | </executions>
|
63 | 78 | </plugin>
|
| 79 | + <plugin> |
| 80 | + <groupId>org.apache.maven.plugins</groupId> |
| 81 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 82 | + <configuration> |
| 83 | + <doclint>none</doclint> |
| 84 | + <additionalJOption>-Xdoclint:none</additionalJOption> |
| 85 | + <sourcepath>${project.build.directory}/generated-sources/protobuf/java;${project.build.directory}/generated-sources/protobuf/grpc-java;</sourcepath> |
| 86 | + <source>${java.version}</source> |
| 87 | + <quiet>true</quiet> |
| 88 | + <outputDirectory>${project.build.directory}/apidocs</outputDirectory> |
| 89 | + <failOnWarnings>false</failOnWarnings> |
| 90 | + </configuration> |
| 91 | + </plugin> |
64 | 92 | </plugins>
|
65 | 93 | </build>
|
66 | 94 | </project>
|
0 commit comments