add build info
This commit is contained in:
@@ -41,10 +41,24 @@ publishing {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("clean") {
|
tasks{
|
||||||
group = "build"
|
named("publishToMavenLocal") {
|
||||||
doLast {
|
dependsOn("buildInfo")
|
||||||
delete("${rootDir.path}/build")
|
}
|
||||||
println("Default Cleaning!")
|
register("clean") {
|
||||||
|
group = "build"
|
||||||
|
doLast {
|
||||||
|
delete("${rootDir.path}/build")
|
||||||
|
println("Default Cleaning!")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
register("buildInfo") {
|
||||||
|
group = "hlaeja"
|
||||||
|
description = "Prints the project name and version"
|
||||||
|
val projectName = project.name
|
||||||
|
val projectVersion = project.version
|
||||||
|
doLast {
|
||||||
|
println("Project Name: $projectName Version: $projectVersion")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user