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”.

  1. ext {
  2. micronautVersion = '2.2.0-SNAPSHOT'
  3. }
  4. repositories {
  5. jcenter() (1)
  6. maven { url "https://oss.jfrog.org/oss-snapshot-local" } (2)
  7. }
1Micronaut releases are available on JCenter and Maven Central
2Micronaut snapshots are available on JFrog OSS

In the case of Maven, edit pom.xml:

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. ...
  3. <parent>
  4. <groupId>io.micronaut</groupId>
  5. <artifactId>micronaut-parent</artifactId>
  6. <version>2.2.0-SNAPSHOT</version>
  7. </parent>
  8. <properties>
  9. <micronaut.version>2.2.0-SNAPSHOT</micronaut.version> (1)
  10. ...
  11. </properties>
  12. <repositories>
  13. <repository>
  14. <id>jcenter.bintray.com</id>
  15. <url>https://jcenter.bintray.com</url> (2)
  16. </repository>
  17. <repository>
  18. <id>jfrog-snapshots</id>
  19. <url>https://oss.jfrog.org/oss-snapshot-local</url> (3)
  20. </repository>
  21. </repositories>
  22. ...
  23. </project>
1Set the snapshot version.
2Micronaut releases are available on JCenter and Maven Central
3Micronaut snapshots are available on JFrog OSS Snapshots