|
|
|
@ -5,7 +5,7 @@ plugins {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// tag::upload[]
|
|
|
|
|
tasks.getByName<Upload>("uploadBootArchives") {
|
|
|
|
|
tasks.named<Upload>("uploadBootArchives") {
|
|
|
|
|
repositories.withGroovyBuilder {
|
|
|
|
|
"mavenDeployer" {
|
|
|
|
|
"repository"("url" to "https://repo.example.com")
|
|
|
|
@ -14,13 +14,13 @@ tasks.getByName<Upload>("uploadBootArchives") {
|
|
|
|
|
}
|
|
|
|
|
// end::upload[]
|
|
|
|
|
|
|
|
|
|
val url = tasks.getByName<Upload>("uploadBootArchives")
|
|
|
|
|
tasks.register("deployerRepository") {
|
|
|
|
|
doLast {
|
|
|
|
|
val url = tasks.getByName<Upload>("uploadBootArchives")
|
|
|
|
|
.repositories
|
|
|
|
|
.withGroovyBuilder { getProperty("mavenDeployer") }
|
|
|
|
|
.withGroovyBuilder { getProperty("repository") }
|
|
|
|
|
.withGroovyBuilder { getProperty("url") }
|
|
|
|
|
task("deployerRepository") {
|
|
|
|
|
doLast {
|
|
|
|
|
println(url)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|