import org.springframework.boot.gradle.tasks.bundling.BootWar

plugins {
	war
	id("org.springframework.boot") version "{gradle-project-version}"
}

tasks.getByName<BootWar>("bootWar") {
	mainClassName = "com.example.ExampleApplication"
}

dependencies {
	"developmentOnly"(files("spring-boot-devtools-1.2.3.RELEASE.jar"))
}

// tag::include-devtools[]
tasks.getByName<BootWar>("bootWar") {
	classpath(configurations["developmentOnly"])
}
// end::include-devtools[]
