diff --git a/README.md b/README.md
index 40724ba..845a692 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ Add to your gradle plugins block:
```gradle
plugins {
- id "me.modmuss50.mod-publish-plugin" version "0.7.3"
+ id "me.modmuss50.mod-publish-plugin" version "0.7.4"
}
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 644bf51..c8a4841 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -10,7 +10,7 @@ plugins {
}
group = "me.modmuss50"
-version = "0.7.3"
+version = "0.7.4"
description = "The Mod Publish Plugin is a plugin for the Gradle build system to help upload artifacts to a range of common destinations."
repositories {
diff --git a/docs/pages/getting_started.mdx b/docs/pages/getting_started.mdx
index c105c34..88476d7 100644
--- a/docs/pages/getting_started.mdx
+++ b/docs/pages/getting_started.mdx
@@ -8,14 +8,14 @@ The plugin is hosted on the Gradle plugin portal, so can be easily added to your
```groovy
plugins {
- id "me.modmuss50.mod-publish-plugin" version "0.7.3"
+ id "me.modmuss50.mod-publish-plugin" version "0.7.4"
}
```
```kotlin
plugins {
- id("me.modmuss50.mod-publish-plugin") version "0.7.3"
+ id("me.modmuss50.mod-publish-plugin") version "0.7.4"
}
```
diff --git a/src/main/kotlin/me/modmuss50/mpp/HttpUtils.kt b/src/main/kotlin/me/modmuss50/mpp/HttpUtils.kt
index fc41d49..615cf03 100644
--- a/src/main/kotlin/me/modmuss50/mpp/HttpUtils.kt
+++ b/src/main/kotlin/me/modmuss50/mpp/HttpUtils.kt
@@ -5,6 +5,7 @@ import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.RequestBody
import okhttp3.Response
+import org.slf4j.LoggerFactory
import java.io.IOException
import java.lang.RuntimeException
import java.time.Duration
@@ -74,6 +75,8 @@ class HttpUtils(val exceptionFactory: HttpExceptionFactory = DefaultHttpExceptio
}
companion object {
+ private val LOGGER = LoggerFactory.getLogger(HttpUtils::class.java)
+
/**
* Retry server errors
*/
@@ -91,11 +94,12 @@ class HttpUtils(val exceptionFactory: HttpExceptionFactory = DefaultHttpExceptio
// Only retry 5xx server errors
count++
- exception = exception ?: RuntimeException(message)
+ exception = exception ?: RuntimeException("$message after $maxRetries attempts with error: ${e.message}")
exception.addSuppressed(e)
}
}
+ LOGGER.error("$message failed after $maxRetries retries", exception)
throw exception!!
}
}