Skip to content

Commit

Permalink
Make Scalastyle plugin working from parent and child modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzBuehmann committed Mar 26, 2018
1 parent defa19c commit fcb9529
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 707 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -28,3 +28,5 @@ deptree.txt
deptree.txt
# local project specific tmp folder
tmp

scalastyle-output.xml
15 changes: 14 additions & 1 deletion pom.xml
Expand Up @@ -38,6 +38,8 @@

<jetty.version>9.4.8.v20171121</jetty.version>
<mortbay.jetty.version>6.1.26</mortbay.jetty.version>

<scalastyle.config.path>${project.basedir}/scalastyle-config.xml</scalastyle.config.path>
</properties>

<scm>
Expand Down Expand Up @@ -626,7 +628,7 @@
<sourceDirectory>${project.basedir}/src/main/scala</sourceDirectory>
<testSourceDirectory>${project.basedir}/src/test/scala</testSourceDirectory>
<!-- we use a central config located in the root directory -->
<configLocation>${project.basedir}/../scalastyle-config.xml</configLocation>
<configLocation>${scalastyle.config.path}</configLocation>
<outputFile>${project.basedir}/scalastyle-output.xml</outputFile>
<outputEncoding>UTF-8</outputEncoding>
</configuration>
Expand Down Expand Up @@ -659,6 +661,17 @@
</distributionManagement>

<profiles>
<profile>
<id>root-dir</id>
<activation>
<file>
<exists>${project.basedir}/../../scalastyle-config.xml</exists>
</file>
</activation>
<properties>
<scalastyle.config.path>${project.basedir}/../scalastyle-config.xml</scalastyle.config.path>
</properties>
</profile>
<profile>
<id>doclint-java8-disable</id>
<activation>
Expand Down

0 comments on commit fcb9529

Please sign in to comment.