|
82 | 82 | <CodeCacheSize>512m</CodeCacheSize> |
83 | 83 | <gpg.keyname>AKSW</gpg.keyname> |
84 | 84 | <owlapi.version>5.1.3</owlapi.version> |
| 85 | + <scalastyle.config.path>${project.basedir}/scalastyle-config.xml</scalastyle.config.path> |
85 | 86 | </properties> |
86 | 87 |
|
87 | 88 | <prerequisites> |
|
520 | 521 | <groupId>com.versioneye</groupId> |
521 | 522 | <artifactId>versioneye-maven-plugin</artifactId> |
522 | 523 | </plugin> |
523 | | - <!--<plugin>--> |
524 | | - <!--<groupId>org.scalastyle</groupId>--> |
525 | | - <!--<artifactId>scalastyle-maven-plugin</artifactId>--> |
526 | | - <!--<version>0.8.0</version>--> |
527 | | - <!--<configuration>--> |
528 | | - <!--<verbose>false</verbose>--> |
529 | | - <!--<failOnViolation>false</failOnViolation>--> |
530 | | - <!--<includeTestSourceDirectory>false</includeTestSourceDirectory>--> |
531 | | - <!--<failOnWarning>false</failOnWarning>--> |
532 | | - <!--<sourceDirectory>${basedir}/src/main/scala</sourceDirectory>--> |
533 | | - <!--<testSourceDirectory>${basedir}/src/test/scala</testSourceDirectory>--> |
534 | | - <!--<configLocation>scalastyle-config.xml</configLocation>--> |
535 | | - <!--<outputFile>${basedir}/target/scalastyle-output.xml</outputFile>--> |
536 | | - <!--<inputEncoding>${project.build.sourceEncoding}</inputEncoding>--> |
537 | | - <!--<outputEncoding>${project.reporting.outputEncoding}</outputEncoding>--> |
538 | | - <!--</configuration>--> |
539 | | - <!--<executions>--> |
540 | | - <!--<execution>--> |
541 | | - <!--<goals>--> |
542 | | - <!--<goal>check</goal>--> |
543 | | - <!--</goals>--> |
544 | | - <!--</execution>--> |
545 | | - <!--</executions>--> |
546 | | - <!--</plugin>--> |
| 524 | + |
| 525 | + <!-- Scalastyle --> |
| 526 | + <plugin> |
| 527 | + <groupId>org.scalastyle</groupId> |
| 528 | + <artifactId>scalastyle-maven-plugin</artifactId> |
| 529 | + <version>1.0.0</version> |
| 530 | + <configuration> |
| 531 | + <verbose>false</verbose> |
| 532 | + <failOnViolation>false</failOnViolation> |
| 533 | + <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 534 | + <failOnWarning>false</failOnWarning> |
| 535 | + <sourceDirectory>${project.basedir}/src/main/scala</sourceDirectory> |
| 536 | + <testSourceDirectory>${project.basedir}/src/test/scala</testSourceDirectory> |
| 537 | + <!-- we use a central config located in the root directory --> |
| 538 | + <configLocation>${scalastyle.config.path}</configLocation> |
| 539 | + <outputFile>${project.basedir}/scalastyle-output.xml</outputFile> |
| 540 | + <outputEncoding>UTF-8</outputEncoding> |
| 541 | + </configuration> |
| 542 | + <executions> |
| 543 | + <execution> |
| 544 | + <goals> |
| 545 | + <goal>check</goal> |
| 546 | + </goals> |
| 547 | + </execution> |
| 548 | + </executions> |
| 549 | + </plugin> |
| 550 | + |
547 | 551 | </plugins> |
548 | 552 | </build> |
549 | 553 |
|
|
668 | 672 |
|
669 | 673 | <!-- the profile used for deployment to Sonatype Maven repository --> |
670 | 674 | <profile> |
| 675 | + <!-- for Maven Central deployment --> |
671 | 676 | <id>ossrh</id> |
672 | 677 | <distributionManagement> |
673 | 678 | <repository> |
|
786 | 791 | </plugins> |
787 | 792 | </build> |
788 | 793 | </profile> |
| 794 | + |
| 795 | + <!-- for Scalastyle plugin --> |
| 796 | + <profile> |
| 797 | + <id>root-dir</id> |
| 798 | + <activation> |
| 799 | + <file> |
| 800 | + <exists>${project.basedir}/../../scalastyle-config.xml</exists> |
| 801 | + </file> |
| 802 | + </activation> |
| 803 | + <properties> |
| 804 | + <scalastyle.config.path>${project.basedir}/../scalastyle-config.xml</scalastyle.config.path> |
| 805 | + </properties> |
| 806 | + </profile> |
789 | 807 | </profiles> |
790 | 808 | </project> |
0 commit comments