buildscript {
	dependencies {
		classpath files(pluginClasspath.split(','))
	}
}

apply plugin: 'org.springframework.boot'

if (project.hasProperty('applyJavaPlugin')) {
	apply plugin: 'java'
}

task('taskExists') {
	doFirst {
		println "$taskName exists = ${tasks.findByName(taskName) != null}"
	}
}

task('javaCompileEncoding') {
	doFirst {
		tasks.withType(JavaCompile) {
			println "$name = ${options.encoding}"
		}
	}
}
