version = '1.0_A20'
jar {
archiveBaseName = 'etsf'
archiveVersion = '1.0_A20'
manifest {
attributes(
"Built-By": System.getProperty("user.name"),
"Implementation-Version": archiveVersion
)
}
// This block executes after the jar file is actually written to disk
doLast {
def jarFile = archiveFile.get().asFile
def sizeInKB = String.format("%.2f", jarFile.length() / 1024)
def timestamp = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())
println "------------------------------------------------------------"
println "BUILD SUCCESSFUL: Artifact Generated"
println "File: ${jarFile.name}"
println "Path: ${jarFile.absolutePath}"
println "Size: ${sizeInKB} KB"
println "Timestamp: ${timestamp}"
println "------------------------------------------------------------"
}
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)