Skip to content

Commit ab776fb

Browse files
authored
Merge pull request #34 from cicirello/development
publish to both maven central and ghp
2 parents 987bbee + 99b57ee commit ab776fb

File tree

3 files changed

+201
-7
lines changed

3 files changed

+201
-7
lines changed

.github/workflows/maven-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
with:
5151
java-version: 1.8
5252
server-id: github
53-
53+
5454
- name: Update package version
5555
run: mvn versions:set -DnewVersion=${{ steps.get_version.outputs.VERSION }}
5656

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@
5858
<repository>
5959
<id>ossrh</id>
6060
<name>Central Repository OSSRH</name>
61-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
62-
</repository>
63-
<repository>
64-
<id>github</id>
65-
<name>GitHub cicirello Apache Maven Packages</name>
66-
<url>https://maven.pkg.github.com/cicirello/JavaPermutationTools</url>
61+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
6762
</repository>
63+
<snapshotRepository>
64+
<id>ossrh</id>
65+
<name>Central Repository OSSRH</name>
66+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
67+
</snapshotRepository>
6868
</distributionManagement>
6969

7070

pomgh.xml

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
4+
http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>org.cicirello</groupId>
8+
<artifactId>jpt</artifactId>
9+
<version>2.1.0</version>
10+
<packaging>jar</packaging>
11+
12+
<name>JavaPermutationTools</name>
13+
<description>JavaPermutationTools (JPT) is a library for
14+
computation on permutations and sequences.</description>
15+
<url>https://jpt.cicirello.org/</url>
16+
17+
<licenses>
18+
<license>
19+
<name>GPL-3.0-or-later</name>
20+
<url>https://www.gnu.org/licenses/gpl-3.0.en.html</url>
21+
<distribution>repo</distribution>
22+
<comments>
23+
JavaPermutationTools (JPT): A library for computation on permutations and sequences.
24+
Copyright (C) 2005-2020 Vincent A. Cicirello.
25+
26+
JavaPermutationTools is free software: you can redistribute it and/or modify
27+
it under the terms of the GNU General Public License as published by
28+
the Free Software Foundation, either version 3 of the License, or
29+
(at your option) any later version.
30+
31+
JavaPermutationTools is distributed in the hope that it will be useful,
32+
but WITHOUT ANY WARRANTY; without even the implied warranty of
33+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34+
GNU General Public License for more details.
35+
36+
You should have received a copy of the GNU General Public License
37+
along with this program. If not, see https://www.gnu.org/licenses/.
38+
</comments>
39+
</license>
40+
</licenses>
41+
42+
<developers>
43+
<developer>
44+
<name>Vincent A Cicirello</name>
45+
<email>[email protected]</email>
46+
<url>https://www.cicirello.org/</url>
47+
<organization>Cicirello.Org</organization>
48+
<organizationUrl>https://www.cicirello.org/</organizationUrl>
49+
</developer>
50+
</developers>
51+
52+
<organization>
53+
<name>Cicirello.Org</name>
54+
<url>https://www.cicirello.org/</url>
55+
</organization>
56+
57+
<distributionManagement>
58+
<repository>
59+
<id>github</id>
60+
<name>GitHub cicirello Apache Maven Packages</name>
61+
<url>https://maven.pkg.github.com/cicirello/JavaPermutationTools</url>
62+
</repository>
63+
</distributionManagement>
64+
65+
66+
<issueManagement>
67+
<system>github</system>
68+
<url>https://github.com/cicirello/JavaPermutationTools/issues</url>
69+
</issueManagement>
70+
71+
<scm>
72+
<connection>scm:git:git://github.com/cicirello/JavaPermutationTools.git</connection>
73+
<developerConnection>scm:git:ssh://github.com:cicirello/JavaPermutationTools.git</developerConnection>
74+
<url>http://github.com/cicirello/JavaPermutationTools/tree/master</url>
75+
</scm>
76+
77+
78+
<dependencies>
79+
<dependency>
80+
<groupId>junit</groupId>
81+
<artifactId>junit</artifactId>
82+
<version>4.13</version>
83+
<type>jar</type>
84+
<scope>test</scope>
85+
<optional>true</optional>
86+
</dependency>
87+
</dependencies>
88+
89+
<properties>
90+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
91+
<maven.compiler.source>1.8</maven.compiler.source>
92+
<maven.compiler.target>1.8</maven.compiler.target>
93+
</properties>
94+
95+
<build>
96+
<directory>${project.basedir}/dist</directory>
97+
<outputDirectory>${project.basedir}/bin</outputDirectory>
98+
<finalName>${project.artifactId}-${project.version}</finalName>
99+
<testOutputDirectory>${project.basedir}/testbin</testOutputDirectory>
100+
<sourceDirectory>${project.basedir}/src</sourceDirectory>
101+
<scriptSourceDirectory>${project.basedir}/src/scripts</scriptSourceDirectory>
102+
<testSourceDirectory>${project.basedir}/tests</testSourceDirectory>
103+
<resources>
104+
<resource>
105+
<directory>${project.basedir}/src/resources</directory>
106+
</resource>
107+
</resources>
108+
<testResources>
109+
<testResource>
110+
<directory>${project.basedir}/tests/resources</directory>
111+
</testResource>
112+
</testResources>
113+
<plugins>
114+
<plugin>
115+
<groupId>org.apache.maven.plugins</groupId>
116+
<artifactId>maven-source-plugin</artifactId>
117+
<version>3.2.1</version>
118+
<executions>
119+
<execution>
120+
<id>attach-sources</id>
121+
<goals>
122+
<goal>jar</goal>
123+
</goals>
124+
</execution>
125+
</executions>
126+
</plugin>
127+
<plugin>
128+
<groupId>org.apache.maven.plugins</groupId>
129+
<artifactId>maven-javadoc-plugin</artifactId>
130+
<version>3.2.0</version>
131+
<executions>
132+
<execution>
133+
<id>attach-javadocs</id>
134+
<goals>
135+
<goal>jar</goal>
136+
</goals>
137+
</execution>
138+
</executions>
139+
<configuration>
140+
<windowtitle>JavaPermutationTools - A Java API for computation on permutations</windowtitle>
141+
<doctitle>JavaPermutationTools - A Java API for computation on permutations</doctitle>
142+
<author>false</author>
143+
<version>false</version>
144+
<overview>${project.build.sourceDirectory}/overview.html</overview>
145+
<notimestamp>true</notimestamp>
146+
<links>
147+
<link>https://docs.oracle.com/javase/8/docs/api</link>
148+
</links>
149+
<bottom><![CDATA[Copyright &copy; 2005-2020 <a href=\"https://www.cicirello.org/\" target=_top>Vincent A. Cicirello</a>. All rights reserved.]]></bottom>
150+
</configuration>
151+
</plugin>
152+
<plugin>
153+
<groupId>org.apache.maven.plugins</groupId>
154+
<artifactId>maven-surefire-plugin</artifactId>
155+
<version>3.0.0-M5</version>
156+
<configuration>
157+
<includes>
158+
<include>**/*TestCases.java</include>
159+
<include>**/*Tests.java</include>
160+
<include>**/*TestCase.java</include>
161+
<include>**/*Test.java</include>
162+
<include>**/Test*.java</include>
163+
</includes>
164+
</configuration>
165+
</plugin>
166+
</plugins>
167+
</build>
168+
169+
<reporting>
170+
<plugins>
171+
<plugin>
172+
<groupId>org.apache.maven.plugins</groupId>
173+
<artifactId>maven-javadoc-plugin</artifactId>
174+
<version>3.2.0</version>
175+
<configuration>
176+
<reportOutputDirectory>${project.basedir}/docs/api</reportOutputDirectory>
177+
<destDir>api</destDir>
178+
<outputDirectory>${project.basedir}/docs/api</outputDirectory>
179+
<windowtitle>JavaPermutationTools - A Java API for computation on permutations</windowtitle>
180+
<doctitle>JavaPermutationTools - A Java API for computation on permutations</doctitle>
181+
<author>false</author>
182+
<version>false</version>
183+
<overview>${project.build.sourceDirectory}/overview.html</overview>
184+
<notimestamp>true</notimestamp>
185+
<links>
186+
<link>https://docs.oracle.com/javase/8/docs/api</link>
187+
</links>
188+
<bottom><![CDATA[Copyright &copy; 2005-2020 <a href=\"https://www.cicirello.org/\" target=_top>Vincent A. Cicirello</a>. All rights reserved.]]></bottom>
189+
</configuration>
190+
</plugin>
191+
</plugins>
192+
</reporting>
193+
194+
</project>

0 commit comments

Comments
 (0)