Fixed tests badge submission URL

This commit is contained in:
Erik C. Thauvin 2023-01-02 15:52:50 -08:00
parent 58c0f62604
commit 75b540c7ee

View file

@ -99,12 +99,13 @@ tasks {
if (project.properties["testsBadgeApiKey"] != null) { if (project.properties["testsBadgeApiKey"] != null) {
val apiKey = project.properties["testsBadgeApiKey"] val apiKey = project.properties["testsBadgeApiKey"]
println(apiKey)
val response: HttpResponse<String> = HttpClient.newHttpClient() val response: HttpResponse<String> = HttpClient.newHttpClient()
.send( .send(
HttpRequest.newBuilder() HttpRequest.newBuilder()
.uri( .uri(
URI( URI(
"https://rife2.com/tests-badge/update/com.uwyn/urlencoder?" + "https://rife2.com/tests-badge/update/net.thauvin.erik/urlencoder?" +
"apiKey=$apiKey&" + "apiKey=$apiKey&" +
"passed=$passed&" + "passed=$passed&" +
"failed=$failed&" + "failed=$failed&" +