|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 | 4 | <modelVersion>4.0.0</modelVersion> |
5 | 5 | <parent> |
6 | 6 | <groupId>dev.openfeature.contrib</groupId> |
|
16 | 16 | <!-- exclusion expression for e2e tests --> |
17 | 17 | <testExclusions>**/e2e/*.java</testExclusions> |
18 | 18 | <io.grpc.version>1.69.0</io.grpc.version> |
| 19 | + <protobuf-java.min.version>3.25.5</protobuf-java.min.version> |
19 | 20 | </properties> |
20 | 21 |
|
21 | 22 | <name>flagd</name> |
|
38 | 39 | <groupId>com.google.protobuf</groupId> |
39 | 40 | <artifactId>protobuf-java</artifactId> |
40 | 41 | <!-- 5.0.0-rc < 5.0.0, unfortunately --> |
41 | | - <version>[3.25.5,4.999999)</version> |
| 42 | + <version>[${protobuf-java.min.version},4.999999)</version> |
42 | 43 | </dependency> |
43 | 44 |
|
44 | 45 | <dependency> |
|
221 | 222 | <configuration> |
222 | 223 | <protocArtifact>com.google.protobuf:protoc:3.25.5:exe:${os.detected.classifier}</protocArtifact> |
223 | 224 | <pluginId>grpc-java</pluginId> |
224 | | - <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.69.0:exe:${os.detected.classifier}</pluginArtifact> |
| 225 | + <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.68.2:exe:${os.detected.classifier}</pluginArtifact> |
225 | 226 | <protoSourceRoot>${project.basedir}/schemas/protobuf/</protoSourceRoot> |
226 | 227 | </configuration> |
227 | 228 | <executions> |
|
237 | 238 | </build> |
238 | 239 |
|
239 | 240 | <profiles> |
| 241 | + <profile> |
| 242 | + <!-- this profile forces us to compile against our minimum version of protobuf-java, |
| 243 | + which is required so we can be compatible with both protobuf-java@v3 and protobuf-java@v4 consumers --> |
| 244 | + <id>build</id> |
| 245 | + <activation> |
| 246 | + <activeByDefault>true</activeByDefault> |
| 247 | + </activation> |
| 248 | + |
| 249 | + <dependencies> |
| 250 | + <dependency> |
| 251 | + <groupId>com.google.protobuf</groupId> |
| 252 | + <artifactId>protobuf-java</artifactId> |
| 253 | + <!-- must match minimum version in protobuf-java dependency range above --> |
| 254 | + <version>${protobuf-java.min.version}</version> |
| 255 | + </dependency> |
| 256 | + </dependencies> |
| 257 | + |
| 258 | + </profile> |
240 | 259 | <profile> |
241 | 260 | <!-- this profile handles running the flagd e2e tests --> |
242 | 261 | <id>e2e</id> |
|
0 commit comments