-
Notifications
You must be signed in to change notification settings - Fork 6
Description
As a develop I need to add a manifest and add custom attributes to my procedureLibrary.
Following example below:
task packageCode(type: CreateProcedureLibrary){
destFile = "${buildDir}/${projectName}/dist/${projectName}-${version}.pl"
baseDir = "${buildDir}/${projectName}/rcode"
includes= "/"
excludes= "**/.pct"
manifest {
attributes(
'Built-By' : System.properties['user.name'],
'Build-Timestamp': new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
'Build-Revision' : versioning.info.commit,
'Created-By' : "Gradle ${gradle.gradleVersion}",
'Build-Jdk' : "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
'Build-OS' : "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}"
'DLC-Version' : OpenEdge.version.full,
'DLC-Major' : OpenEdge.version.major,
'DLC-Minor' : OpenEdge.version.minor,
'DLC-Revision' : OpenEdge.version.revision,
)
}