|
35 | 35 | <artifactId>java-watch</artifactId> |
36 | 36 | <version>0.0.1-SNAPSHOT</version> |
37 | 37 | <packaging>jar</packaging> |
| 38 | + |
| 39 | + <name>${project.groupId}:${project.artifactId}</name> |
| 40 | + <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> |
| 41 | + <url>https://github.com/SWAT-engineering/java-watch</url> |
| 42 | + |
38 | 43 | <licenses> |
39 | 44 | <license> |
40 | 45 | <name>BSD-2-Clause</name> |
|
43 | 48 | </license> |
44 | 49 | </licenses> |
45 | 50 |
|
| 51 | + <developers> |
| 52 | + <developer> |
| 53 | + <name>Davy Landman</name> |
| 54 | + |
| 55 | + <organization>swat.engineering</organization> |
| 56 | + <organizationUrl>https://www.swat.engineering</organizationUrl> |
| 57 | + </developer> |
| 58 | + <developer> |
| 59 | + <name>Sung-Shik Jongmans</name> |
| 60 | + |
| 61 | + <organization>swat.engineering</organization> |
| 62 | + <organizationUrl>https://www.swat.engineering</organizationUrl> |
| 63 | + </developer> |
| 64 | + </developers> |
| 65 | + |
| 66 | + <scm> |
| 67 | + <connection>scm:git:git://github.com/SWAT-engineering/java-watch.git</connection> |
| 68 | + <developerConnection>scm:git:ssh://github.com:SWAT-engineering/java-watch.git</developerConnection> |
| 69 | + <url>https://github.com/SWAT-engineering/java-watch/tree/main/</url> |
| 70 | + </scm> |
| 71 | + |
46 | 72 | <properties> |
47 | 73 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
48 | 74 | <checkerframework.version>3.42.0</checkerframework.version> |
|
54 | 80 |
|
55 | 81 | <build> |
56 | 82 | <plugins> |
57 | | - <plugin> |
| 83 | + <plugin> <!-- configure java compiler --> |
58 | 84 | <groupId>org.apache.maven.plugins</groupId> |
59 | 85 | <artifactId>maven-compiler-plugin</artifactId> |
60 | 86 | <version>3.10.1</version> |
|
63 | 89 | <compilerArgument>-parameters</compilerArgument> |
64 | 90 | </configuration> |
65 | 91 | </plugin> |
66 | | - <plugin> |
67 | | - <groupId>org.apache.maven.plugins</groupId> |
68 | | - <artifactId>maven-source-plugin</artifactId> |
69 | | - <version>3.2.1</version> |
70 | | - <executions> |
71 | | - <execution> |
72 | | - <id>attach-sources</id> |
73 | | - <goals> |
74 | | - <goal>jar</goal> |
75 | | - </goals> |
76 | | - </execution> |
77 | | - </executions> |
78 | | - </plugin> |
79 | | - <plugin> |
| 92 | + <plugin> <!-- automate release commits --> |
80 | 93 | <groupId>org.apache.maven.plugins</groupId> |
81 | 94 | <artifactId>maven-release-plugin</artifactId> |
| 95 | + <version>3.1.1</version> |
82 | 96 | <configuration> |
83 | 97 | <tagNameFormat>v@{project.version}</tagNameFormat> |
| 98 | + <!-- do not use the build in release profile, we invoke it later --> |
| 99 | + <releaseProfiles></releaseProfiles> |
84 | 100 | </configuration> |
85 | 101 | </plugin> |
86 | | - <plugin> |
87 | | - <groupId>org.apache.maven.plugins</groupId> |
88 | | - <artifactId>maven-javadoc-plugin</artifactId> |
89 | | - <version>3.4.0</version> |
90 | | - <configuration> |
91 | | - <additionalparam>-Xdoclint:none</additionalparam> |
92 | | - </configuration> |
93 | | - </plugin> |
94 | | - <plugin> |
| 102 | + <plugin> <!-- unit test integration --> |
95 | 103 | <groupId>org.apache.maven.plugins</groupId> |
96 | 104 | <artifactId>maven-surefire-plugin</artifactId> |
97 | 105 | <version>2.22.2</version> |
98 | 106 | </plugin> |
99 | | - <plugin> |
| 107 | + <plugin> <!-- code coverage --> |
100 | 108 | <groupId>org.jacoco</groupId> |
101 | 109 | <artifactId>jacoco-maven-plugin</artifactId> |
102 | 110 | <version>0.8.8</version> |
|
115 | 123 | </execution> |
116 | 124 | </executions> |
117 | 125 | </plugin> |
118 | | - <plugin> |
| 126 | + <plugin> <!-- enforce license headers --> |
119 | 127 | <groupId>com.mycila</groupId> |
120 | 128 | <artifactId>license-maven-plugin</artifactId> |
121 | 129 | <!-- mvn license:format adds/updates all license headers --> |
|
142 | 150 | </execution> |
143 | 151 | </executions> |
144 | 152 | </plugin> |
145 | | - <plugin> |
| 153 | + <plugin> <!-- enforce editor config on the files --> |
146 | 154 | <groupId>org.ec4j.maven</groupId> |
147 | 155 | <artifactId>editorconfig-maven-plugin</artifactId> |
148 | 156 | <version>0.1.3</version> |
|
197 | 205 | </dependencies> |
198 | 206 |
|
199 | 207 | <profiles> |
| 208 | + <profile> <!-- releasing to maven central --> |
| 209 | + <id>release</id> |
| 210 | + <build> |
| 211 | + <plugins> |
| 212 | + <plugin><!-- uploading to maven central--> |
| 213 | + <groupId>org.sonatype.central</groupId> |
| 214 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 215 | + <version>0.7.0</version> |
| 216 | + <extensions>true</extensions> |
| 217 | + <configuration> |
| 218 | + <publishingServerId>central</publishingServerId> |
| 219 | + </configuration> |
| 220 | + </plugin> |
| 221 | + <plugin> <!-- sign jar for maven central--> |
| 222 | + <groupId>org.apache.maven.plugins</groupId> |
| 223 | + <artifactId>maven-gpg-plugin</artifactId> |
| 224 | + <version>1.5</version> |
| 225 | + <executions> |
| 226 | + <execution> |
| 227 | + <id>sign-artifacts</id> |
| 228 | + <phase>verify</phase> |
| 229 | + <goals> |
| 230 | + <goal>sign</goal> |
| 231 | + </goals> |
| 232 | + </execution> |
| 233 | + </executions> |
| 234 | + </plugin> |
| 235 | + <plugin> <!-- generate java-doc --> |
| 236 | + <groupId>org.apache.maven.plugins</groupId> |
| 237 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 238 | + <version>3.4.0</version> |
| 239 | + <executions> |
| 240 | + <execution> |
| 241 | + <id>attach-javadocs</id> |
| 242 | + <goals> |
| 243 | + <goal>jar</goal> |
| 244 | + </goals> |
| 245 | + </execution> |
| 246 | + </executions> |
| 247 | + </plugin> |
| 248 | + <plugin> <!-- generate sources jar --> |
| 249 | + <groupId>org.apache.maven.plugins</groupId> |
| 250 | + <artifactId>maven-source-plugin</artifactId> |
| 251 | + <version>3.2.1</version> |
| 252 | + <executions> |
| 253 | + <execution> |
| 254 | + <id>attach-sources</id> |
| 255 | + <goals> |
| 256 | + <goal>jar-no-fork</goal> |
| 257 | + </goals> |
| 258 | + </execution> |
| 259 | + </executions> |
| 260 | + </plugin> |
| 261 | + </plugins> |
| 262 | + </build> |
| 263 | + </profile> |
| 264 | + |
| 265 | + |
200 | 266 | <profile> <!-- run with: mvn clean compile -P checker-framework --> |
201 | 267 | <id>checker-framework</id> |
202 | 268 | <build> |
|
0 commit comments