Skip to content

Gradle Overlay How To

Aleksei Lissitsin edited this page May 21, 2015 · 1 revision

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)
	}
}