Skip to content

Commit 093c702

Browse files
committed
Merge in useful parts from #115 (contributed by @divinenickname)
1 parent 4bd4b29 commit 093c702

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,17 @@ Maven coordinates are:
4747
<dependency>
4848
<groupId>com.fasterxml.uuid</groupId>
4949
<artifactId>java-uuid-generator</artifactId>
50-
<version>5.0.0</version>
50+
<version>5.1.0</version>
5151
</dependency>
5252
```
5353

54+
55+
Gradle:
56+
57+
```groovy
58+
implementation 'com.fasterxml.uuid:java-uuid-generator:5.1.0'
59+
```
60+
5461
#### Third-party Dependencies by JUG
5562

5663
The only dependency for JUG is the logging library:
@@ -150,25 +157,25 @@ it is rather slower than JUG version: for more information, read
150157
JUG jar built under `target/`:
151158

152159
```
153-
target/java-uuid-generator-5.0.0-SNAPSHOT.jar
160+
target/java-uuid-generator-5.1.0-SNAPSHOT.jar
154161
```
155162

156163
can also be used as a simple Command-line UUID generation tool.
157164

158165
To see usage you can do something like:
159166

160-
java -jar target/java-uuid-generator-5.0.0-SNAPSHOT.jar
167+
java -jar target/java-uuid-generator-5.1.0-SNAPSHOT.jar
161168

162169
and get full instructions, but to generate 5 Random-based UUIDs, you would use:
163170

164-
java -jar target/java-uuid-generator-5.0.0-SNAPSHOT.jar -c 5 r
171+
java -jar target/java-uuid-generator-5.1.0-SNAPSHOT.jar -c 5 r
165172

166173
(where `-c` (or `--count`) means number of UUIDs to generate, and `r` means Random-based version)
167174

168175
NOTE: this functionality is included as of JUG 4.1 -- with earlier versions you would need a bit longer invocation as Jar metadata did not specify "Main-Class".
169176
If so, you would need to use
170177

171-
java -cp target/java-uuid-generator-5.0.0-SNAPSHOT.jar com.fasterxml.uuid.Jug -c 5 r
178+
java -cp target/java-uuid-generator-5.1.0-SNAPSHOT.jar com.fasterxml.uuid.Jug -c 5 r
172179

173180
## Compatibility
174181

pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,14 @@ https://stackoverflow.com/questions/37958104/maven-javadoc-no-source-files-for-p
132132
<Export-Package>
133133
com.fasterxml.uuid;version="${project.version}",
134134
com.fasterxml.uuid.ext;version="${project.version}",
135-
com.fasterxml.uuid.impl;version="${project.version}"
135+
com.fasterxml.uuid.impl;version="${project.version}",
136+
com.fasterxml.uuid.jug;version="${project.version}"
136137
</Export-Package>
137138
<Import-Package>
138139
com.fasterxml.uuid;version="[${project.version},${project.version}]",
139140
com.fasterxml.uuid.ext;version="[${project.version},${project.version}]",
140141
com.fasterxml.uuid.impl;version="[${project.version},${project.version}]",
142+
com.fasterxml.uuid.jug;version="[${project.version},${project.version}]",
141143
org.slf4j;version="[${slf4j.version},2)"
142144
</Import-Package>
143145
<Private-Package />

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy