|
55 | 55 | <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
56 | 56 | <maven-javadoc-plugin.version>3.12.0</maven-javadoc-plugin.version> |
57 | 57 | <maven-release-plugin.version>3.3.1</maven-release-plugin.version> |
| 58 | + <maven-jar-plugin.version>3.4.2</maven-jar-plugin.version> |
58 | 59 | </properties> |
59 | 60 |
|
60 | 61 | <dependencyManagement> |
|
191 | 192 | <localCheckout>true</localCheckout> |
192 | 193 | </configuration> |
193 | 194 | </plugin> |
| 195 | + <plugin> |
| 196 | + <groupId>org.apache.maven.plugins</groupId> |
| 197 | + <artifactId>maven-jar-plugin</artifactId> |
| 198 | + <version>${maven-jar-plugin.version}</version> |
| 199 | + <executions> |
| 200 | + <!-- Resource-only native modules carry no Java sources. Attach |
| 201 | + empty javadoc/sources jars (from non-existent dirs) so Maven |
| 202 | + Central's "javadoc + sources required" validation passes. --> |
| 203 | + <execution> |
| 204 | + <id>empty-javadoc-jar</id> |
| 205 | + <phase>package</phase> |
| 206 | + <goals> |
| 207 | + <goal>jar</goal> |
| 208 | + </goals> |
| 209 | + <configuration> |
| 210 | + <classifier>javadoc</classifier> |
| 211 | + <classesDirectory>${project.build.directory}/empty-javadoc</classesDirectory> |
| 212 | + <forceCreation>true</forceCreation> |
| 213 | + </configuration> |
| 214 | + </execution> |
| 215 | + <execution> |
| 216 | + <id>empty-sources-jar</id> |
| 217 | + <phase>package</phase> |
| 218 | + <goals> |
| 219 | + <goal>jar</goal> |
| 220 | + </goals> |
| 221 | + <configuration> |
| 222 | + <classifier>sources</classifier> |
| 223 | + <classesDirectory>${project.build.directory}/empty-sources</classesDirectory> |
| 224 | + <forceCreation>true</forceCreation> |
| 225 | + </configuration> |
| 226 | + </execution> |
| 227 | + </executions> |
| 228 | + </plugin> |
194 | 229 | </plugins> |
195 | 230 | </pluginManagement> |
196 | 231 | <plugins> |
|
289 | 324 | <publishingServerId>central</publishingServerId> |
290 | 325 | <autoPublish>true</autoPublish> |
291 | 326 | <waitUntil>published</waitUntil> |
| 327 | + <excludeArtifacts> |
| 328 | + <!-- Internal modules: not published to Maven Central. --> |
| 329 | + <artifact> |
| 330 | + <groupId>io.github.dfa1.zstd</groupId> |
| 331 | + <artifactId>zstd-integration-tests</artifactId> |
| 332 | + </artifact> |
| 333 | + <artifact> |
| 334 | + <groupId>io.github.dfa1.zstd</groupId> |
| 335 | + <artifactId>zstd-benchmark</artifactId> |
| 336 | + </artifact> |
| 337 | + </excludeArtifacts> |
292 | 338 | </configuration> |
293 | 339 | </plugin> |
294 | 340 | </plugins> |
|
0 commit comments