|
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>
|
53 | 54 | <artifactId>spotbugs</artifactId>
|
54 | 55 | <version>4.7.1</version>
|
55 | 56 | <scope>compile</scope>
|
56 | 57 | </dependency>
|
57 |
| - |
58 | 58 | <dependency>
|
59 | 59 | <groupId>org.slf4j</groupId>
|
60 | 60 | <artifactId>slf4j-api</artifactId>
|
|
68 | 68 | <version>4.6.1</version>
|
69 | 69 | <scope>test</scope>
|
70 | 70 | </dependency>
|
71 |
| - |
72 | 71 | <dependency>
|
73 | 72 | <groupId>uk.org.lidalia</groupId>
|
74 | 73 | <artifactId>slf4j-test</artifactId>
|
75 | 74 | <version>1.2.0</version>
|
76 | 75 | <scope>test</scope>
|
77 | 76 | </dependency>
|
78 |
| - |
79 | 77 | <dependency>
|
80 | 78 | <groupId>org.assertj</groupId>
|
81 | 79 | <artifactId>assertj-core</artifactId>
|
82 | 80 | <version>3.23.1</version>
|
83 | 81 | <scope>test</scope>
|
84 | 82 | </dependency>
|
85 |
| - |
86 | 83 | <dependency>
|
87 | 84 | <groupId>org.junit.jupiter</groupId>
|
88 | 85 | <artifactId>junit-jupiter</artifactId>
|
89 | 86 | <version>${junit.jupiter.version}</version>
|
90 | 87 | <scope>test</scope>
|
91 | 88 | </dependency>
|
92 |
| - |
93 | 89 | <dependency>
|
94 | 90 | <groupId>org.junit.jupiter</groupId>
|
95 | 91 | <artifactId>junit-jupiter-engine</artifactId>
|
|
111 | 107 | <dependency>
|
112 | 108 | <groupId>org.junit.platform</groupId>
|
113 | 109 | <artifactId>junit-platform-suite</artifactId>
|
114 |
| - <version>1.8.1</version> |
| 110 | + <version>1.9.0</version> |
| 111 | + <scope>test</scope> |
| 112 | + </dependency> |
| 113 | + <dependency> |
| 114 | + <groupId>io.cucumber</groupId> |
| 115 | + <artifactId>cucumber-java</artifactId> |
| 116 | + <scope>test</scope> |
| 117 | + </dependency> |
| 118 | + <dependency> |
| 119 | + <groupId>io.cucumber</groupId> |
| 120 | + <artifactId>cucumber-junit-platform-engine</artifactId> |
| 121 | + <scope>test</scope> |
| 122 | + </dependency> |
| 123 | + <dependency> |
| 124 | + <groupId>com.google.guava</groupId> |
| 125 | + <artifactId>guava</artifactId> |
| 126 | + <version>31.1-jre</version> |
| 127 | + <scope>test</scope> |
| 128 | + </dependency> |
| 129 | + <dependency> |
| 130 | + <groupId>dev.openfeature.contrib.providers</groupId> |
| 131 | + <artifactId>flagd</artifactId> |
| 132 | + <version>0.3.2</version> |
115 | 133 | <scope>test</scope>
|
116 | 134 | </dependency>
|
117 | 135 | </dependencies>
|
118 | 136 |
|
| 137 | + <dependencyManagement> |
| 138 | + <dependencies> |
| 139 | + <dependency> |
| 140 | + <groupId>io.cucumber</groupId> |
| 141 | + <artifactId>cucumber-bom</artifactId> |
| 142 | + <version>7.5.0</version> |
| 143 | + <type>pom</type> |
| 144 | + <scope>import</scope> |
| 145 | + </dependency> |
| 146 | + <dependency> |
| 147 | + <groupId>org.junit</groupId> |
| 148 | + <artifactId>junit-bom</artifactId> |
| 149 | + <version>5.9.0</version> |
| 150 | + <type>pom</type> |
| 151 | + <scope>import</scope> |
| 152 | + </dependency> |
| 153 | + </dependencies> |
| 154 | + </dependencyManagement> |
119 | 155 |
|
120 | 156 | <build>
|
121 | 157 | <plugins>
|
|
137 | 173 | <ignoredUnusedDeclaredDependency>org.junit*</ignoredUnusedDeclaredDependency>
|
138 | 174 | </ignoredUnusedDeclaredDependencies>
|
139 | 175 | <ignoredDependencies>
|
| 176 | + <ignoredDependency>com.google.guava*</ignoredDependency> |
| 177 | + <ignoredDependency>io.cucumber*</ignoredDependency> |
| 178 | + <ignoredDependency>org.junit*</ignoredDependency> |
140 | 179 | <ignoredDependency>com.google.code.findbugs*</ignoredDependency>
|
141 | 180 | <ignoredDependency>com.github.spotbugs*</ignoredDependency>
|
142 | 181 | <ignoredDependency>uk.org.lidalia:lidalia-slf4j-ext:*</ignoredDependency>
|
|
155 | 194 | <argLine>
|
156 | 195 | ${surefireArgLine}
|
157 | 196 | </argLine>
|
| 197 | + <excludes> |
| 198 | + <!-- tests to exclude --> |
| 199 | + <exclude>${testExclusions}</exclude> |
| 200 | + </excludes> |
158 | 201 | </configuration>
|
159 | 202 | </plugin>
|
160 | 203 |
|
|
372 | 415 | </plugins>
|
373 | 416 | </build>
|
374 | 417 |
|
| 418 | + <profiles> |
| 419 | + <profile> |
| 420 | + <!-- this profile handles running the flagd integration tests --> |
| 421 | + <id>integration-test</id> |
| 422 | + <properties> |
| 423 | + <!-- run the integration tests by clearing the exclusions --> |
| 424 | + <testExclusions></testExclusions> |
| 425 | + </properties> |
| 426 | + <build> |
| 427 | + <plugins> |
| 428 | + <!-- pull the gherkin tests as a git submodule --> |
| 429 | + <plugin> |
| 430 | + <groupId>org.codehaus.mojo</groupId> |
| 431 | + <artifactId>exec-maven-plugin</artifactId> |
| 432 | + <version>3.1.0</version> |
| 433 | + <executions> |
| 434 | + <execution> |
| 435 | + <id>update-test-harness-submodule</id> |
| 436 | + <phase>validate</phase> |
| 437 | + <goals> |
| 438 | + <goal>exec</goal> |
| 439 | + </goals> |
| 440 | + <configuration> |
| 441 | + <!-- run: git submodule update \-\-init \-\-recursive --> |
| 442 | + <executable>git</executable> |
| 443 | + <arguments> |
| 444 | + <argument>submodule</argument> |
| 445 | + <argument>update</argument> |
| 446 | + <argument>--init</argument> |
| 447 | + <argument>--recursive</argument> |
| 448 | + </arguments> |
| 449 | + </configuration> |
| 450 | + </execution> |
| 451 | + <execution> |
| 452 | + <id>copy-gherkin-tests</id> |
| 453 | + <phase>validate</phase> |
| 454 | + <goals> |
| 455 | + <goal>exec</goal> |
| 456 | + </goals> |
| 457 | + <configuration> |
| 458 | + <!-- run: cp test-harness/features/evaluation.feature src/test/resources/features/ --> |
| 459 | + <executable>cp</executable> |
| 460 | + <arguments> |
| 461 | + <argument>test-harness/features/evaluation.feature</argument> |
| 462 | + <argument>src/test/resources/features/</argument> |
| 463 | + </arguments> |
| 464 | + </configuration> |
| 465 | + </execution> |
| 466 | + </executions> |
| 467 | + </plugin> |
| 468 | + </plugins> |
| 469 | + </build> |
| 470 | + </profile> |
| 471 | + </profiles> |
| 472 | + |
375 | 473 | <distributionManagement>
|
376 | 474 | <snapshotRepository>
|
377 | 475 | <id>ossrh</id>
|
|
0 commit comments