Skip to content

How to use Checkstyle snapshot artifacts

Roman Ivanov edited this page Aug 28, 2020 · 10 revisions

Artifacts are at https://oss.sonatype.org/content/repositories/snapshots/com/puppycrawl/tools/checkstyle/

just update your pom.xml with

<project>
  ....
  <!-- this section is used if you use checkstyle in 'project/dependencies'  -->
  <repositories>
    ...
    <repository>
      <id>oss.sonatype.org</id>
      <url>http://oss.sonatype.org/content/repositories/snapshots</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
    ...
  </repositories>
  ...
  <!-- this section is used if you use checkstyle in 'project/build/plugins' -->
  <pluginRepositories>
    .... 
    <pluginRepository>
      <id>oss.sonatype.org</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
      <snapshots>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy>
      </snapshots>
    </pluginRepository>
    ...
  </pluginRepositories>
  ...
</project>

usage (to get latest):

  <dependency>
    <groupId>com.puppycrawl.tools</groupId>
    <artifactId>checkstyle</artifactId>
    <version>8.36-SNAPSHOT</version>
  </dependency>

or (very very exact version for file checkstyle-8.36-20200828.031041-135.jar)

  <dependency>
    <groupId>com.puppycrawl.tools</groupId>
    <artifactId>checkstyle</artifactId>
    <version>8.36-20200828.031041-135</version>
  </dependency>
Clone this wiki locally