Skip to content

Commit 114edc4

Browse files
committed
Update pom.xml with metadata and publish profile for Maven Central
1 parent f037664 commit 114edc4

1 file changed

Lines changed: 90 additions & 0 deletions

File tree

pom.xml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,34 @@
77
<groupId>io.github.doblon8</groupId>
88
<artifactId>openpnp-capture-java</artifactId>
99
<version>0.0.1</version>
10+
<packaging>jar</packaging>
11+
12+
<name>https://github.com/doblon8/openpnp-capture-java</name>
13+
<description>Java Foreign Function and Memory bindings for openpnp-capture</description>
14+
<url>https://github.com/doblon8/openpnp-capture-java</url>
15+
16+
<licenses>
17+
<license>
18+
<name>MIT License</name>
19+
<url>https://opensource.org/licenses/MIT</url>
20+
<distribution>repo</distribution>
21+
</license>
22+
</licenses>
23+
24+
<developers>
25+
<developer>
26+
<name>doblon8</name>
27+
<email>doblon8@proton.me</email>
28+
<url>https://github.com/doblon8</url>
29+
</developer>
30+
</developers>
31+
32+
<scm>
33+
<url>https://github.com/doblon8/openpnp-capture-java/tree/main</url>
34+
<connection>scm:git:git://github.com/doblon8/openpnp-capture-java.git</connection>
35+
<developerConnection>scm:git:ssh://git@github.com:doblon8/openpnp-capture-java.git</developerConnection>
36+
<tag>v0.0.1</tag>
37+
</scm>
1038

1139
<properties>
1240
<maven.compiler.source>25</maven.compiler.source>
@@ -36,4 +64,66 @@
3664
</plugins>
3765
</build>
3866

67+
<profiles>
68+
<profile>
69+
<id>publish</id>
70+
<build>
71+
<plugins>
72+
<plugin>
73+
<groupId>org.apache.maven.plugins</groupId>
74+
<artifactId>maven-source-plugin</artifactId>
75+
<version>3.3.1</version>
76+
<executions>
77+
<execution>
78+
<id>attach-sources</id>
79+
<goals>
80+
<goal>jar-no-fork</goal>
81+
</goals>
82+
</execution>
83+
</executions>
84+
</plugin>
85+
<plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-javadoc-plugin</artifactId>
88+
<version>3.12.0</version>
89+
<executions>
90+
<execution>
91+
<id>attach-javadocs</id>
92+
<goals>
93+
<goal>jar</goal>
94+
</goals>
95+
</execution>
96+
</executions>
97+
</plugin>
98+
<plugin>
99+
<groupId>org.apache.maven.plugins</groupId>
100+
<artifactId>maven-gpg-plugin</artifactId>
101+
<version>3.2.8</version>
102+
<executions>
103+
<execution>
104+
<id>sign-artifacts</id>
105+
<phase>verify</phase>
106+
<goals>
107+
<goal>sign</goal>
108+
</goals>
109+
<configuration>
110+
<keyname>${gpg.keyname}</keyname>
111+
</configuration>
112+
</execution>
113+
</executions>
114+
</plugin>
115+
<plugin>
116+
<groupId>org.sonatype.central</groupId>
117+
<artifactId>central-publishing-maven-plugin</artifactId>
118+
<version>0.9.0</version>
119+
<extensions>true</extensions>
120+
<configuration>
121+
<publishingServerId>central</publishingServerId>
122+
</configuration>
123+
</plugin>
124+
</plugins>
125+
</build>
126+
</profile>
127+
</profiles>
128+
39129
</project>

0 commit comments

Comments
 (0)