[zipPlugin task] Remove deprecated calls and allow default destination path for empty pluginZipPath argument. (#3254)
Co-authored-by: Alanna Tempest <atem@fb.com> Co-authored-by: Alanna Tempest <atem@fb.com>
This commit is contained in:
+3
-6
@@ -800,18 +800,15 @@ val zipPlugin by task<Zip> {
|
||||
}
|
||||
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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user