Skip to content

Common build tool configurations

License

Notifications You must be signed in to change notification settings

ssimmie/build-tools

Repository files navigation

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>

Releases

No releases published

Packages

No packages published