Skip to content

Commit

Permalink
gradle kotlin DSL to resolve mn snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Jan 7, 2025
1 parent d686f3a commit 898620a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions posts/micronaut-snapshot-gradle-kotlin-dsl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
title: Configure a Gradle Kotlin DSL to resolve Micronaut Snapshots
summary: [Micronaut documentation describes how to use snapshots](https://docs.micronaut.io/4.7.10/guide/#usingsnapshots).
date_published: 2025-01-07T11:17:26+01:00
keywords:micronaut,gradle
---

# [%title]

[%summary]

The following snippet, which uses the [Kotlin DSL](https://docs.gradle.org/current/userguide/kotlin_dsl.html), allows you to resolve Micronaut snapshots:

```kotlin
repositories {
maven {
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
mavenContent {
snapshotsOnly()
}
}
mavenCentral {
mavenContent {
releasesOnly()
}
}
}
```

0 comments on commit 898620a

Please sign in to comment.