Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 1.14 KB

File metadata and controls

47 lines (40 loc) · 1.14 KB

Version catalog

Maven Central Version

The repository also contains Gradle Version Catalog with toml file. The file is automatically used by Gradle to create libs reference in build.gradle.kts files.

Set up

Include the following code in your settings.gradle.kts file:

pluginManagement {
    repositories {
        mavenLocal()
        google()
        mavenCentral()
        gradlePluginPortal()
    }
}

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        mavenLocal()
        google()
        mavenCentral()
    }
    versionCatalogs {
        create("libs") {
            from("no.nordicsemi.gradle:version-catalog:<version>")
        }
    }
}

Dependencies can be later set using libs reference in build.gradle.kts files:

plugins {
    alias(libs.plugins.nordic.android.application) apply false
}

dependencies {
    // Example dependency:
    implementation(libs.androidx.activity.compose)
    debugImplementation(libs.leakcanary)
}