|
180 | 180 |
|
181 | 181 | </dependencies> |
182 | 182 |
|
183 | | - <profiles> |
184 | | - <profile> |
185 | | - <!-- We need 2 profile scala_2.13 & scala_NOT_2.13 to Cross-building custom scala collections. |
186 | | - See https://docs.scala-lang.org/overviews/core/custom-collections.html#appendix-cross-building-custom-collections --> |
187 | | - <id>scala_2.13</id> |
188 | | - <activation> |
189 | | - <property> |
190 | | - <name>scala.compat.version</name> |
191 | | - <value>2.13</value> |
192 | | - </property> |
193 | | - </activation> |
194 | | - <build> |
195 | | - <plugins> |
196 | | - <plugin> |
197 | | - <groupId>org.codehaus.mojo</groupId> |
198 | | - <artifactId>build-helper-maven-plugin</artifactId> |
199 | | - <executions> |
200 | | - <execution> |
201 | | - <id>add-source</id> |
202 | | - <phase>generate-sources</phase> |
203 | | - <goals> |
204 | | - <goal>add-source</goal> |
205 | | - </goals> |
206 | | - <configuration> |
207 | | - <sources> |
208 | | - <source>src/main/scala-2.13+</source> |
209 | | - </sources> |
210 | | - </configuration> |
211 | | - </execution> |
212 | | - </executions> |
213 | | - </plugin> |
214 | | - </plugins> |
215 | | - </build> |
216 | | - </profile> |
217 | | - <profile> |
218 | | - <id>scala_NOT_2.13</id> |
219 | | - <activation> |
220 | | - <property> |
221 | | - <name>scala.compat.version</name> |
222 | | - <value>!2.13</value> |
223 | | - </property> |
224 | | - </activation> |
225 | | - <build> |
226 | | - <plugins> |
227 | | - <plugin> |
228 | | - <groupId>org.codehaus.mojo</groupId> |
229 | | - <artifactId>build-helper-maven-plugin</artifactId> |
230 | | - <executions> |
231 | | - <execution> |
232 | | - <id>add-source</id> |
233 | | - <phase>generate-sources</phase> |
234 | | - <goals> |
235 | | - <goal>add-source</goal> |
236 | | - </goals> |
237 | | - <configuration> |
238 | | - <sources> |
239 | | - <source>src/main/scala-2.13-</source> |
240 | | - </sources> |
241 | | - </configuration> |
242 | | - </execution> |
243 | | - </executions> |
244 | | - </plugin> |
245 | | - </plugins> |
246 | | - </build> |
247 | | - </profile> |
248 | | - </profiles> |
249 | | - |
250 | 183 | <build> |
251 | 184 | <sourceDirectory>src/main/scala</sourceDirectory> |
252 | 185 | <testSourceDirectory>src/test/scala</testSourceDirectory> |
|
430 | 363 | <version>${build-helper-maven-plugin.version}</version> |
431 | 364 | <executions> |
432 | 365 | <execution> |
| 366 | + <!-- Required for cross-building custom scala collections. |
| 367 | + See https://docs.scala-lang.org/overviews/core/custom-collections.html#appendix-cross-building-custom-collections --> |
| 368 | + <id>add-version-specific-source</id> |
| 369 | + <phase>generate-sources</phase> |
| 370 | + <goals> |
| 371 | + <goal>add-source</goal> |
| 372 | + </goals> |
| 373 | + <configuration> |
| 374 | + <sources> |
| 375 | + <source>${scala.version-specific.src}</source> |
| 376 | + </sources> |
| 377 | + </configuration> |
| 378 | + </execution> |
| 379 | + <execution> |
| 380 | + <id>add-integration-test-sources</id> |
433 | 381 | <phase>generate-test-sources</phase> |
434 | 382 | <goals> |
435 | 383 | <goal>add-test-source</goal> |
|
0 commit comments