Skip to content

Commit

Permalink
Skip checkstyle only when releasing
Browse files Browse the repository at this point in the history
This makes use of Maven profiles to activate skipping checkstyle only
when releasing.

Fixes jenkinsci#620
  • Loading branch information
samrocketman committed Jan 23, 2018
1 parent 43b329f commit 1ad506c
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
<timezone>America/Los_Angeles</timezone>
</developer>
</developers>

<scm>
<connection>scm:git:ssh://github.com/jenkinsci/ghprb-plugin.git</connection>
<developerConnection>scm:git:ssh://[email protected]/jenkinsci/ghprb-plugin.git</developerConnection>
<url>https://github.com/jenkinsci/ghprb-plugin</url>
<tag>HEAD</tag>
</scm>


<issueManagement>
<system>GitHub</system>
<url>https://github.com/janinko/ghprb/issues</url>
Expand All @@ -58,6 +58,18 @@
<checkstyle.plugin.version>2.17</checkstyle.plugin.version>
</properties>

<!--
Activate profiles which override properties.
-->
<profiles>
<profile>
<id>release</id>
<properties>
<checkstyle.skip>true</checkstyle.skip>
</properties>
</profile>
</profiles>

<dependencies>

<!-- added dependencies because of maven enforcer plugin -->
Expand Down Expand Up @@ -219,6 +231,10 @@
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
<configuration>
<!-- During release:perform, enable the "release" profile -->
<releaseProfiles>release</releaseProfiles>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.scm</groupId>
Expand Down

0 comments on commit 1ad506c

Please sign in to comment.