Only print publish URL for publish tasks (#907)

& fix spelling mistake
This commit is contained in:
Ryan Blue
2023-09-07 20:35:26 -04:00
committed by GitHub
parent 306677e56f
commit f601275fb2
3 changed files with 13 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
wpilibTools.deps.wpilibVersion = wpilibVersion
println("Buidling for wpilib ${wpilibTools.deps.wpilibVersion}")
println("Building for WPILib ${wpilibTools.deps.wpilibVersion}")
// From wpilib shared/config.gradle:
// NativeUtils adds the following OpenCV warning suppression for Linux, but not

View File

@@ -146,11 +146,16 @@ publishing {
username 'ghactions'
password System.getenv("ARTIFACTORY_API_KEY")
}
println("Publishing to " + url)
}
}
}
tasks.withType(PublishToMavenRepository) {
doFirst {
println("Publishing to " + repository.url);
}
}
task cleanReleaseRepo(type: Delete) {
delete releasesRepoUrl
}

View File

@@ -11,7 +11,6 @@ publishing {
username 'ghactions'
password System.getenv("ARTIFACTORY_API_KEY")
}
println("Publishing PhotonTargeting to " + url)
}
}
@@ -25,3 +24,9 @@ publishing {
}
}
}
tasks.withType(PublishToMavenRepository) {
doFirst {
println("Publishing PhotonTargeting to " + repository.url)
}
}