|
569 | 569 | <jni.classifier>${cuda.version}-arm64</jni.classifier> |
570 | 570 | </properties> |
571 | 571 | </profile> |
| 572 | + <profile> |
| 573 | + <id>bloopInstall</id> |
| 574 | + <activation> |
| 575 | + <property> |
| 576 | + <name>bloopInstall</name> |
| 577 | + <value>true</value> |
| 578 | + </property> |
| 579 | + </activation> |
| 580 | + <properties> |
| 581 | + <skipTests>true</skipTests> |
| 582 | + <maven.scaladoc.skip>true</maven.scaladoc.skip> |
| 583 | + <maven.scalastyle.skip>true</maven.scalastyle.skip> |
| 584 | + </properties> |
| 585 | + <build> |
| 586 | + <plugins> |
| 587 | + <plugin> |
| 588 | + <groupId>org.apache.maven.plugins</groupId> |
| 589 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 590 | + <executions> |
| 591 | + <execution> |
| 592 | + <id>enforce-bloop-rules</id> |
| 593 | + <goals><goal>enforce</goal></goals> |
| 594 | + <configuration> |
| 595 | + <rules> |
| 596 | + <requireJavaVersion> |
| 597 | + <message>Metals semantic database requires JAVA_HOME pointing to JDK 11+, actual Java version: ${java.version}</message> |
| 598 | + <version>[11,)</version> |
| 599 | + </requireJavaVersion> |
| 600 | + </rules> |
| 601 | + </configuration> |
| 602 | + </execution> |
| 603 | + </executions> |
| 604 | + </plugin> |
| 605 | + <plugin> |
| 606 | + <groupId>ch.epfl.scala</groupId> |
| 607 | + <artifactId>bloop-maven-plugin</artifactId> |
| 608 | + <executions> |
| 609 | + <execution> |
| 610 | + <id>generate-bloop-projects</id> |
| 611 | + <goals><goal>bloopInstall</goal></goals> |
| 612 | + <phase>${bloop.installPhase}</phase> |
| 613 | + <configuration> |
| 614 | + <!-- Metals looks at the repo root. so to accomodate scala 2.13 define --> |
| 615 | + <bloopConfigDir>${bloop.configDirectory}</bloopConfigDir> |
| 616 | + </configuration> |
| 617 | + </execution> |
| 618 | + </executions> |
| 619 | + </plugin> |
| 620 | + </plugins> |
| 621 | + </build> |
| 622 | + </profile> |
572 | 623 | </profiles> |
573 | 624 |
|
574 | 625 | <properties> |
|
655 | 706 | <scala.local-lib.path>org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.jar</scala.local-lib.path> |
656 | 707 | <target.classifier>${spark.version.classifier}</target.classifier> |
657 | 708 | <maven.clean.plugin.version>3.1.0</maven.clean.plugin.version> |
| 709 | + <maven.scaladoc.skip>false</maven.scaladoc.skip> |
658 | 710 | <maven.scalastyle.skip>false</maven.scalastyle.skip> |
659 | 711 | <dist.jar.compress>true</dist.jar.compress> |
660 | 712 | <spark330.iceberg.version>0.14.1</spark330.iceberg.version> |
|
765 | 817 | -Djdk.reflect.useDirectMethodHandle=false |
766 | 818 | </extraJavaTestArgs> |
767 | 819 | <cloudera.repo.enabled>false</cloudera.repo.enabled> |
| 820 | + <bloop.installPhase>install</bloop.installPhase> |
| 821 | + <bloop.configDirectory>${spark.rapids.source.basedir}/.bloop</bloop.configDirectory> |
768 | 822 | </properties> |
769 | 823 |
|
770 | 824 | <dependencyManagement> |
|
1043 | 1097 | <arg>-doc-external-doc:${settings.localRepository}/${scala.local-lib.path}#https://scala-lang.org/api/${scala.version}/</arg> |
1044 | 1098 | <arg>-doc-external-doc:${settings.localRepository}/org/apache/spark/spark-sql_${scala.binary.version}/${spark.version}/spark-sql_${scala.binary.version}-${spark.version}.jar#https://spark.apache.org/docs/${spark.version}/api/scala/index.html</arg> |
1045 | 1099 | </args> |
| 1100 | + <skip>${maven.scaladoc.skip}</skip> |
1046 | 1101 | </configuration> |
1047 | 1102 | </execution> |
1048 | 1103 | </executions> |
|
1212 | 1267 | </pluginManagement> |
1213 | 1268 |
|
1214 | 1269 | <plugins> |
| 1270 | + <plugin> |
| 1271 | + <groupId>ch.epfl.scala</groupId> |
| 1272 | + <artifactId>bloop-maven-plugin</artifactId> |
| 1273 | + <version>2.0.0</version> |
| 1274 | + <executions> |
| 1275 | + <execution> |
| 1276 | + <id>default-cli</id> |
| 1277 | + <configuration> |
| 1278 | + <skip>true</skip> |
| 1279 | + <!-- workaround: skip is not skipping --> |
| 1280 | + <bloopConfigDir>/dev/null/ERROR: Do not specify the bloop-maven-plugin on the command line. Instead invoke `mvn install -DbloopInstall ...`</bloopConfigDir> |
| 1281 | + </configuration> |
| 1282 | + </execution> |
| 1283 | + </executions> |
| 1284 | + </plugin> |
1215 | 1285 | <plugin> |
1216 | 1286 | <groupId>org.apache.maven.plugins</groupId> |
1217 | 1287 | <artifactId>maven-enforcer-plugin</artifactId> |
|
0 commit comments