Skip to content

Commit a167163

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

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ buildscript {
8282
}
8383
}
8484
85-
plugins {
86-
id 'io.github.fvarrui.javapackager.plugin'
87-
}
85+
apply plugin: 'io.github.fvarrui.javapackager.plugin'
8886
```
8987

9088
Create your packaging task:
@@ -338,7 +336,7 @@ Or a specific SNAPSHOT version (specifying its timestamp and index):
338336
339337
### Gradle
340338

341-
Add the plugin repository to your `build.gradle`:
339+
Add the plugin repository to your `build.gradle` and use the latest SNAPSHOT version:
342340

343341
```groovy
344342
buildscript {
@@ -347,23 +345,17 @@ buildscript {
347345
url "https://oss.sonatype.org/content/repositories/snapshots"
348346
}
349347
}
350-
}
351-
```
352-
353-
And then you can use the latest SNAPSHOT version:
354-
355-
```groovy
356-
buildscript {
357348
dependencies {
358349
classpath 'io.github.fvarrui:javapackager:{javapackager.version}-SNAPSHOT'
359350
}
360351
}
361352
```
362353

363-
Or a specific SNAPSHOT version (specifying its timestamp and index):
354+
Or set a specific SNAPSHOT version specifying its timestamp and index:
364355

365356
```groovy
366357
buildscript {
358+
[...]
367359
dependencies {
368360
classpath 'io.github.fvarrui:javapackager:{javapackager.version}-{timestamp}-{index}'
369361
}

0 commit comments

Comments
 (0)