Created
March 2, 2023 10:11
-
-
Save fourlastor/cd3b7bec172a5e66a2c66c62bb9f691f to your computer and use it in GitHub Desktop.
to-version-catalogs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
alias(libs.plugin.myPlugin) | |
} | |
dependencies { | |
implementation(libs.myLibrary) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id "my.plugin" version "0.1" | |
} | |
dependencies { | |
implementation("com.example.library:library-name:1.2.3") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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