Skip to content

Commit cbc6d10

Browse files
committed
how to use jp snapshot versions
1 parent 9664f08 commit cbc6d10

File tree

1 file changed

+73
-2
lines changed

1 file changed

+73
-2
lines changed

README.md

Lines changed: 73 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,80 @@ And then bundle this file with your app:
285285

286286
> Last property copies `${name}.l4j.ini` file next to the EXE/binary on Windows/Linux, and in `Resources` folder on MacOS.
287287
288-
## How to build and install the plugin
288+
## How to use SNAPSHOT versions
289289

290-
Useful to try SNAPSHOT versions.
290+
[Here](https://oss.sonatype.org/content/repositories/snapshots/io/github/fvarrui/javapackager/) you can find the uploaded JavaPackager SNAPSHOT versions.
291+
292+
### Maven
293+
294+
Add the plugin repository to your `pom.xml`:
295+
296+
```xml
297+
<pluginRepositories>
298+
<pluginRepository>
299+
<id>nexus</id>
300+
<name>nexus-snapshot-repository</name>
301+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
302+
<snapshots>
303+
<enabled>true</enabled>
304+
<updatePolicy>always</updatePolicy>
305+
</snapshots>
306+
<releases>
307+
<enabled>false</enabled>
308+
</releases>
309+
</pluginRepository>
310+
</pluginRepositories>
311+
```
312+
313+
And then you can use the latest SNAPSHOT version:
314+
315+
```xml
316+
<plugin>
317+
<groupId>io.github.fvarrui</groupId>
318+
<artifactId>javapackager</artifactId>
319+
<version>x.y.z-SNAPSHOT</version>
320+
[...]
321+
</plugin>
322+
```
323+
324+
Or a specific SNAPSHOT version (specifying its timestamp and index):
325+
326+
```xml
327+
<plugin>
328+
<groupId>io.github.fvarrui</groupId>
329+
<artifactId>javapackager</artifactId>
330+
<version>x.y.z-timestamp-index</version>
331+
[...]
332+
</plugin>
333+
```
334+
335+
### Gradle
336+
337+
Add the plugin repository to your `build.gradle`:
338+
339+
```groovy
340+
buildscript {
341+
repositories {
342+
maven {
343+
url "https://oss.sonatype.org/content/repositories/snapshots"
344+
}
345+
}
346+
}
347+
```
348+
349+
And then you can use the latest SNAPSHOT version:
350+
351+
```groovy
352+
buildscript {
353+
dependencies {
354+
classpath 'io.github.fvarrui:javapackager:x.y.z-SNAPSHOT'
355+
}
356+
}
357+
```
358+
359+
Or a specific SNAPSHOT version (specifying its timestamp and index):
360+
361+
## How to build and install the plugin in your local repo
291362

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

0 commit comments

Comments
 (0)