Created Gradle Overlay How-To (markdown)
parent
258821ba98
commit
6cecc7ac47
|
@ -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)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue