Weize Sun
Weize Sun

Reputation: 155

How does the Intellij Idea change the scope of dependencies?

I found this function in Project Structure in Intellij Idea:

enter image description here

It seems that this UI can manually change the scope of the dependencies. However I found that it does not change the pom.xml file, so how can it manages to change the scope?

Besides, what is the corresponding operation in Linux?

Upvotes: 0

Views: 351

Answers (1)

Makoto
Makoto

Reputation: 106450

That particular view is geared more towards projects which lack dependency management from something like Maven or Gradle, and will not interfere with either. In fact, this particular listing is built based on those dependencies and exclusions.

If you want to change the scope of your dependencies in a project that already contains Maven and Gradle, look to do so in their respective files (pom.xml / build.gradle).

Upvotes: 1

Related Questions