Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Commit c1592d5

Browse files
authored
Merge pull request #18 from ebocher/central
Fix maven central portal
2 parents cb21710 + 229e540 commit c1592d5

File tree

11 files changed

+56
-65
lines changed

11 files changed

+56
-65
lines changed

.github/workflows/CI release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
distribution: 'temurin'
3333
java-version: '11'
34-
server-id: ossrh
34+
server-id: central
3535
server-username: MAVEN_USERNAME
3636
server-password: MAVEN_PASSWORD
3737
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}

.github/workflows/CI snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
with:
3535
distribution: 'temurin'
3636
java-version: '11'
37-
server-id: ossrh
37+
server-id: central
3838
server-username: MAVEN_USERNAME
3939
server-password: MAVEN_PASSWORD
4040
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}

docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
## Changelog for v0.7.1
22

33
- Fix github actions
4+
- Update to central portal

pom.xml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,18 @@
5353
<!-- Dependencies -->
5454
<repositories>
5555
<repository>
56-
<id>oss-sonatype</id>
57-
<name>oss-sonatype-snapshot</name>
58-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
59-
</repository>
60-
<repository>
61-
<id>orbisgis-release</id>
62-
<name>oss-sonatype-release</name>
63-
<url>https://oss.sonatype.org/content/repositories/releases/</url>
56+
<name>Central Portal Snapshots</name>
57+
<id>central-portal-snapshots</id>
58+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
59+
<releases>
60+
<enabled>false</enabled>
61+
</releases>
62+
<snapshots>
63+
<enabled>true</enabled>
64+
</snapshots>
6465
</repository>
6566
</repositories>
6667

67-
6868
<!-- Properties -->
6969
<properties>
7070
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -74,20 +74,20 @@
7474
<maven.compiler.source>${java-version}</maven.compiler.source>
7575

7676
<!-- Dependencies versions -->
77-
<junit-version>5.8.2</junit-version>
78-
<slf4j-version>2.0.10</slf4j-version>
77+
<junit-version>5.9.2</junit-version>
78+
<slf4j-version>2.0.16</slf4j-version>
7979

8080
<!-- Plugins versions -->
8181
<exec-maven-version>3.0.0</exec-maven-version>
82-
<maven-assembly-version>3.3.0</maven-assembly-version>
82+
<maven-assembly-version>3.6.0</maven-assembly-version>
8383
<maven-bundle-version>5.1.2</maven-bundle-version>
84-
<maven-enforcer-version>3.0.0</maven-enforcer-version>
85-
<maven-gpg-plugin-version>3.0.1</maven-gpg-plugin-version>
86-
<maven-jar-version>3.2.0</maven-jar-version>
84+
<maven-enforcer-version>3.4.1</maven-enforcer-version>
85+
<maven-gpg-plugin-version>3.1.0</maven-gpg-plugin-version>
86+
<maven-jar-version>3.3.0</maven-jar-version>
8787
<maven-javadoc-version>3.3.1</maven-javadoc-version>
88-
<maven-release-version>3.0.0-M4</maven-release-version>
89-
<maven-surefire-version>3.0.0-M5</maven-surefire-version>
90-
<version-maven-version>2.8.1</version-maven-version>
88+
<maven-release-version>3.0.1</maven-release-version>
89+
<maven-surefire-version>3.2.2</maven-surefire-version>
90+
<version-maven-version>2.16.0</version-maven-version>
9191
</properties>
9292

9393
<dependencies>
@@ -281,12 +281,12 @@
281281

282282
<distributionManagement>
283283
<snapshotRepository>
284-
<id>ossrh</id>
285-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
284+
<id>central</id>
285+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
286286
</snapshotRepository>
287287
<repository>
288-
<id>ossrh</id>
289-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
288+
<id>central</id>
289+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
290290
</repository>
291291
</distributionManagement>
292292

