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

StackOverflow https://stackoverflow.com/questions/4273562

  •  28-09-2019
  •  | 
  •  

문제

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.

도움이 되었습니까?

해결책

GRADLE-784 has a provided scope workaround.

다른 팁

The Gradle plugin "propdeps-plugin" solves this.

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top