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

  1. ext {
  2. micronautVersion = '1.0.2.BUILD-SNAPSHOT'
  3. }
  4. repositories {
  5. jcenter() (1)
  6. maven { url "https://oss.jfrog.org/oss-snapshot-local" } (2)
  7. }
  8. dependencyManagement {
  9. imports {
  10. mavenBom "io.micronaut:micronaut-bom:$micronautVersion"
  11. }
  12. }
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. <properties>
  4. <micronaut.version>1.0.2.BUILD-SNAPSHOT</micronaut.version> (1)
  5. ...
  6. </properties>
  7. <repositories>
  8. <repository>
  9. <id>jcenter.bintray.com</id>
  10. <url>https://jcenter.bintray.com</url> (2)
  11. </repository>
  12. <repository>
  13. <id>jfrog-snapshots</id>
  14. <url>https://oss.jfrog.org/oss-snapshot-local</url> (3)
  15. </repository>
  16. </repositories>
  17. <dependencyManagement>
  18. <dependencies>
  19. <dependency>
  20. <groupId>io.micronaut</groupId>
  21. <artifactId>micronaut-bom</artifactId>
  22. <version>${micronaut.version}</version>
  23. <type>pom</type>
  24. <scope>import</scope>
  25. </dependency>
  26. </dependencies>
  27. </dependencyManagement>
  28. ...
  29. </project>
1Set the snapshot version.
2Micronaut releases are available on JCenter and Maven Central
3Micronaut snapshots are available on JFrog OSS Snapshots