19.2 Using Snapshots

Micronaut milestone and stable releases are distributed to Maven Central.

The following snippet shows how to use Micronaut SNAPSHOT versions 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.4.0-SNAPSHOT'
  3. }
  4. repositories {
  5. mavenCentral() (1)
  6. maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots/" } (2)
  7. }
1Micronaut releases are available on Maven Central
2Micronaut snapshots are available on Sonatype OSS Snapshots

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.4.0-SNAPSHOT</version>
  7. </parent>
  8. <properties>
  9. <micronaut.version>2.4.0-SNAPSHOT</micronaut.version> (1)
  10. ...
  11. </properties>
  12. <repositories>
  13. <repository>
  14. <id>sonatype-snapshots</id>
  15. <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url> (2)
  16. </repository>
  17. </repositories>
  18. ...
  19. </project>
1Set the snapshot version.
2Micronaut snapshots are available on Sonatype OSS Snapshots
Previously snapshots were published to Bintray, however due to JFrog shutting the service down, snapshots are now being published to Sonatype.