Gradle: update annotation syntax

This commit is contained in:
Yan Zhulanow
2015-06-10 20:08:40 +03:00
parent e3c6f32b50
commit 08fa9b639e
2 changed files with 6 additions and 6 deletions
@@ -55,7 +55,7 @@ abstract class AbstractKotlinCompile<T : CommonCompilerArguments>() : AbstractCo
private val logger = Logging.getLogger(this.javaClass)
override fun getLogger() = logger
[TaskAction]
@TaskAction
override fun compile() {
getLogger().debug("Starting ${javaClass} task")
val args = createBlankArgs()
@@ -350,7 +350,7 @@ private fun <T: Any> ExtraPropertiesExtension.getOrNull(id: String): T? {
}
fun getAnnotations(project: Project, logger: Logger): Collection<File> {
[suppress("UNCHECKED_CAST")]
@suppress("UNCHECKED_CAST")
val annotations = project.getExtensions().getByName(DEFAULT_ANNOTATIONS) as Collection<File>
if (!annotations.isEmpty()) {