What is the purpose providedRuntime?

As per gradle doc

https://docs.gradle.org/current/userguide/war_plugin.html

The dependencies will not be added to the war. But it is adding dependencies into war as lib-provided.

What is the expected behaviour of providedRuntime?

Thanks in advance!

Hi @sathish1993,

It’s like it says in the doc. You can define a dependency that you need to run your code. E.g. if you test it outside a container. But the dependency is not packed into the WAR (usually because the container would provide it in production).

I am not sure what you mean by “lib-provided” here?

But it is adding dependencies into war as lib-provided.