Created Gradle Overlay How-To (markdown)

master
Aleksei Lissitsin 2015-05-21 10:41:05 +03:00
parent 258821ba98
commit 6cecc7ac47
1 changed files with 25 additions and 0 deletions

25
Gradle-Overlay-How-To.md Normal file

@ -0,0 +1,25 @@
If you are using Gradle, it is easy to create an overlay project using standard Gradle means. Here is an example `build.gradle`:
apply plugin: 'war'
repositories {
mavenCentral()
}
configurations {
overlay {
transitive = false
}
}
dependencies {
overlay('org.mitre:openid-connect-server-webapp:1+')
}
war {
duplicatesStrategy = 'exclude'
configurations.overlay.filter({it.name.endsWith(".war")}).each {
from zipTree(it)
}
}