|
54 | 54 | <junit.version>4.13.1</junit.version>
|
55 | 55 | <scalatest.version>3.0.9</scalatest.version>
|
56 | 56 |
|
| 57 | + <genjavadoc-plugin.version>0.16</genjavadoc-plugin.version> |
57 | 58 | <go-offline-maven-plugin.version>1.2.7</go-offline-maven-plugin.version>
|
58 | 59 | <!-- TODO: cleanup any redundant ignores now also in the 4.0 release (once final) -->
|
59 | 60 | <license-maven-plugin.version>4.0.rc2</license-maven-plugin.version>
|
|
193 | 194 | </dependencies>
|
194 | 195 |
|
195 | 196 | <build>
|
| 197 | + <sourceDirectory>${project.basedir}/src/main/scala</sourceDirectory> |
| 198 | + <testSourceDirectory>${project.basedir}/src/test/scala</testSourceDirectory> |
196 | 199 | <pluginManagement>
|
197 | 200 | <plugins>
|
198 | 201 | <!-- mvn -N io.takari:maven:wrapper generates the ./mvnw script -->
|
|
220 | 223 | <type>signature</type>
|
221 | 224 | <repositoryType>MAIN</repositoryType>
|
222 | 225 | </DynamicDependency>
|
| 226 | + <DynamicDependency> |
| 227 | + <groupId>com.typesafe.genjavadoc</groupId> |
| 228 | + <artifactId>genjavadoc-plugin_${scala-library.version}</artifactId> |
| 229 | + <version>${genjavadoc-plugin.version}</version> |
| 230 | + <repositoryType>MAIN</repositoryType> |
| 231 | + </DynamicDependency> |
223 | 232 | <DynamicDependency>
|
224 | 233 | <groupId>com.mycila</groupId>
|
225 | 234 | <artifactId>license-maven-plugin-git</artifactId>
|
|
349 | 358 | </executions>
|
350 | 359 | </plugin>
|
351 | 360 |
|
352 |
| - <plugin> |
353 |
| - <artifactId>maven-invoker-plugin</artifactId> |
354 |
| - <version>3.2.1</version> |
355 |
| - <configuration> |
356 |
| - <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> |
357 |
| - <settingsFile>${main.basedir}/src/it/settings.xml</settingsFile> |
358 |
| - <profiles> |
359 |
| - <profile>!release</profile> |
360 |
| - </profiles> |
361 |
| - <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath> |
362 |
| - <postBuildHookScript>verify</postBuildHookScript> |
363 |
| - <addTestClassPath>true</addTestClassPath> |
364 |
| - <skipInvocation>${skipTests}</skipInvocation> |
365 |
| - <streamLogs>true</streamLogs> |
366 |
| - <mavenOpts>-Dorg.slf4j.simpleLogger.defaultLogLevel=WARN</mavenOpts> |
367 |
| - </configuration> |
368 |
| - <executions> |
369 |
| - <execution> |
370 |
| - <goals> |
371 |
| - <goal>install</goal> |
372 |
| - <goal>run</goal> |
373 |
| - </goals> |
374 |
| - </execution> |
375 |
| - </executions> |
376 |
| - </plugin> |
377 |
| - |
378 | 361 | <plugin>
|
379 | 362 | <groupId>com.mycila</groupId>
|
380 | 363 | <artifactId>license-maven-plugin</artifactId>
|
|
486 | 469 | </executions>
|
487 | 470 | </plugin>
|
488 | 471 |
|
| 472 | + <!-- Creates source jar --> |
489 | 473 | <plugin>
|
490 |
| - <artifactId>maven-enforcer-plugin</artifactId> |
| 474 | + <artifactId>maven-source-plugin</artifactId> |
| 475 | + <version>3.2.1</version> |
491 | 476 | <executions>
|
492 | 477 | <execution>
|
493 |
| - <id>enforce-java</id> |
| 478 | + <id>attach-sources</id> |
494 | 479 | <goals>
|
495 |
| - <goal>enforce</goal> |
| 480 | + <goal>jar</goal> |
| 481 | + </goals> |
| 482 | + </execution> |
| 483 | + </executions> |
| 484 | + </plugin> |
| 485 | + |
| 486 | + <plugin> |
| 487 | + <groupId>org.scala-tools</groupId> |
| 488 | + <artifactId>maven-scala-plugin</artifactId> |
| 489 | + <version>2.15.2</version> |
| 490 | + <executions> |
| 491 | + <execution> |
| 492 | + <id>scala-compile-first</id> |
| 493 | + <phase>prepare-package</phase> |
| 494 | + <goals> |
| 495 | + <goal>compile</goal> |
496 | 496 | </goals>
|
497 | 497 | <configuration>
|
498 |
| - <rules> |
499 |
| - <!-- JDK 12+ can no longer generate Java 1.6 bytecode, so we require JDK 11. |
500 |
| - https://www.oracle.com/java/technologies/javase/12-relnote-issues.html --> |
501 |
| - <requireJavaVersion> |
502 |
| - <version>[11,12)</version> |
503 |
| - </requireJavaVersion> |
504 |
| - </rules> |
| 498 | + <args> |
| 499 | + <arg>-P:genjavadoc:out=${project.build.directory}/genjavadoc</arg> |
| 500 | + </args> |
| 501 | + <compilerPlugins> |
| 502 | + <compilerPlugin> |
| 503 | + <groupId>com.typesafe.genjavadoc</groupId> |
| 504 | + <artifactId>genjavadoc-plugin_${scala-library.version}</artifactId> |
| 505 | + <version>${genjavadoc-plugin.version}</version> |
| 506 | + </compilerPlugin> |
| 507 | + </compilerPlugins> |
505 | 508 | </configuration>
|
506 | 509 | </execution>
|
507 | 510 | </executions>
|
508 | 511 | </plugin>
|
509 | 512 |
|
510 |
| - <!-- Creates source jar --> |
511 | 513 | <plugin>
|
512 |
| - <artifactId>maven-source-plugin</artifactId> |
513 |
| - <version>3.2.1</version> |
| 514 | + <groupId>org.codehaus.mojo</groupId> |
| 515 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 516 | + <version>3.2.0</version> |
514 | 517 | <executions>
|
515 | 518 | <execution>
|
516 |
| - <id>attach-sources</id> |
| 519 | + <phase>package</phase> |
517 | 520 | <goals>
|
518 |
| - <goal>jar</goal> |
| 521 | + <goal>add-source</goal> |
519 | 522 | </goals>
|
| 523 | + <configuration> |
| 524 | + <sources> |
| 525 | + <source>${project.build.directory}/genjavadoc</source> |
| 526 | + </sources> |
| 527 | + </configuration> |
520 | 528 | </execution>
|
521 | 529 | </executions>
|
522 | 530 | </plugin>
|
|
0 commit comments