|
| 1 | +<?xml version="1.0"?> |
| 2 | +<!-- |
| 3 | +
|
| 4 | + Licensed to the Apache Software Foundation (ASF) under one |
| 5 | + or more contributor license agreements. See the NOTICE file |
| 6 | + distributed with this work for additional information |
| 7 | + regarding copyright ownership. The ASF licenses this file |
| 8 | + to you under the Apache License, Version 2.0 (the |
| 9 | + "License"); you may not use this file except in compliance |
| 10 | + with the License. You may obtain a copy of the License at |
| 11 | +
|
| 12 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | +
|
| 14 | + Unless required by applicable law or agreed to in writing, |
| 15 | + software distributed under the License is distributed on an |
| 16 | + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 17 | + KIND, either express or implied. See the License for the |
| 18 | + specific language governing permissions and limitations |
| 19 | + under the License. |
| 20 | +
|
| 21 | +--> |
| 22 | +<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/xsd/maven-4.0.0.xsd"> |
| 23 | + <modelVersion>4.0.0</modelVersion> |
| 24 | + <parent> |
| 25 | + <artifactId>pinot</artifactId> |
| 26 | + <groupId>org.apache.pinot</groupId> |
| 27 | + <version>1.6.0-SNAPSHOT</version> |
| 28 | + </parent> |
| 29 | + <artifactId>pinot-java11-client-verifier</artifactId> |
| 30 | + <name>Pinot Java 11 Client Verifier</name> |
| 31 | + <url>https://pinot.apache.org/</url> |
| 32 | + <packaging>jar</packaging> |
| 33 | + |
| 34 | + <properties> |
| 35 | + <pinot.root>${basedir}/..</pinot.root> |
| 36 | + <!-- |
| 37 | + A CI harness, not something a consumer should depend on. Keep it out of the published |
| 38 | + artifacts; nothing in the reactor depends on it either. |
| 39 | + --> |
| 40 | + <maven.deploy.skip>true</maven.deploy.skip> |
| 41 | + </properties> |
| 42 | + |
| 43 | + <build> |
| 44 | + <plugins> |
| 45 | + <plugin> |
| 46 | + <groupId>org.apache.maven.plugins</groupId> |
| 47 | + <artifactId>maven-compiler-plugin</artifactId> |
| 48 | + <configuration> |
| 49 | + <!-- Load-bearing rather than copied boilerplate: .pinot_java11_client_compat.sh launches |
| 50 | + this module's own classes on a Java 11 JVM, so its bytecode has to be Java 11 as well. |
| 51 | + Hard-coded literal so -Djdk.version=21 on the CLI cannot silently bump the level. --> |
| 52 | + <release>11</release> |
| 53 | + <source>11</source> |
| 54 | + <target>11</target> |
| 55 | + </configuration> |
| 56 | + </plugin> |
| 57 | + <plugin> |
| 58 | + <!-- |
| 59 | + Writes the resolved runtime closure of this module (the union of the pinot-java-client and |
| 60 | + pinot-jdbc-client closures) to a file, so the CI driver script can hand exactly that |
| 61 | + classpath to a Java 11 JVM. |
| 62 | + --> |
| 63 | + <groupId>org.apache.maven.plugins</groupId> |
| 64 | + <artifactId>maven-dependency-plugin</artifactId> |
| 65 | + <executions> |
| 66 | + <execution> |
| 67 | + <id>write-runtime-classpath</id> |
| 68 | + <phase>prepare-package</phase> |
| 69 | + <goals> |
| 70 | + <goal>build-classpath</goal> |
| 71 | + </goals> |
| 72 | + <configuration> |
| 73 | + <includeScope>runtime</includeScope> |
| 74 | + <outputFile>${project.build.directory}/runtime-classpath.txt</outputFile> |
| 75 | + <regenerateFile>true</regenerateFile> |
| 76 | + </configuration> |
| 77 | + </execution> |
| 78 | + </executions> |
| 79 | + </plugin> |
| 80 | + </plugins> |
| 81 | + </build> |
| 82 | + |
| 83 | + <dependencies> |
| 84 | + <!-- The two consumer-facing clients. Depending on both makes this module's runtime closure the |
| 85 | + union of theirs, which is what gets scanned for bytecode a Java 11 JVM cannot load. --> |
| 86 | + <dependency> |
| 87 | + <groupId>org.apache.pinot</groupId> |
| 88 | + <artifactId>pinot-java-client</artifactId> |
| 89 | + </dependency> |
| 90 | + <dependency> |
| 91 | + <groupId>org.apache.pinot</groupId> |
| 92 | + <artifactId>pinot-jdbc-client</artifactId> |
| 93 | + </dependency> |
| 94 | + |
| 95 | + <!-- The remaining Java-11-pinned modules. All four already arrive transitively, so declaring |
| 96 | + them changes nothing about the closure; it is done because the verifier imports them |
| 97 | + directly, and so that dropping one breaks the build instead of silently shrinking coverage. |
| 98 | + Java11CompatibilityVerifier also asserts at runtime that all six are on the classpath. --> |
| 99 | + <dependency> |
| 100 | + <groupId>org.apache.pinot</groupId> |
| 101 | + <artifactId>pinot-common</artifactId> |
| 102 | + </dependency> |
| 103 | + <dependency> |
| 104 | + <groupId>org.apache.pinot</groupId> |
| 105 | + <artifactId>pinot-spi</artifactId> |
| 106 | + </dependency> |
| 107 | + <dependency> |
| 108 | + <groupId>org.apache.pinot</groupId> |
| 109 | + <artifactId>pinot-segment-spi</artifactId> |
| 110 | + </dependency> |
| 111 | + <dependency> |
| 112 | + <groupId>org.apache.pinot</groupId> |
| 113 | + <artifactId>pinot-timeseries-spi</artifactId> |
| 114 | + </dependency> |
| 115 | + |
| 116 | + <!-- Third-party types the verifier constructs directly. --> |
| 117 | + <dependency> |
| 118 | + <groupId>org.apache.helix</groupId> |
| 119 | + <artifactId>helix-core</artifactId> |
| 120 | + </dependency> |
| 121 | + <dependency> |
| 122 | + <groupId>com.google.protobuf</groupId> |
| 123 | + <artifactId>protobuf-java</artifactId> |
| 124 | + </dependency> |
| 125 | + <dependency> |
| 126 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 127 | + <artifactId>jackson-databind</artifactId> |
| 128 | + </dependency> |
| 129 | + <dependency> |
| 130 | + <groupId>io.grpc</groupId> |
| 131 | + <artifactId>grpc-api</artifactId> |
| 132 | + </dependency> |
| 133 | + |
| 134 | + <dependency> |
| 135 | + <groupId>org.testng</groupId> |
| 136 | + <artifactId>testng</artifactId> |
| 137 | + <scope>test</scope> |
| 138 | + </dependency> |
| 139 | + </dependencies> |
| 140 | +</project> |
0 commit comments