From c5b8de90aee21a50306bb559ae95f85a57bfcb53 Mon Sep 17 00:00:00 2001 From: Tomasz Linkowski Date: Sat, 29 Jun 2019 15:37:19 +0200 Subject: [PATCH] #5: changed to configuration avoidance API https://docs.gradle.org/current/userguide/kotlin_dsl.html#using_kotlin_delegated_properties --- build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 1b12d02..9de7c9e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -119,13 +119,13 @@ allprojects { } //region https://github.com/hierynomus/license-gradle-plugin#running-on-a-non-java-project - val licenseGradle by creating(com.hierynomus.gradle.license.tasks.LicenseCheck::class) { + val licenseGradle by registering(com.hierynomus.gradle.license.tasks.LicenseCheck::class) { source = fileTree(rootDir) { include("**/*.gradle") include("**/*.gradle.kts") } } - val license by getting { + "license" { dependsOn(licenseGradle) } //endregion