Get RepositorySettingsImpl for a PackageType
See original GitHub issueThe PackageTypeImpl enum contains all supported repository types. Each RepositorySettingsImpl
contains a reference to a value of this enum (e.g: MavenRepositorySettingsImpl#getPackageType.
So, it’s quite easy to get the PackageType
for a given RepositorySettings
object. Is it possible the other way around? I’m building a CLI application that takes the repository type as an argument. Based on that, I’d like to create the appropriate RepositorySettings
object. Currently I have my own enum, similar to PackageTypeImpl
that has all the corresponding RepositorySettingsImpl
s for each type.
It would be nice if this would be supported by the library out of the box, as this seems to be a quite common requirement.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Set a NuGet package type | Microsoft Learn
Dependency type packages add build- or run-time assets to libraries and applications, and can be installed in any project type (assuming they ...
Read more >get-package-type - npm
Start using get-package-type in your project by running `npm i get-package-type`. There are 321 other projects in the npm registry using ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
PR merge @dodie. Thank you!
Hi @eyalbe4 !
Are there plans regarding the next release of the library?
Thanks and cheers, David