Compare commits
No commits in common. "662206f32f3d0a7368fe8e2a3ea0165b79b5b504" and "7adf20f1ed32177e8a77995783f41367bd993006" have entirely different histories.
662206f32f
...
7adf20f1ed
@ -2,7 +2,6 @@ package fr.altarik;
|
|||||||
|
|
||||||
import okhttp3.*;
|
import okhttp3.*;
|
||||||
import org.gradle.api.DefaultTask;
|
import org.gradle.api.DefaultTask;
|
||||||
import org.gradle.api.GradleException;
|
|
||||||
import org.gradle.api.provider.Property;
|
import org.gradle.api.provider.Property;
|
||||||
import org.gradle.api.tasks.Input;
|
import org.gradle.api.tasks.Input;
|
||||||
import org.gradle.api.tasks.TaskAction;
|
import org.gradle.api.tasks.TaskAction;
|
||||||
@ -42,9 +41,6 @@ public abstract class ReportDiscord extends DefaultTask {
|
|||||||
.build();
|
.build();
|
||||||
try(Response response = client.newCall(request).execute()) {
|
try(Response response = client.newCall(request).execute()) {
|
||||||
getLogger().info("report sent");
|
getLogger().info("report sent");
|
||||||
if(!response.isSuccessful()) {
|
|
||||||
throw new GradleException("Discord returned a " + response.code() + " code: " + response.message());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user