Skip to content

Commit d67f6c9

Browse files
committed
DATAGRAPH-1328 - Align checkstyle config to override parent configuration with Neo4j checkstyle rules.
1 parent b4221ec commit d67f6c9

File tree

2 files changed

+22
-38
lines changed

2 files changed

+22
-38
lines changed

Jenkinsfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ pipeline {
105105
steps {
106106
sh 'mkdir -p /tmp/jenkins-home'
107107
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,artifactory ' +
108-
'-Drunning-on-ci ' +
109108
'-Dartifactory.server=https://repo.spring.io ' +
110109
"-Dartifactory.username=${ARTIFACTORY_USR} " +
111110
"-Dartifactory.password=${ARTIFACTORY_PSW} " +
@@ -135,7 +134,6 @@ pipeline {
135134

136135
steps {
137136
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,distribute ' +
138-
'-Drunning-on-ci ' +
139137
'-Dartifactory.server=https://repo.spring.io ' +
140138
"-Dartifactory.username=${ARTIFACTORY_USR} " +
141139
"-Dartifactory.password=${ARTIFACTORY_PSW} " +

pom.xml

Lines changed: 22 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,28 @@
522522
<groupId>org.apache.maven.plugins</groupId>
523523
<artifactId>maven-assembly-plugin</artifactId>
524524
</plugin>
525+
<plugin>
526+
<groupId>org.apache.maven.plugins</groupId>
527+
<artifactId>maven-checkstyle-plugin</artifactId>
528+
<executions>
529+
<execution>
530+
<id>validate</id>
531+
<phase>validate</phase>
532+
<goals>
533+
<goal>check</goal>
534+
</goals>
535+
</execution>
536+
</executions>
537+
<configuration combine.self="override">
538+
<configLocation>${project.basedir}/etc/checkstyle/config.xml</configLocation>
539+
<suppressionsLocation>${project.basedir}/etc/checkstyle/suppressions.xml</suppressionsLocation>
540+
<headerLocation>${project.basedir}/etc/checkstyle/java-header.txt</headerLocation>
541+
<encoding>${project.build.sourceEncoding}</encoding>
542+
<consoleOutput>true</consoleOutput>
543+
<failsOnError>true</failsOnError>
544+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
545+
</configuration>
546+
</plugin>
525547
<plugin>
526548
<groupId>org.jacoco</groupId>
527549
<artifactId>jacoco-maven-plugin</artifactId>
@@ -742,40 +764,4 @@
742764
</pluginRepository>
743765
</pluginRepositories>
744766

745-
<profiles>
746-
<profile>
747-
<id>always-but-ci</id>
748-
<activation>
749-
<property>
750-
<name>!running-on-ci</name>
751-
</property>
752-
</activation>
753-
<build>
754-
<plugins>
755-
<plugin>
756-
<groupId>org.apache.maven.plugins</groupId>
757-
<artifactId>maven-checkstyle-plugin</artifactId>
758-
<executions>
759-
<execution>
760-
<id>validate</id>
761-
<phase>validate</phase>
762-
<goals>
763-
<goal>check</goal>
764-
</goals>
765-
</execution>
766-
</executions>
767-
<configuration>
768-
<configLocation>${project.basedir}/etc/checkstyle/config.xml</configLocation>
769-
<suppressionsLocation>${project.basedir}/etc/checkstyle/suppressions.xml</suppressionsLocation>
770-
<headerLocation>${project.basedir}/etc/checkstyle/java-header.txt</headerLocation>
771-
<encoding>${project.build.sourceEncoding}</encoding>
772-
<consoleOutput>true</consoleOutput>
773-
<failsOnError>true</failsOnError>
774-
<includeTestSourceDirectory>true</includeTestSourceDirectory>
775-
</configuration>
776-
</plugin>
777-
</plugins>
778-
</build>
779-
</profile>
780-
</profiles>
781767
</project>

0 commit comments

Comments
 (0)