Eric Winter
Eric Winter

Reputation: 990

How do I publish a Gradle project to maven repository with 'optional' and 'provided' scope?

I see how gradle can deploy to a maven repository automatically generating the POM required to do it. How can this be so for dependencies that I would set to true and/or provided.

Upvotes: 2

Views: 809

Answers (3)

Brian Clozel
Brian Clozel

Reputation: 59086

The Gradle plugin "propdeps-plugin" solves this.

Upvotes: 1

Cengiz
Cengiz

Reputation: 4867

The WAR-Plugin (see http://gradle.org/war_plugin) now offers providedRuntime and providedComplile. But the provided scope does not exist in general.

Upvotes: 0

Uriah Carpenter
Uriah Carpenter

Reputation: 6726

GRADLE-784 has a provided scope workaround.

Upvotes: 3

Related Questions