java-watch
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>engineering.swat</groupId> <artifactId>java-watch</artifactId> <version>0.5.0</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- BSD 2-Clause License Copyright (c) 2023, Swat.engineering Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --> <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>engineering.swat</groupId> <artifactId>java-watch</artifactId> <version>0.5.0</version> <packaging>jar</packaging> <name>${project.groupId}:${project.artifactId}</name> <description>A java file watcher that works across platforms and supports recursion, single file watches, and tries to make sure no events are missed. Where possible it uses Java's NIO WatchService.</description> <url>https://github.com/SWAT-engineering/java-watch</url> <licenses> <license> <name>BSD-2-Clause</name> <url>https://opensource.org/license/BSD-2-Clause</url> <distribution>repo</distribution> </license> </licenses> <developers> <developer> <name>Davy Landman</name> <email>davy.landman@swat.engineering</email> <organization>swat.engineering</organization> <organizationUrl>https://www.swat.engineering</organizationUrl> </developer> <developer> <name>Sung-Shik Jongmans</name> <email>sung-shik.jongmans@swat.engineering</email> <organization>swat.engineering</organization> <organizationUrl>https://www.swat.engineering</organizationUrl> </developer> </developers> <scm> <connection>scm:git:git://github.com/SWAT-engineering/java-watch.git</connection> <developerConnection>scm:git:ssh://git@github.com/SWAT-engineering/java-watch.git</developerConnection> <url>https://github.com/SWAT-engineering/java-watch/tree/main/</url> <tag>v0.5.0</tag> </scm> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <checkerframework.version>3.42.0</checkerframework.version> <junit.version>5.10.2</junit.version> <log4j.version>2.23.0</log4j.version> <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target> </properties> <build> <plugins> <plugin> <!-- configure java compiler --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.14.0</version> <configuration> <release>11</release> <compilerArgument>-parameters</compilerArgument> </configuration> </plugin> <plugin> <!-- automate release commits --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>3.1.1</version> <configuration> <tagNameFormat>v@{project.version}</tagNameFormat> <!-- do not use the build in release profile, we invoke it later --> <releaseProfiles /> </configuration> </plugin> <plugin> <!-- unit test integration --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.5.3</version> </plugin> <plugin> <!-- code coverage --> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.13</version> <executions> <execution> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>report</id> <phase>test</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> <plugin> <!-- enforce license headers --> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId> <!-- mvn license:format adds/updates all license headers --> <version>5.0.0</version> <configuration> <licenseSets> <licenseSet> <header>LICENSE</header> <excludes> <exclude>README.md</exclude> <exclude>target/**</exclude> <exclude>.vscode/**</exclude> <exclude>.editorconfig</exclude> <exclude>.codecov.yml</exclude> </excludes> </licenseSet> </licenseSets> </configuration> <executions> <execution> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> <plugin> <!-- enforce editor config on the files --> <groupId>org.ec4j.maven</groupId> <artifactId>editorconfig-maven-plugin</artifactId> <version>0.1.3</version> <!-- run mvn editorconfig:format to fix errors reported--> <executions> <execution> <id>check</id> <phase>verify</phase> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> <plugin> <!-- use a new version of maven --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>3.5.0</version> <executions> <execution> <id>enforce-maven</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requireMavenVersion> <version>(3.9,)</version> </requireMavenVersion> </rules> </configuration> </execution> </executions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-params</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.awaitility</groupId> <artifactId>awaitility</artifactId> <version>4.2.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.checkerframework</groupId> <artifactId>checker-qual</artifactId> <version>${checkerframework.version}</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <version>${log4j.version}</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>${log4j.version}</version> </dependency> </dependencies> <profiles> <profile> <!-- releasing to maven central --> <id>release</id> <build> <plugins> <plugin><!-- uploading to maven central--> <groupId>org.sonatype.central</groupId> <artifactId>central-publishing-maven-plugin</artifactId> <version>0.7.0</version> <extensions>true</extensions> <configuration> <publishingServerId>central</publishingServerId> <autoPublish>true</autoPublish> </configuration> </plugin> <plugin> <!-- sign jar for maven central--> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>3.2.7</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> <plugin> <!-- generate java-doc --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.11.2</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <!-- generate sources jar --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.3.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <!-- run with: mvn clean compile -P checker-framework --> <id>checker-framework</id> <build> <plugins> <plugin> <!-- This plugin will set properties values using dependency information --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>3.8.1</version> <executions> <execution> <goals> <goal>properties</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.14.0</version> <configuration> <fork>true</fork> <release>11</release> <compilerArgs> <arg>-Xmaxerrs</arg> <arg>10000</arg> <arg>-Xmaxwarns</arg> <arg>10000</arg> <!-- we have to open up the jdk modules for checker framework to work. note if we get a modules.java this has to change--> <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg> <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg> <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg> <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg> <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg> <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg> <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg> <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg> <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg> <arg>-Astubs=src/main/checkerframework</arg> </compilerArgs> <annotationProcessorPaths> <path> <groupId>org.checkerframework</groupId> <artifactId>checker</artifactId> <version>${checkerframework.version}</version> </path> </annotationProcessorPaths> <annotationProcessors> <!-- Add all the checkers you want to enable here --> <annotationProcessor> org.checkerframework.checker.nullness.NullnessChecker </annotationProcessor> </annotationProcessors> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.checkerframework</groupId> <artifactId>checker</artifactId> <version>${checkerframework.version}</version> <scope>provided</scope> </dependency> </dependencies> </profile> </profiles> </project>