Skip to content

Commit f4b9834

Browse files
committed
Prepare for Maven Central
1 parent eb31bb8 commit f4b9834

File tree

6 files changed

+120
-447
lines changed

6 files changed

+120
-447
lines changed

pom.xml

Lines changed: 99 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,41 @@
1212

1313
<name>zebra4j</name>
1414
<url>https://github.com/murfffi/zebra4j</url>
15+
<description>zebra4j is a generator and solver library for Zebra puzzles, also knows as "logic grid puzzles".</description>
1516
<organization>
1617
<name>Marin Nozhchev</name>
1718
<url>https://github.com/murfffi</url>
1819
</organization>
1920
<inceptionYear>2020</inceptionYear>
2021

22+
<developers>
23+
<developer>
24+
<id>murfffi</id>
25+
<email>murfffi@gmail.com</email>
26+
<name>Marin Nozhchev</name>
27+
<timezone>2</timezone>
28+
<organizationUrl>https://github.com/murfffi</organizationUrl>
29+
</developer>
30+
</developers>
31+
32+
<issueManagement>
33+
<system>GitHub Issues</system>
34+
<url>https://github.com/murfffi/zebra4j/issues</url>
35+
</issueManagement>
36+
37+
<licenses>
38+
<license>
39+
<name>GNU Affero General Public License, Version 3</name>
40+
<distribution>repo</distribution>
41+
<url>https://www.gnu.org/licenses/agpl-3.0.en.html</url>
42+
</license>
43+
</licenses>
44+
2145
<properties>
2246
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23-
<maven.compiler.source>1.8</maven.compiler.source>
24-
<maven.compiler.target>1.8</maven.compiler.target>
2547
<exec.mainClass>zebra4j.Cli</exec.mainClass>
48+
<lombok.version>1.18.18</lombok.version>
49+
<delombok.output>${project.build.directory}/generated-sources/delombok</delombok.output>
2650
</properties>
2751

2852
<dependencies>
@@ -50,7 +74,7 @@
5074
<dependency>
5175
<groupId>org.projectlombok</groupId>
5276
<artifactId>lombok</artifactId>
53-
<version>1.18.18</version>
77+
<version>${lombok.version}</version>
5478
<scope>provided</scope>
5579
</dependency>
5680
<dependency>
@@ -91,10 +115,6 @@
91115
<artifactId>maven-resources-plugin</artifactId>
92116
<version>3.2.0</version>
93117
</plugin>
94-
<plugin>
95-
<artifactId>maven-compiler-plugin</artifactId>
96-
<version>3.8.1</version>
97-
</plugin>
98118
<plugin>
99119
<artifactId>maven-surefire-plugin</artifactId>
100120
<version>2.22.2</version>
@@ -114,6 +134,13 @@
114134
</plugins>
115135
</pluginManagement>
116136
<plugins>
137+
<plugin>
138+
<artifactId>maven-compiler-plugin</artifactId>
139+
<version>3.8.1</version>
140+
<configuration>
141+
<release>8</release>
142+
</configuration>
143+
</plugin>
117144
<plugin>
118145
<groupId>org.apache.maven.plugins</groupId>
119146
<artifactId>maven-enforcer-plugin</artifactId>
@@ -274,11 +301,64 @@
274301
<executions>
275302
<execution>
276303
<id>attach-sources</id>
304+
<goals>
305+
<goal>jar-no-fork</goal>
306+
</goals>
307+
</execution>
308+
</executions>
309+
</plugin>
310+
<plugin>
311+
<!-- https://stackoverflow.com/a/51947792/1551798 -->
312+
<groupId>org.projectlombok</groupId>
313+
<artifactId>lombok-maven-plugin</artifactId>
314+
<version>${lombok.version}.0</version>
315+
<configuration>
316+
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
317+
<outputDirectory>${delombok.output}</outputDirectory>
318+
<addOutputDirectory>false</addOutputDirectory>
319+
</configuration>
320+
<executions>
321+
<execution>
322+
<phase>generate-sources</phase>
323+
<goals>
324+
<goal>delombok</goal>
325+
</goals>
326+
</execution>
327+
</executions>
328+
</plugin>
329+
<plugin>
330+
<groupId>org.apache.maven.plugins</groupId>
331+
<artifactId>maven-javadoc-plugin</artifactId>
332+
<version>3.2.0</version>
333+
<executions>
334+
<execution>
335+
<id>attach-javadocs</id>
277336
<goals>
278337
<goal>jar</goal>
279338
</goals>
280339
</execution>
281340
</executions>
341+
<configuration>
342+
<sourcepath>${delombok.output}</sourcepath>
343+
<source>8</source>
344+
<detectJavaApiLink>false</detectJavaApiLink>
345+
<doclint>all,-missing</doclint>
346+
</configuration>
347+
</plugin>
348+
<plugin>
349+
<groupId>org.apache.maven.plugins</groupId>
350+
<artifactId>maven-gpg-plugin</artifactId>
351+
<!-- scoop/brew install gpg -->
352+
<version>1.6</version>
353+
<executions>
354+
<execution>
355+
<id>sign-artifacts</id>
356+
<phase>verify</phase>
357+
<goals>
358+
<goal>sign</goal>
359+
</goals>
360+
</execution>
361+
</executions>
282362
</plugin>
283363
<plugin>
284364
<groupId>org.revapi</groupId>
@@ -342,6 +422,17 @@
342422
</execution>
343423
</executions>
344424
</plugin>
425+
<plugin>
426+
<groupId>org.sonatype.plugins</groupId>
427+
<artifactId>nexus-staging-maven-plugin</artifactId>
428+
<version>1.6.8</version>
429+
<extensions>true</extensions>
430+
<configuration>
431+
<serverId>ossrh</serverId>
432+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
433+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
434+
</configuration>
435+
</plugin>
345436
</plugins>
346437
</build>
347438
</profile>
@@ -386,7 +477,7 @@
386477
<path>
387478
<groupId>org.projectlombok</groupId>
388479
<artifactId>lombok</artifactId>
389-
<version>1.18.18</version>
480+
<version>${lombok.version}</version>
390481
</path>
391482
</annotationProcessorPaths>
392483
<compilerArgs>

0 commit comments

Comments
 (0)