com.netflix.gradle.plugins.packaging.OsPackageAbstractArchiveTask.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-ospackage-plugin Show documentation
Show all versions of gradle-ospackage-plugin Show documentation
Provides a task similar to Tar and Zip for constructing RPM and DEB package files.
package com.netflix.gradle.plugins.packaging
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.bundling.AbstractArchiveTask
import org.gradle.work.DisableCachingByDefault
import javax.annotation.Nullable
@DisableCachingByDefault
abstract class OsPackageAbstractArchiveTask extends AbstractArchiveTask {
OsPackageAbstractArchiveTask() {
super()
notCompatibleWithConfigurationCache("nebula.ospackage does not support configuration cache")
}
void setVersion(@Nullable String version) {
archiveVersion.convention(version)
archiveVersion.set(version)
}
@Nullable
@Internal("Represented as part of archiveFile")
String getVersion() {
return archiveVersion.getOrNull()
}
}