[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 destPath = project.findProperty("pluginZipPath") as String?
|
||||||
val dest = File(destPath ?: "$buildDir/kotlin-plugin.zip")
|
val dest = File(destPath ?: "$buildDir/kotlin-plugin.zip")
|
||||||
destinationDir = dest.parentFile
|
destinationDirectory.set(dest.parentFile)
|
||||||
archiveName = dest.name
|
archiveFileName.set(dest.name)
|
||||||
doFirst {
|
|
||||||
if (destPath == null) throw GradleException("Specify target zip path with 'pluginZipPath' property")
|
|
||||||
}
|
|
||||||
|
|
||||||
from(src)
|
from(src)
|
||||||
into("Kotlin")
|
into("Kotlin")
|
||||||
setExecutablePermissions()
|
setExecutablePermissions()
|
||||||
|
|
||||||
doLast {
|
doLast {
|
||||||
logger.lifecycle("Plugin artifacts packed to $archivePath")
|
logger.lifecycle("Plugin artifacts packed to $archiveFile")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user