-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider deprecating and removing GenerateLibrariesXml task #62
Comments
@sergej-koscejev , how about the following:
I guess it would help to keep the library declarations in a single place. On top of that, WDYT? |
@vlsi I think that generating this file doesn't save that much work, in my experience the set of used libraries doesn't change as much. If it does change often for you then you can add a parent directory such as |
Well, the dependencies still have to be received and unpacked to a folder, don't they? |
Sure but that's not what this task does. This task was for being able to locally override some entries in libraries.xml to point to a different directory. |
Well, as long as |
Yes, that's what I want. Generating this file doesn't save that much work. The task doesn't unpack dependencies, it only writes a few lines of XML. |
That is not, however, it is duplication: once I declare dependencies in Gradle, then I need to generate libraries. |
Just in case: previously I knew nothing of Gradle, and I was more-or-less managing the dependencies manually, however, later I realized a Gradle plugin can manage it. Now you say you are going to remove that from |
No, I'm proposing to remove just the task to generate the |
The task is used to generate a libraries.xml file with libraries pointing to custom locations, with the possibility to override some of those locations locally.
I think that instead people should simply check libraries.xml into version control. Library paths can contain project-relative paths so library
mylib
can be added with path$PROJECT_DIR$/build/dependencies/mylib
for example, and Gradle can be configured to put the library there.For the override functionality, one can instead open a different version of
mylib
in MPS before opening the main project. The override functionality allows one to change the project library path locally to point to../mylib-development
but the added value over just opening it in MPS first seems to be very small.The text was updated successfully, but these errors were encountered: