pmaven-scala/src/test/resources/pomWithContributors.scala
raw| 1 | project { p => |
| 2 | |
| 3 | // contributor added with just a name |
| 4 | p.contributor("John Lennon") |
| 5 | |
| 6 | // contributor added with a closure, supporting setting multiple |
| 7 | // properties on the contribitor object. |
| 8 | p.contributor { c => |
| 9 | c.name = "Elvis Presley" |
| 10 | c.email = "[email protected]" |
| 11 | c.properties += ("isAlive" -> "false", "lovesPeanutButterAndBacon" -> "true") |
| 12 | } |
| 13 | |
| 14 | } |