Skip to content

Instantly share code, notes, and snippets.

@fourlastor
Created March 2, 2023 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fourlastor/cd3b7bec172a5e66a2c66c62bb9f691f to your computer and use it in GitHub Desktop.
Save fourlastor/cd3b7bec172a5e66a2c66c62bb9f691f to your computer and use it in GitHub Desktop.
to-version-catalogs
plugins {
alias(libs.plugin.myPlugin)
}
dependencies {
implementation(libs.myLibrary)
}
plugins {
id "my.plugin" version "0.1"
}
dependencies {
implementation("com.example.library:library-name:1.2.3")
}
[versions]
my-plugin = "0.1"
my-library = "1.2.3"
[libraries]
myLibrary = { module = "com.example.library:library-name", version.ref = "my-library" }
[plugins]
myPlugin = { id = "com.example.plugin:my-plugin", version.ref = "my-plugin"}
// add this
dependencyResolutionManagement {
versionCatalogs { create("libs") { from(files("libs.versions.toml")) } }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment