Skip to content

Version Catalog #2480

Open
Open
@nomisRev

Description

@nomisRev

Add support for exporting Version Catalog from the project.
Dependencies should be created in such a way that they're all grouped under the name exposed, followed by their module name.
For example for the Gradle module kotlin-datetime the resulting version catalog definition should be exposed.kotlin.datetime which would be defined as:

catalog {
     versionCatalog {
         create("exposed") {
              library("kotlin-datetime", "org.jetbrains.exposed:exposed-kotlin-datetime:${version}")
         }
    }
}

From the user perspective this should result in following API:

The user should be able to write:

// settings.gradle.kts
dependencyResolutionManagement {
    versionCatalogs {
        create("exposed") {
            from("org.jetbrains.exposed:exposed-version-catalog:x.x.x")
        }
    }
}

// build.gradle.kts
dependencies {
  implementation(exposed.jdbc)
  implementation(exposed.kotlin.datetime)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions