18.2 Using Snapshots
Micronaut milestone and stable releases are distributed to Bintray.
The following snippet shows how to use Micronaut BUILD-SNAPSHOT
with Gradle. The latest snapshot will always be the next patch version plus 1 with .BUILD-SNAPSHOT
appended. For example if the latest release is “1.0.1”, the current snapshot would be “1.0.2.BUILD-SNAPSHOT”.
ext {
micronautVersion = '1.0.2.BUILD-SNAPSHOT'
}
repositories {
jcenter() (1)
maven { url "https://oss.jfrog.org/oss-snapshot-local" } (2)
}
dependencyManagement {
imports {
mavenBom "io.micronaut:micronaut-bom:$micronautVersion"
}
}
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"?>
...
<properties>
<micronaut.version>1.0.2.BUILD-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>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-bom</artifactId>
<version>${micronaut.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
...
</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 |