Skip to content

Commit 746ea7c

Browse files
committed
Update README.md
1 parent c2891ad commit 746ea7c

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

README.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ And then you can use the latest SNAPSHOT version:
318318
<plugin>
319319
<groupId>io.github.fvarrui</groupId>
320320
<artifactId>javapackager</artifactId>
321-
<version>x.y.z-SNAPSHOT</version>
321+
<version>{javapackager.version}-SNAPSHOT</version>
322322
[...]
323323
</plugin>
324324
```
@@ -329,37 +329,49 @@ Or a specific SNAPSHOT version (specifying its timestamp and index):
329329
<plugin>
330330
<groupId>io.github.fvarrui</groupId>
331331
<artifactId>javapackager</artifactId>
332-
<version>x.y.z-timestamp-index</version>
332+
<version>{javapackager.version}-{timestamp}-{index}</version>
333333
[...]
334334
</plugin>
335335
```
336336

337+
> SNAPSHOT version example: `1.7.2-20230505.095442-5`.
338+
337339
### Gradle
338340

339341
Add the plugin repository to your `build.gradle`:
340342

341343
```groovy
342344
buildscript {
343-
repositories {
344-
maven {
345+
repositories {
346+
maven {
345347
url "https://oss.sonatype.org/content/repositories/snapshots"
346348
}
347-
}
349+
}
348350
}
349351
```
350352

351353
And then you can use the latest SNAPSHOT version:
352354

353355
```groovy
354356
buildscript {
355-
dependencies {
356-
classpath 'io.github.fvarrui:javapackager:x.y.z-SNAPSHOT'
357-
}
357+
dependencies {
358+
classpath 'io.github.fvarrui:javapackager:{javapackager.version}-SNAPSHOT'
359+
}
358360
}
359361
```
360362

361363
Or a specific SNAPSHOT version (specifying its timestamp and index):
362364

365+
```groovy
366+
buildscript {
367+
dependencies {
368+
classpath 'io.github.fvarrui:javapackager:{javapackager.version}-{timestamp}-{index}'
369+
}
370+
}
371+
```
372+
373+
> SNAPSHOT version example: `1.7.2-20230505.095442-5`.
374+
363375
## How to build and install the plugin in your local repo
364376

365377
Execute next commands in BASH (GNU/Linux or macOS) or CMD (Windows):

0 commit comments

Comments
 (0)