|
100 | 100 | <spotless-maven-plugin.version>3.10.4</spotless-maven-plugin.version> |
101 | 101 | <google-java-format.version>1.35.0</google-java-format.version> |
102 | 102 | <central-publishing-maven-plugin.version>0.9.0</central-publishing-maven-plugin.version> |
| 103 | + <build-helper-maven-plugin.version>3.6.2</build-helper-maven-plugin.version> |
103 | 104 | </properties> |
104 | 105 |
|
105 | 106 | <dependencyManagement> |
|
109 | 110 | <artifactId>exceptionless-core</artifactId> |
110 | 111 | <version>${project.version}</version> |
111 | 112 | </dependency> |
112 | | - <dependency> |
113 | | - <!-- Shared test helpers (FakeServer, TestClients); see exceptionless-core/pom.xml. --> |
114 | | - <groupId>com.exceptionless</groupId> |
115 | | - <artifactId>exceptionless-core</artifactId> |
116 | | - <version>${project.version}</version> |
117 | | - <type>test-jar</type> |
118 | | - <scope>test</scope> |
119 | | - </dependency> |
120 | 113 | <dependency> |
121 | 114 | <groupId>com.exceptionless</groupId> |
122 | 115 | <artifactId>exceptionless-jul</artifactId> |
|
257 | 250 | <artifactId>jacoco-maven-plugin</artifactId> |
258 | 251 | <version>${jacoco-maven-plugin.version}</version> |
259 | 252 | </plugin> |
| 253 | + <plugin> |
| 254 | + <!-- Compiles the shared test helpers (FakeServer, TestClients) into a module's tests. |
| 255 | + Modules opt in by declaring the plugin. Sharing the source instead of a test-jar |
| 256 | + keeps the helpers out of the published artifacts. --> |
| 257 | + <groupId>org.codehaus.mojo</groupId> |
| 258 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 259 | + <version>${build-helper-maven-plugin.version}</version> |
| 260 | + <executions> |
| 261 | + <execution> |
| 262 | + <id>add-test-fixtures</id> |
| 263 | + <phase>generate-test-sources</phase> |
| 264 | + <goals> |
| 265 | + <goal>add-test-source</goal> |
| 266 | + </goals> |
| 267 | + <configuration> |
| 268 | + <sources> |
| 269 | + <source>${project.basedir}/../exceptionless-core/src/testFixtures/java</source> |
| 270 | + </sources> |
| 271 | + </configuration> |
| 272 | + </execution> |
| 273 | + </executions> |
| 274 | + </plugin> |
260 | 275 | <plugin> |
261 | 276 | <groupId>org.springframework.boot</groupId> |
262 | 277 | <artifactId>spring-boot-maven-plugin</artifactId> |
|
353 | 368 | <version>${spotless-maven-plugin.version}</version> |
354 | 369 | <configuration> |
355 | 370 | <java> |
| 371 | + <includes> |
| 372 | + <include>src/*/java/**/*.java</include> |
| 373 | + </includes> |
356 | 374 | <googleJavaFormat> |
357 | 375 | <version>${google-java-format.version}</version> |
358 | 376 | </googleJavaFormat> |
|
0 commit comments