Skip to content

Commit

Permalink
Fjerner kotlin-folder fra filstruktur og legger til warn på sourcesJa…
Browse files Browse the repository at this point in the history
…r hvis ikke feiler det av noen grunn
  • Loading branch information
blommish committed Aug 28, 2023
1 parent c0afce3 commit 12098b9
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions http-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ dependencies {

testImplementation("com.github.tomakehurst:wiremock-jre8-standalone:$wiremockVersion")
}

tasks.sourcesJar {
duplicatesStrategy = DuplicatesStrategy.WARN
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ class RetryOAuth2HttpClient(
HttpServerErrorException.BadGateway::class,
)

override fun post(oAuth2HttpRequest: OAuth2HttpRequest): OAuth2AccessTokenResponse? {
override fun post(req: OAuth2HttpRequest): OAuth2AccessTokenResponse? {
var retries = 0

while (true) {
try {
val response = super.post(oAuth2HttpRequest)
val response = super.post(req)
return response
} catch (e: Exception) {
handleException(e, retries++, oAuth2HttpRequest)
handleException(e, retries++, req)
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions log/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ dependencies {
implementation("org.slf4j:slf4j-api")
implementation("jakarta.servlet:jakarta.servlet-api")
}

tasks.sourcesJar {
duplicatesStrategy = DuplicatesStrategy.WARN
}

0 comments on commit 12098b9

Please sign in to comment.