문서의 이전 판입니다!
<scope>provided</scope>
<scope>compile</scope> <optional>true</optional>
현재(0.5) Propdeps 플러그인은 idea
, eclipse
, install
에 대해서만 올바르게 optional
과 provided
를 제공하고 uploadArchives
에 대해서는 관련 처리를 하지 않고 있다. 어쨌든 provided
는 올바르게 생성되며 optional
은 다음 처리를 필요로 한다.
uploadArchives { repositories { mavenDeployer { repository(url: 'http://어쩌구/releases/') { authentication(userName: repoUserName, password: repoPassword) } snapshotRepository(url: 'http://어쩌구/snapshot/') { authentication(userName: repoUserName, password: repoPassword) } // POM 의존성 객체 (MavenPom)에 optional = true 지정 : <optional>true</optional> 생성 pom.whenConfigured { pom -> pom.dependencies.findAll { dep -> dep.scope == 'optional'}.each { dep -> dep.scope = 'optional' dep.optional = true } } } } }
위 코드는, propdeps에서 MavenPlugin.java, ProjectConfigurationActionContainer를 주입받아 처리하면 될 것으로 보임.