|
11 | 11 | <maven.compiler.source>1.8</maven.compiler.source> |
12 | 12 | <maven.compiler.target>${maven.compiler.source}</maven.compiler.target> |
13 | 13 | <junit.jupiter.version>5.8.1</junit.jupiter.version> |
| 14 | + <!-- exclusion expression for integration tests --> |
| 15 | + <testExclusions>**/integration/*.java</testExclusions> |
14 | 16 | </properties> |
15 | 17 |
|
16 | 18 | <name>OpenFeature Java SDK</name> |
|
46 | 48 | <scope>provided</scope> |
47 | 49 | </dependency> |
48 | 50 |
|
49 | | - |
50 | 51 | <dependency> |
51 | 52 | <!-- used so that lombok can generate suppressions for spotbugs. It needs to find it on the relevant classpath --> |
52 | 53 | <groupId>com.github.spotbugs</groupId> |
|
96 | 97 | <version>${junit.jupiter.version}</version> |
97 | 98 | <scope>test</scope> |
98 | 99 | </dependency> |
| 100 | + |
99 | 101 | <dependency> |
100 | 102 | <groupId>org.junit.jupiter</groupId> |
101 | 103 | <artifactId>junit-jupiter-api</artifactId> |
102 | 104 | <version>${junit.jupiter.version}</version> |
103 | 105 | <scope>test</scope> |
104 | 106 | </dependency> |
| 107 | + |
105 | 108 | <dependency> |
106 | 109 | <groupId>org.junit.jupiter</groupId> |
107 | 110 | <artifactId>junit-jupiter-params</artifactId> |
108 | 111 | <version>${junit.jupiter.version}</version> |
109 | 112 | <scope>test</scope> |
110 | 113 | </dependency> |
| 114 | + |
111 | 115 | <dependency> |
112 | 116 | <groupId>org.junit.platform</groupId> |
113 | 117 | <artifactId>junit-platform-suite</artifactId> |
114 | | - <version>1.8.1</version> |
| 118 | + <version>1.9.0</version> |
| 119 | + <scope>test</scope> |
| 120 | + </dependency> |
| 121 | + |
| 122 | + <dependency> |
| 123 | + <groupId>io.cucumber</groupId> |
| 124 | + <artifactId>cucumber-java</artifactId> |
115 | 125 | <scope>test</scope> |
116 | 126 | </dependency> |
| 127 | + |
| 128 | + <dependency> |
| 129 | + <groupId>io.cucumber</groupId> |
| 130 | + <artifactId>cucumber-junit-platform-engine</artifactId> |
| 131 | + <scope>test</scope> |
| 132 | + </dependency> |
| 133 | + |
| 134 | + <dependency> |
| 135 | + <groupId>com.google.guava</groupId> |
| 136 | + <artifactId>guava</artifactId> |
| 137 | + <version>31.1-jre</version> |
| 138 | + <scope>test</scope> |
| 139 | + </dependency> |
| 140 | + |
| 141 | + <dependency> |
| 142 | + <groupId>dev.openfeature.contrib.providers</groupId> |
| 143 | + <artifactId>flagd</artifactId> |
| 144 | + <version>0.3.2</version> |
| 145 | + <scope>test</scope> |
| 146 | + </dependency> |
| 147 | + |
117 | 148 | </dependencies> |
118 | 149 |
|
| 150 | + <dependencyManagement> |
| 151 | + <dependencies> |
| 152 | + |
| 153 | + <dependency> |
| 154 | + <groupId>io.cucumber</groupId> |
| 155 | + <artifactId>cucumber-bom</artifactId> |
| 156 | + <version>7.5.0</version> |
| 157 | + <type>pom</type> |
| 158 | + <scope>import</scope> |
| 159 | + </dependency> |
| 160 | + |
| 161 | + <dependency> |
| 162 | + <groupId>org.junit</groupId> |
| 163 | + <artifactId>junit-bom</artifactId> |
| 164 | + <version>5.9.0</version> |
| 165 | + <type>pom</type> |
| 166 | + <scope>import</scope> |
| 167 | + </dependency> |
| 168 | + |
| 169 | + </dependencies> |
| 170 | + </dependencyManagement> |
119 | 171 |
|
120 | 172 | <build> |
121 | 173 | <plugins> |
| 174 | + |
122 | 175 | <plugin> |
123 | 176 | <artifactId>maven-dependency-plugin</artifactId> |
124 | 177 | <version>3.3.0</version> |
|
137 | 190 | <ignoredUnusedDeclaredDependency>org.junit*</ignoredUnusedDeclaredDependency> |
138 | 191 | </ignoredUnusedDeclaredDependencies> |
139 | 192 | <ignoredDependencies> |
| 193 | + <ignoredDependency>com.google.guava*</ignoredDependency> |
| 194 | + <ignoredDependency>io.cucumber*</ignoredDependency> |
| 195 | + <ignoredDependency>org.junit*</ignoredDependency> |
140 | 196 | <ignoredDependency>com.google.code.findbugs*</ignoredDependency> |
141 | 197 | <ignoredDependency>com.github.spotbugs*</ignoredDependency> |
142 | 198 | <ignoredDependency>uk.org.lidalia:lidalia-slf4j-ext:*</ignoredDependency> |
143 | 199 | </ignoredDependencies> |
144 | 200 | </configuration> |
145 | 201 | </plugin> |
| 202 | + |
146 | 203 | <plugin> |
147 | 204 | <artifactId>maven-compiler-plugin</artifactId> |
148 | 205 | <version>3.8.1</version> |
149 | 206 | </plugin> |
| 207 | + |
150 | 208 | <plugin> |
151 | 209 | <groupId>org.apache.maven.plugins</groupId> |
152 | 210 | <artifactId>maven-surefire-plugin</artifactId> |
|
155 | 213 | <argLine> |
156 | 214 | ${surefireArgLine} |
157 | 215 | </argLine> |
| 216 | + <excludes> |
| 217 | + <!-- tests to exclude --> |
| 218 | + <exclude>${testExclusions}</exclude> |
| 219 | + </excludes> |
158 | 220 | </configuration> |
159 | 221 | </plugin> |
160 | 222 |
|
|
224 | 286 | </rule> |
225 | 287 | </rules> |
226 | 288 | </configuration> |
227 | | - </execution> |
| 289 | + </execution> |
228 | 290 |
|
229 | 291 | </executions> |
230 | 292 | </plugin> |
|
257 | 319 | </execution> |
258 | 320 | </executions> |
259 | 321 | </plugin> |
| 322 | + |
260 | 323 | <plugin> |
261 | 324 | <groupId>org.apache.maven.plugins</groupId> |
262 | 325 | <artifactId>maven-javadoc-plugin</artifactId> |
|
372 | 435 | </plugins> |
373 | 436 | </build> |
374 | 437 |
|
| 438 | + <profiles> |
| 439 | + <profile> |
| 440 | + <!-- this profile handles running the flagd integration tests --> |
| 441 | + <id>integration-test</id> |
| 442 | + <properties> |
| 443 | + <!-- run the integration tests by clearing the exclusions --> |
| 444 | + <testExclusions></testExclusions> |
| 445 | + </properties> |
| 446 | + <build> |
| 447 | + <plugins> |
| 448 | + <!-- pull the gherkin tests as a git submodule --> |
| 449 | + <plugin> |
| 450 | + <groupId>org.codehaus.mojo</groupId> |
| 451 | + <artifactId>exec-maven-plugin</artifactId> |
| 452 | + <version>3.1.0</version> |
| 453 | + <executions> |
| 454 | + <execution> |
| 455 | + <id>update-test-harness-submodule</id> |
| 456 | + <phase>validate</phase> |
| 457 | + <goals> |
| 458 | + <goal>exec</goal> |
| 459 | + </goals> |
| 460 | + <configuration> |
| 461 | + <!-- run: git submodule update \-\-init \-\-recursive --> |
| 462 | + <executable>git</executable> |
| 463 | + <arguments> |
| 464 | + <argument>submodule</argument> |
| 465 | + <argument>update</argument> |
| 466 | + <argument>--init</argument> |
| 467 | + <argument>--recursive</argument> |
| 468 | + </arguments> |
| 469 | + </configuration> |
| 470 | + </execution> |
| 471 | + <execution> |
| 472 | + <id>copy-gherkin-tests</id> |
| 473 | + <phase>validate</phase> |
| 474 | + <goals> |
| 475 | + <goal>exec</goal> |
| 476 | + </goals> |
| 477 | + <configuration> |
| 478 | + <!-- run: cp test-harness/features/evaluation.feature src/test/resources/features/ --> |
| 479 | + <executable>cp</executable> |
| 480 | + <arguments> |
| 481 | + <argument>test-harness/features/evaluation.feature</argument> |
| 482 | + <argument>src/test/resources/features/</argument> |
| 483 | + </arguments> |
| 484 | + </configuration> |
| 485 | + </execution> |
| 486 | + </executions> |
| 487 | + </plugin> |
| 488 | + </plugins> |
| 489 | + </build> |
| 490 | + </profile> |
| 491 | + </profiles> |
| 492 | + |
375 | 493 | <distributionManagement> |
376 | 494 | <snapshotRepository> |
377 | 495 | <id>ossrh</id> |
|
0 commit comments