Created
January 24, 2023 19:59
-
-
Save cbedoy/a33c8fc77326b170bb5e32be9122025a to your computer and use it in GitHub Desktop.
Crea un codigo para generar un bom para usarlo en android
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
import org.gradle.api.Project | |
// Create the BOM file | |
val bomFile = project.file("dependencies.bom") | |
// Get all dependencies of the project | |
val dependencies = project.configurations.getByName("implementation").allDependencies | |
// Write the dependencies to the BOM file | |
bomFile.writeText(dependencies.joinToString("\n")) | |
// Add the BOM file to the project's artifacts | |
project.artifacts.add("implementation", bomFile) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment