git-hooks-maven-plugin
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>io.github.pepperkit</groupId> <artifactId>git-hooks-maven-plugin</artifactId> <version>1.1.0</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>io.github.pepperkit</groupId> <artifactId>git-hooks-maven-plugin</artifactId> <version>1.1.0</version> <packaging>maven-plugin</packaging> <name>Git Hooks Maven Plugin</name> <description>Maven plugin, which enables control on git hooks via easy configuration.</description> <url>https://github.com/pepperkit</url> <licenses> <license> <name>MIT License</name> <url>http://www.opensource.org/licenses/mit-license.php</url> </license> </licenses> <developers> <developer> <name>Ilia Voloshanovskii</name> <email>ilyavy.inno@gmail.com</email> <organization>PepperKit</organization> <organizationUrl>https://pepperkit.github.io/</organizationUrl> </developer> </developers> <scm> <connection>scm:git:git://github.com/pepperkit/git-hooks-maven-plugin.git</connection> <developerConnection>scm:git:ssh://github.com:pepperkit/git-hooks-maven-plugin.git</developerConnection> <url>https://github.com/pepperkit/git-hooks-maven-plugin/tree/master</url> </scm> <distributionManagement> <snapshotRepository> <id>ossrh</id> <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> <repository> <id>ossrh</id> <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> </repository> </distributionManagement> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <sonar.projectKey>pepperkit_git-hooks-maven-plugin</sonar.projectKey> <sonar.organization>pepperkit</sonar.organization> <sonar.host.url>https://sonarcloud.io</sonar.host.url> <!-- Test Dependencies --> <junit-jupiter.version>5.10.0</junit-jupiter.version> <testcontainers.version>1.18.3</testcontainers.version> <cucumber.version>7.13.0</cucumber.version> <!-- Plugins --> <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version> <build-helper-maven-plugin.version>3.4.0</build-helper-maven-plugin.version> <maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version> <checkstyle-plugin.version>3.3.0</checkstyle-plugin.version> <checkstyle.url> https://raw.githubusercontent.com/pepperkit/checkstyle/v1.0.2-9.2/checkstyle.xml </checkstyle.url> <jacoco-plugin.version>0.8.10</jacoco-plugin.version> <!-- Excluded since is tested via system tests. --> <sonar.exclusions>**GitHooksManager.java</sonar.exclusions> <itest-name-template>**/*SysTest.java</itest-name-template> </properties> <dependencies> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> <version>3.9.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven.plugin-tools</groupId> <artifactId>maven-plugin-annotations</artifactId> <version>3.9.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>net.lingala.zip4j</groupId> <artifactId>zip4j</artifactId> <version>2.11.5</version> </dependency> <!-- Testing --> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>${junit-jupiter.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter</artifactId> <version>${junit-jupiter.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <version>5.4.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <version>3.24.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.testcontainers</groupId> <artifactId>testcontainers</artifactId> <version>${testcontainers.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.testcontainers</groupId> <artifactId>junit-jupiter</artifactId> <version>${testcontainers.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-junit-platform-engine</artifactId> <version>${cucumber.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-java</artifactId> <version>${cucumber.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-suite</artifactId> <version>1.10.0</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <version>3.9.0</version> </plugin> <!-- Source sets --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>${build-helper-maven-plugin.version}</version> <executions> <execution> <id>system-tests-source</id> <phase>generate-test-sources</phase> <goals> <goal>add-test-source</goal> </goals> <configuration> <sources> <source>src/system-test/java</source> </sources> </configuration> </execution> <execution> <id>system-tests-resources</id> <phase>generate-test-resources</phase> <goals> <goal>add-test-resource</goal> </goals> <configuration> <resources> <resource> <directory>src/system-test/resources</directory> </resource> </resources> </configuration> </execution> </executions> </plugin> <!-- Static analysis --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>${checkstyle-plugin.version}</version> <dependencies> <dependency> <groupId>com.puppycrawl.tools</groupId> <artifactId>checkstyle</artifactId> <version>10.12.2</version> </dependency> </dependencies> <configuration> <configLocation>${checkstyle.url}</configLocation> <consoleOutput>true</consoleOutput> <failsOnError>true</failsOnError> <linkXRef>false</linkXRef> </configuration> </plugin> <!-- Testing --> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>3.1.2</version> <configuration> <excludes> <exclude>**/*SysTest.java</exclude> </excludes> </configuration> </plugin> <plugin> <artifactId>maven-failsafe-plugin</artifactId> <version>3.1.2</version> <configuration> <includes> <include>${itest-name-template}</include> </includes> </configuration> <executions> <execution> <id>integration-test</id> <goals> <goal>integration-test</goal> </goals> </execution> <execution> <id>verify</id> <phase>verify</phase> <goals> <goal>verify</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>${jacoco-plugin.version}</version> <executions> <execution> <id>default-prepare-agent</id> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>default-report</id> <phase>verify</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> <!-- Building artifacts --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.3.0</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.5.0</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>3.1.0</version> <executions> <execution> <id>sign-artifacts</id> <phase>install</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>io.github.pepperkit</groupId> <artifactId>git-hooks-maven-plugin</artifactId> <version>1.1.0</version> <configuration> <hooks> <pre-commit>mvn -B checkstyle:checkstyle</pre-commit> <pre-push>mvn -B test</pre-push> </hooks> </configuration> </plugin> </plugins> </build> </project>