src/main/java/org/poly2tri/triangulation/Triangulatable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public interface Triangulatable {
88
/**
99
* Preparations needed before triangulation start should be handled here
1010
*
11-
* @param tcx
11+
* @param tcx {@link TriangulationContext}
1212
*/
1313
public void prepareTriangulation(TriangulationContext<?> tcx);
1414

src/main/java/org/poly2tri/triangulation/TriangulationUtil.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,10 @@ public static boolean smartIncircle(final TriangulationPoint pa,
134134
}
135135

136136
/**
137-
* @param pa
138-
* @param pb
139-
* @param pc
140-
* @param pd
141-
* @return
137+
* @param pa {@link TriangulationPoint}
138+
* @param pb {@link TriangulationPoint}
139+
* @param pc {@link TriangulationPoint}
140+
* @param pd {@link TriangulationPoint}
142141
* @see #smartIncircle(TriangulationPoint, TriangulationPoint, TriangulationPoint, TriangulationPoint)
143142
*/
144143
public static boolean inScanArea(final TriangulationPoint pa,

src/main/java/org/poly2tri/triangulation/delaunay/DelaunayTriangle.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ public void clear() {
179179
/**
180180
* @param t - opposite triangle
181181
* @param p - the point in t that isn't shared between the triangles
182-
* @return
183182
*/
184183
public TriangulationPoint oppositePoint(DelaunayTriangle t, TriangulationPoint p) {
185184
assert t != this : "self-pointer error";

src/main/java/org/poly2tri/triangulation/delaunay/sweep/AdvancingFront.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ private final AdvancingFrontNode findSearchNode(double x) {
7777
* We use a balancing tree to locate a node smaller or equal to
7878
* given key value
7979
*
80-
* @return
8180
*/
8281
public AdvancingFrontNode locateNode(TriangulationPoint point) {
8382
return locateNode(point.getX());
@@ -107,8 +106,7 @@ private AdvancingFrontNode locateNode(double x) {
107106
* This implementation will use simple node traversal algorithm to find
108107
* a point on the front
109108
*
110-
* @param point
111-
* @return
109+
* @param point {@link TriangulationPoint}
112110
*/
113111
public AdvancingFrontNode locatePoint(final TriangulationPoint point) {
114112
final double px = point.getX();

src/main/java/org/poly2tri/triangulation/delaunay/sweep/DTSweep.java

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
*/
3131
package org.poly2tri.triangulation.delaunay.sweep;
3232

33+
import org.poly2tri.triangulation.TriangulationContext;
3334
import org.poly2tri.triangulation.TriangulationMode;
3435
import org.poly2tri.triangulation.TriangulationPoint;
3536
import org.poly2tri.triangulation.TriangulationUtil.*;
@@ -78,7 +79,7 @@ public static void triangulate(DTSweepContext tcx) {
7879
/**
7980
* Start sweeping the Y-sorted point set from bottom to top
8081
*
81-
* @param tcx
82+
* @param tcx {@link TriangulationContext}
8283
*/
8384
private static void sweep(DTSweepContext tcx) {
8485
TriangulationPoint point;
@@ -104,7 +105,7 @@ private static void sweep(DTSweepContext tcx) {
104105
* If this is a Delaunay Triangulation of a pointset we need to
105106
* fill so the triangle mesh gets a ConvexHull
106107
*
107-
* @param tcx
108+
* @param tcx {@link TriangulationContext}
108109
*/
109110
private static void finalizationConvexHull(DTSweepContext tcx) {
110111
AdvancingFrontNode n1, n2;
@@ -214,7 +215,7 @@ private static void turnAdvancingFrontConvex(DTSweepContext tcx,
214215

215216
/**
216217
* Create the triangles as polygons
217-
* @param tcx
218+
* @param tcx {@link TriangulationContext}
218219
*/
219220
private static void finalizationPolygon(DTSweepContext tcx) {
220221
// Get an Internal triangle to start with
@@ -233,9 +234,8 @@ private static void finalizationPolygon(DTSweepContext tcx) {
233234
* create a new triangle. If needed new holes and basins
234235
* will be filled to.
235236
*
236-
* @param tcx
237-
* @param point
238-
* @return
237+
* @param tcx {@link TriangulationContext}
238+
* @param point a point
239239
*/
240240
private static AdvancingFrontNode pointEvent(DTSweepContext tcx,
241241
TriangulationPoint point) {
@@ -261,10 +261,9 @@ private static AdvancingFrontNode pointEvent(DTSweepContext tcx,
261261
/**
262262
* Creates a new front triangle and legalize it
263263
*
264-
* @param tcx
265-
* @param point
266-
* @param node
267-
* @return
264+
* @param tcx {@link TriangulationContext}
265+
* @param point a point
266+
* @param node a node in the triangulation
268267
*/
269268
private static AdvancingFrontNode newFrontTriangle(DTSweepContext tcx,
270269
TriangulationPoint point,
@@ -296,9 +295,9 @@ private static AdvancingFrontNode newFrontTriangle(DTSweepContext tcx,
296295
}
297296

298297
/**
299-
* @param tcx
300-
* @param edge
301-
* @param node
298+
* @param tcx {@link TriangulationContext}
299+
* @param edge a segment
300+
* @param node a node in the triangulation
302301
*/
303302
private static void edgeEvent(DTSweepContext tcx,
304303
DTSweepConstraint edge,
@@ -624,11 +623,10 @@ private static void flipEdgeEvent(DTSweepContext tcx,
624623
* the point in current triangle that is the opposite point to the next
625624
* triangle.
626625
*
627-
* @param ep
628-
* @param eq
629-
* @param ot
630-
* @param op
631-
* @return
626+
* @param ep {@link TriangulationPoint}
627+
* @param eq {@link TriangulationPoint}
628+
* @param ot {@link DelaunayTriangle}
629+
* @param op {@link TriangulationPoint}
632630
*/
633631
private static TriangulationPoint nextFlipPoint(TriangulationPoint ep,
634632
TriangulationPoint eq,
@@ -651,7 +649,7 @@ private static TriangulationPoint nextFlipPoint(TriangulationPoint ep,
651649
* After a flip we have two triangles and know that only one will still be
652650
* intersecting the edge. So decide which to contiune with and legalize the other
653651
*
654-
* @param tcx
652+
* @param tcx {@link TriangulationContext}
655653
* @param o - should be the result of an orient2d( eq, op, ep )
656654
* @param t - triangle 1
657655
* @param ot - triangle 2
@@ -688,12 +686,12 @@ private static DelaunayTriangle nextFlipTriangle(DTSweepContext tcx,
688686
* point that is inside the flip triangle scan area. When found
689687
* we generate a new flipEdgeEvent
690688
*
691-
* @param tcx
689+
* @param tcx {@link TriangulationContext}
692690
* @param ep - last point on the edge we are traversing
693691
* @param eq - first point on the edge we are traversing
694692
* @param flipTriangle - the current triangle sharing the point eq with edge
695-
* @param t
696-
* @param p
693+
* @param t a triangle
694+
* @param p a point
697695
*/
698696
private static void flipScanEdgeEvent(DTSweepContext tcx,
699697
TriangulationPoint ep,
@@ -743,8 +741,8 @@ private static void flipScanEdgeEvent(DTSweepContext tcx,
743741
/**
744742
* Fills holes in the Advancing Front
745743
*
746-
* @param tcx
747-
* @param n
744+
* @param tcx {@link TriangulationContext}
745+
* @param n a node in the triangulation
748746
*/
749747
private static void fillAdvancingFront(DTSweepContext tcx, AdvancingFrontNode n) {
750748
AdvancingFrontNode node;
@@ -857,7 +855,7 @@ private static boolean isLargeHole(AdvancingFrontNode node) {
857855
* First we decide a left,bottom and right node that forms the
858856
* boundaries of the basin. Then we do a reqursive fill.
859857
*
860-
* @param tcx
858+
* @param tcx {@link TriangulationContext}
861859
* @param node - starting node, this or next node will be left node
862860
*/
863861
private static void fillBasin(DTSweepContext tcx, AdvancingFrontNode node) {
@@ -897,9 +895,8 @@ private static void fillBasin(DTSweepContext tcx, AdvancingFrontNode node) {
897895
/**
898896
* Recursive algorithm to fill a Basin with triangles
899897
*
900-
* @param tcx
898+
* @param tcx {@link TriangulationContext}
901899
* @param node - bottomNode
902-
* @param cnt - counter used to alternate on even and odd numbers
903900
*/
904901
private static void fillBasinReq(DTSweepContext tcx, AdvancingFrontNode node) {
905902
// if shallow stop filling
@@ -982,7 +979,7 @@ private static double basinAngle(AdvancingFrontNode node) {
982979
/**
983980
* Adds a triangle to the advancing front to fill a hole.
984981
*
985-
* @param tcx
982+
* @param tcx {@link TriangulationContext}
986983
* @param node - middle node, that is the bottom of the hole
987984
*/
988985
private static void fill(DTSweepContext tcx, AdvancingFrontNode node) {

src/main/java/org/poly2tri/triangulation/sets/ConstrainedPointSet.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ public void prepareTriangulation(TriangulationContext tcx) {
106106
* 1. Check's if there any constraint edges are crossing or collinear<br>
107107
* 2.
108108
*
109-
* @return
110109
*/
111110
public boolean isValid() {
112111
return true;

0 commit comments

Comments
 (0)