19.2 Using Snapshots
Micronaut milestone and stable releases are distributed to Bintray.
The following snippet shows how to use Micronaut SNAPSHOT
with Gradle. The latest snapshot will always be the next patch version plus 1 with -SNAPSHOT
appended. For example if the latest release is “1.0.1”, the current snapshot would be “1.0.2-SNAPSHOT”.
ext {
micronautVersion = '2.2.0-SNAPSHOT'
}
repositories {
jcenter() (1)
maven { url "https://oss.jfrog.org/oss-snapshot-local" } (2)
}
1 | Micronaut releases are available on JCenter and Maven Central |
2 | Micronaut snapshots are available on JFrog OSS |
In the case of Maven, edit pom.xml
:
<?xml version="1.0" encoding="UTF-8"?>
...
<parent>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-parent</artifactId>
<version>2.2.0-SNAPSHOT</version>
</parent>
<properties>
<micronaut.version>2.2.0-SNAPSHOT</micronaut.version> (1)
...
</properties>
<repositories>
<repository>
<id>jcenter.bintray.com</id>
<url>https://jcenter.bintray.com</url> (2)
</repository>
<repository>
<id>jfrog-snapshots</id>
<url>https://oss.jfrog.org/oss-snapshot-local</url> (3)
</repository>
</repositories>
...
</project>
1 | Set the snapshot version. |
2 | Micronaut releases are available on JCenter and Maven Central |
3 | Micronaut snapshots are available on JFrog OSS Snapshots |