More useful task output
This commit is contained in:
parent
c55ab33755
commit
6ab00c7a72
|
@ -153,6 +153,10 @@ class PublishPlugin : Plugin<Project> {
|
||||||
|
|
||||||
|
|
||||||
project.tasks.withType<PublishToMavenLocal> {
|
project.tasks.withType<PublishToMavenLocal> {
|
||||||
|
doFirst {
|
||||||
|
println("\tPublishing '${publication.groupId}:${publication.artifactId}:${publication.version}' to Maven Local")
|
||||||
|
}
|
||||||
|
|
||||||
onlyIf {
|
onlyIf {
|
||||||
val pub = get()
|
val pub = get()
|
||||||
publication == pub.publications.getByName("maven")
|
publication == pub.publications.getByName("maven")
|
||||||
|
@ -220,9 +224,11 @@ class PublishPlugin : Plugin<Project> {
|
||||||
val fullReleaseString = fullReleaseTimeout.toString().substring(2)
|
val fullReleaseString = fullReleaseTimeout.toString().substring(2)
|
||||||
.replace("(\\d[HMS])(?!$)", "$1 ").toLowerCase()
|
.replace("(\\d[HMS])(?!$)", "$1 ").toLowerCase()
|
||||||
|
|
||||||
println("\tMaven publish and release plugin initialized")
|
project.tasks.findByName("publishToSonatype")?.doFirst {
|
||||||
println("\t- Sonatype HTTP timeout: $durationString")
|
println("\tPublishing to Sonatype: ${config.groupId}:${config.version}")
|
||||||
println("\t- Sonatype API timeout: $fullReleaseString")
|
println("\t\tSonatype HTTP timeout: $durationString")
|
||||||
|
println("\t\tSonatype API timeout: $fullReleaseString")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project.childProjects.values.forEach {
|
project.childProjects.values.forEach {
|
||||||
|
|
Loading…
Reference in New Issue