Skip to content
This repository was archived by the owner on Oct 8, 2020. It is now read-only.

Commit 1881642

Browse files
committed
Add scala-style profile
1 parent 9365beb commit 1881642

1 file changed

Lines changed: 13 additions & 15 deletions

File tree

pom.xml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256
</configuration>
257257
</plugin>
258258

259-
<!-- Scalastyle -->
259+
<!-- Scalastyle -->
260260
<plugin>
261261
<groupId>org.scalastyle</groupId>
262262
<artifactId>scalastyle-maven-plugin</artifactId>
@@ -392,6 +392,18 @@
392392
</plugins>
393393
</build>
394394
</profile>
395+
<!-- profile necessary for Scalastyle plugin to find the conf file -->
396+
<profile>
397+
<id>root-dir</id>
398+
<activation>
399+
<file>
400+
<exists>${project.basedir}/../../scalastyle-config.xml</exists>
401+
</file>
402+
</activation>
403+
<properties>
404+
<scalastyle.config.path>${project.basedir}/../scalastyle-config.xml</scalastyle.config.path>
405+
</properties>
406+
</profile>
395407
</profiles>
396408

397409
<distributionManagement>
@@ -407,20 +419,6 @@
407419
</snapshotRepository>
408420
</distributionManagement>
409421

410-
<!-- profile necessary for Scalastyle plugin to find the conf file -->
411-
<profile>
412-
<id>root-dir</id>
413-
<activation>
414-
<file>
415-
<exists>${project.basedir}/../../scalastyle-config.xml</exists>
416-
</file>
417-
</activation>
418-
<properties>
419-
<scalastyle.config.path>${project.basedir}/../scalastyle-config.xml</scalastyle.config.path>
420-
</properties>
421-
</profile>
422-
</profiles>
423-
424422
<repositories>
425423
<repository>
426424
<id>oss-sonatype</id>

0 commit comments

Comments
 (0)