Skip to content

Commit 30e6de5

Browse files
authored
Merge branch 'main' into carry
2 parents 37d02ef + 85eacf0 commit 30e6de5

File tree

8 files changed

+37
-20
lines changed

8 files changed

+37
-20
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,46 @@ name: Build
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
- "4.3"
77
- "3.0"
88
paths-ignore:
99
- "README.md"
1010
- "release-notes/*"
1111
pull_request:
1212
branches:
13-
- master
13+
- main
1414
permissions:
1515
contents: read
1616
jobs:
1717
build:
18-
runs-on: ${{ matrix.os }}
18+
runs-on: 'ubuntu-latest'
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
java_version: ['8', '11', '17', '21']
23-
os: ['ubuntu-20.04']
22+
java_version: ['8', '11', '17', '21', '25']
2423
env:
2524
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
2625
steps:
27-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2827
- name: Set up JDK
29-
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
28+
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
3029
with:
3130
distribution: "temurin"
3231
java-version: ${{ matrix.java_version }}
3332
cache: 'maven'
33+
server-id: central-snapshots
34+
server-username: CI_DEPLOY_USERNAME
35+
server-password: CI_DEPLOY_PASSWORD
3436
- name: Build
3537
run: ./mvnw -B -q -ff -ntp verify
3638
- name: Generate code coverage
37-
if: github.event_name != 'pull_request' && matrix.java_version == '8'
39+
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '8' }}
3840
run: ./mvnw -B -q -ff -ntp test
3941
- name: Publish code coverage
40-
if: github.event_name != 'pull_request' && matrix.java_version == '8'
41-
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
42+
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '8' }}
43+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
4244
with:
4345
token: ${{ secrets.CODECOV_TOKEN }}
44-
file: ./target/site/jacoco/jacoco.xml
46+
files: ./target/site/jacoco/jacoco.xml
4547
flags: unittests

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ syntax: glob
2121
*.ipr
2222
.idea
2323

24+
# and projects own things
25+
*.lck
26+
2427
*~

.mvn/wrapper/maven-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.3/apache-maven-3.9.3-bin.zip
18-
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ and newly (in 2022-) proposed (see [uuid6](https://uuid6.github.io/uuid6-ietf-dr
2828
| Type | Status |
2929
| ---- | ------ |
3030
| Build (CI) | [![Build (github)](https://github.com/cowtowncoder/java-uuid-generator/actions/workflows/main.yml/badge.svg)](https://github.com/cowtowncoder/java-uuid-generator/actions/workflows/main.yml) |
31-
| Artifact | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.fasterxml.uuid/java-uuid-generator/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.fasterxml.uuid/java-uuid-generator/) |
31+
| Artifact | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.fasterxml.uuid/java-uuid-generator/badge.svg)](https://search.maven.org/artifact/com.fasterxml.uuid/java-uuid-generator) |
3232
| OSS Sponsorship | [![Tidelift](https://tidelift.com/badges/package/maven/com.fasterxml.uuid:java-uuid-generator)](https://tidelift.com/subscription/pkg/maven-com-fasterxml-uuid-java-uuid-generator?utm_source=maven-com-fasterxml-uuid-java-uuid-generator&utm_medium=referral&utm_campaign=readme) |
3333
| Javadocs | [![Javadoc](https://javadoc.io/badge/com.fasterxml.uuid/java-uuid-generator.svg)](http://www.javadoc.io/doc/com.fasterxml.uuid/java-uuid-generator)
3434
| Code coverage (5.x) | [![codecov.io](https://codecov.io/github/cowtowncoder/java-uuid-generator/coverage.svg?branch=master)](https://codecov.io/github/cowtowncoder/java-uuid-generator?branch=master) |
@@ -83,7 +83,7 @@ For example:
8383
```java
8484
UUID uuid = Generators.timeBasedGenerator().generate(); // Version 1
8585
UUID uuid = Generators.randomBasedGenerator().generate(); // Version 4
86-
UUID uuid = Generators.nameBasedgenerator().generate("string to hash"); // Version 5
86+
UUID uuid = Generators.nameBasedGenerator().generate("string to hash"); // Version 5
8787
// With JUG 4.1+: support for https://github.com/uuid6/uuid6-ietf-draft versions 6 and 7:
8888
UUID uuid = Generators.timeBasedReorderedGenerator().generate(); // Version 6
8989
UUID uuid = Generators.timeBasedEpochGenerator().generate(); // Version 7

pom.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.fasterxml</groupId>
88
<artifactId>oss-parent</artifactId>
9-
<version>58</version>
9+
<version>69</version>
1010
</parent>
1111
<groupId>com.fasterxml.uuid</groupId>
1212
<artifactId>java-uuid-generator</artifactId>
@@ -15,7 +15,7 @@
1515
-->
1616
<packaging>bundle</packaging>
1717
<name>Java UUID Generator</name>
18-
<version>5.1.1-SNAPSHOT</version>
18+
<version>5.2.0-SNAPSHOT</version>
1919
<description>
2020
Java UUID Generator (JUG) is a Java library for generating
2121
Universally Unique IDentifiers, UUIDs (see http://en.wikipedia.org/wiki/UUID).
@@ -45,7 +45,7 @@ JUG supports 3 original official UUID generation methods as well as later additi
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<slf4j.version>1.7.36</slf4j.version>
4747

48-
<project.build.outputTimestamp>2024-06-02T23:59:30Z</project.build.outputTimestamp>
48+
<project.build.outputTimestamp>2025-09-26T22:42:25Z</project.build.outputTimestamp>
4949
</properties>
5050
<licenses>
5151
<license>
@@ -199,6 +199,11 @@ https://stackoverflow.com/questions/37958104/maven-javadoc-no-source-files-for-p
199199
</execution>
200200
</executions>
201201
</plugin>
202+
<!-- 28-May-2025, tatu: Ensure we use new Sonatype Central Portal: -->
203+
<plugin>
204+
<groupId>org.sonatype.central</groupId>
205+
<artifactId>central-publishing-maven-plugin</artifactId>
206+
</plugin>
202207
</plugins>
203208
</build>
204209

release-notes/VERSION

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ Project: java-uuid-generator
44
Releases
55
============================================================================
66

7-
(not yet released)
7+
5.2.0 (not yet released)
8+
9+
- Update to `oss-parent` v69
10+
11+
5.1.1 (26-Sep-2025)
812

913
#122: RFC-4122 Obsoleted by RFC-9562 (document change)
1014
(pointed out by @akefirad)
15+
- Update to `oss-parent` v68 to switch to Central Portal publishing
16+
- Branch "master" renamed as "main"
1117

1218
5.1.0 (02-Jun-2024)
1319

src/test/java/com/fasterxml/uuid/JugNamedTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
import java.util.List;
1515
import java.util.UUID;
1616

17+
import static org.hamcrest.MatcherAssert.assertThat;
1718
import static org.hamcrest.core.StringContains.containsString;
1819
import static org.junit.Assert.assertEquals;
19-
import static org.junit.Assert.assertThat;
2020

2121
@RunWith(Parameterized.class)
2222
public class JugNamedTest {

src/test/java/com/fasterxml/uuid/JugNoArgsTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import java.lang.reflect.Array;
1212
import java.util.*;
1313

14+
import static org.hamcrest.MatcherAssert.assertThat;
1415
import static org.hamcrest.core.StringContains.containsString;
1516
import static org.junit.Assert.*;
1617

0 commit comments

Comments
 (0)