Skip to content

Commit 995f954

Browse files
committed
Publish API on Maven Central
1 parent 368df95 commit 995f954

File tree

1 file changed

+130
-29
lines changed

1 file changed

+130
-29
lines changed

liquidjava-api/pom.xml

Lines changed: 130 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,44 +9,145 @@
99
<version>1.0</version>
1010
</parent>
1111

12-
<groupId>liquidjava-api</groupId>
12+
<groupId>io.github.rcosta358</groupId>
1313
<artifactId>liquidjava-api</artifactId>
14-
<version>0.0.2-SNAPSHOT</version>
14+
<version>0.0.2</version>
1515
<name>liquidjava-api</name>
16+
<description>LiquidJava API</description>
17+
<url>https://github.com/CatarinaGamboa/liquidjava</url>
1618
<packaging>jar</packaging>
1719

20+
<licenses>
21+
<license>
22+
<name>MIT License</name>
23+
<url>https://opensource.org/licenses/MIT</url>
24+
<distribution>repo</distribution>
25+
</license>
26+
</licenses>
27+
28+
<developers>
29+
<developer>
30+
<id>CatarinaGamboa</id>
31+
<name>Catarina Gamboa</name>
32+
<email>CatarinaGamboa@users.noreply.github.com</email>
33+
<url>https://github.com/CatarinaGamboa</url>
34+
</developer>
35+
<developer>
36+
<id>alcides</id>
37+
<name>Alcides Fonseca</name>
38+
<email>alcides@users.noreply.github.com</email>
39+
<url>https://github.com/alcides</url>
40+
</developer>
41+
<developer>
42+
<id>rcosta358</id>
43+
<name>Ricardo Costa</name>
44+
<email>rcosta358@users.noreply.github.com</email>
45+
<url>https://github.com/rcosta358</url>
46+
</developer>
47+
</developers>
48+
49+
<scm>
50+
<connection>scm:git:git://github.com/CatarinaGamboa/liquidjava.git</connection>
51+
<developerConnection>scm:git:ssh://github.com:CatarinaGamboa/liquidjava.git</developerConnection>
52+
<url>https://github.com/CatarinaGamboa/liquidjava/tree/main</url>
53+
</scm>
54+
1855
<build>
19-
<pluginManagement>
20-
<plugins>
21-
<!-- <plugin>
22-
<groupId>fr.inria.gforge.spoon</groupId>
23-
<artifactId>spoon-maven-plugin</artifactId>
24-
<version>3.3</version>
25-
<executions>
26-
<execution>
27-
<phase>generate-sources</phase>
28-
<goals>
29-
<goal>generate</goal>
30-
</goals>
31-
</execution>
32-
</executions>
33-
</plugin> -->
34-
<plugin>
35-
<groupId>org.apache.maven.plugins</groupId>
36-
<artifactId>maven-compiler-plugin</artifactId>
37-
<version>3.8.1</version>
38-
<configuration>
39-
<source>20</source>
40-
<target>20</target>
41-
</configuration>
42-
</plugin>
43-
</plugins>
44-
</pluginManagement>
56+
<plugins>
57+
<plugin>
58+
<groupId>org.apache.maven.plugins</groupId>
59+
<artifactId>maven-compiler-plugin</artifactId>
60+
<version>3.8.1</version>
61+
<configuration>
62+
<source>20</source>
63+
<target>20</target>
64+
</configuration>
65+
</plugin>
66+
67+
<!-- Generate source JAR -->
68+
<plugin>
69+
<groupId>org.apache.maven.plugins</groupId>
70+
<artifactId>maven-source-plugin</artifactId>
71+
<version>3.3.0</version>
72+
<executions>
73+
<execution>
74+
<id>attach-sources</id>
75+
<goals>
76+
<goal>jar-no-fork</goal>
77+
</goals>
78+
</execution>
79+
</executions>
80+
</plugin>
81+
82+
<!-- Generate Javadoc JAR -->
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-javadoc-plugin</artifactId>
86+
<version>3.6.0</version>
87+
<executions>
88+
<execution>
89+
<id>attach-javadocs</id>
90+
<goals>
91+
<goal>jar</goal>
92+
</goals>
93+
</execution>
94+
</executions>
95+
<configuration>
96+
<doclint>none</doclint>
97+
<source>20</source>
98+
</configuration>
99+
</plugin>
100+
101+
<!-- GPG Signing -->
102+
<plugin>
103+
<groupId>org.apache.maven.plugins</groupId>
104+
<artifactId>maven-gpg-plugin</artifactId>
105+
<version>3.1.0</version>
106+
<executions>
107+
<execution>
108+
<id>sign-artifacts</id>
109+
<phase>verify</phase>
110+
<goals>
111+
<goal>sign</goal>
112+
</goals>
113+
</execution>
114+
</executions>
115+
</plugin>
116+
117+
<!-- Skip default deploy -->
118+
<plugin>
119+
<groupId>org.apache.maven.plugins</groupId>
120+
<artifactId>maven-deploy-plugin</artifactId>
121+
<version>3.1.2</version>
122+
<configuration>
123+
<skip>true</skip>
124+
</configuration>
125+
</plugin>
126+
127+
<!-- Central Publishing Plugin -->
128+
<plugin>
129+
<groupId>org.sonatype.central</groupId>
130+
<artifactId>central-publishing-maven-plugin</artifactId>
131+
<version>0.9.0</version>
132+
<extensions>true</extensions>
133+
<configuration>
134+
<publishingServerId>central</publishingServerId>
135+
<!-- <autoPublish>true</autoPublish> -->
136+
</configuration>
137+
</plugin>
138+
</plugins>
45139
</build>
46140

141+
<distributionManagement>
142+
<repository>
143+
<id>central</id>
144+
<url>https://central.sonatype.com/api/v1/publisher</url>
145+
</repository>
146+
</distributionManagement>
147+
47148
<properties>
48149
<javaVersion>20</javaVersion>
49150
<maven.compiler.source>20</maven.compiler.source>
50151
<maven.compiler.target>20</maven.compiler.target>
51152
</properties>
52-
</project>
153+
</project>

0 commit comments

Comments
 (0)