Skip to content

Latest commit

 

History

History
81 lines (73 loc) · 1.85 KB

README.md

File metadata and controls

81 lines (73 loc) · 1.85 KB

build-tools

Usage

Add repositories:

<repositories>
    <repository>
      <id>github</id>
      <name>GitHub Apache Maven Packages</name>
      <url>https://maven.pkg.github.com/ssimmie/artifact-repository</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
        <id>github</id>
        <name>GitHub Apache Maven Packages</name>
        <url>https://maven.pkg.github.com/ssimmie/artifact-repository</url>
        <releases>
          <enabled>true</enabled>
        </releases>
        <snapshots>
          <enabled>true</enabled>
        </snapshots>
    </pluginRepository>
  </pluginRepositories>

Add dependency:

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>net.ssimmie</groupId>
        <artifactId>build-tools</artifactId>
        <version>20200316.04375ea</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

Configure plugins:

<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-checkstyle-plugin</artifactId>
      <version>${maven-checkstyle-plugin.version}</version>
      <dependencies>
        <dependency>
          <groupId>net.ssimmie</groupId>
          <artifactId>build-tools</artifactId>
          <version>20200316.04375ea</version>
        </dependency>
      </dependencies>
      <configuration>
        <configLocation>ssimmie/checkstyle.xml</configLocation>
      </configuration>
      <executions>
        <execution>
          <goals>
            <goal>check</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>