From 419d6d0015beec0c6b7108f21e43b2dfa82273cf Mon Sep 17 00:00:00 2001 From: Irene Dea Date: Wed, 8 Apr 2020 04:54:08 -0700 Subject: [PATCH] [zipPlugin task] Remove deprecated calls and allow default destination path for empty pluginZipPath argument. (#3254) Co-authored-by: Alanna Tempest Co-authored-by: Alanna Tempest --- build.gradle.kts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index f3068a50c5e..d07993e0962 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -800,18 +800,15 @@ val zipPlugin by task { } val destPath = project.findProperty("pluginZipPath") as String? val dest = File(destPath ?: "$buildDir/kotlin-plugin.zip") - destinationDir = dest.parentFile - archiveName = dest.name - doFirst { - if (destPath == null) throw GradleException("Specify target zip path with 'pluginZipPath' property") - } + destinationDirectory.set(dest.parentFile) + archiveFileName.set(dest.name) from(src) into("Kotlin") setExecutablePermissions() doLast { - logger.lifecycle("Plugin artifacts packed to $archivePath") + logger.lifecycle("Plugin artifacts packed to $archiveFile") } }