RonApple1996
RonApple1996

Reputation: 289

How do I get a file with all the runtime dependencies of my gradle project?

I used a task gradlew dependencies > file.txt and I get a txt file with all my java project dependencies. But I only want to see runtime dependencies. Is there a configuration option for this.. I was not able to find it anywhere else.

Upvotes: 2

Views: 3430

Answers (1)

M.Ricciuti
M.Ricciuti

Reputation: 12086

You can use option --configuration confName to filter dependencies for a specific configuration:

./gradlew dependencies --configuration runtimeClasspath > file.txt

See documentation : here

Upvotes: 5

Related Questions