Skip to content

Commit 12098b9

Browse files
committed
Fjerner kotlin-folder fra filstruktur og legger til warn på sourcesJar hvis ikke feiler det av noen grunn
1 parent c0afce3 commit 12098b9

File tree

10 files changed

+11
-3
lines changed

10 files changed

+11
-3
lines changed

Diff for: http-client/build.gradle.kts

+4
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ dependencies {
2020

2121
testImplementation("com.github.tomakehurst:wiremock-jre8-standalone:$wiremockVersion")
2222
}
23+
24+
tasks.sourcesJar {
25+
duplicatesStrategy = DuplicatesStrategy.WARN
26+
}

Diff for: http-client/main/no/nav/tilleggsstonader/libs/http/client/RetryOAuth2HttpClient.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ class RetryOAuth2HttpClient(
2626
HttpServerErrorException.BadGateway::class,
2727
)
2828

29-
override fun post(oAuth2HttpRequest: OAuth2HttpRequest): OAuth2AccessTokenResponse? {
29+
override fun post(req: OAuth2HttpRequest): OAuth2AccessTokenResponse? {
3030
var retries = 0
3131

3232
while (true) {
3333
try {
34-
val response = super.post(oAuth2HttpRequest)
34+
val response = super.post(req)
3535
return response
3636
} catch (e: Exception) {
37-
handleException(e, retries++, oAuth2HttpRequest)
37+
handleException(e, retries++, req)
3838
}
3939
}
4040
}

Diff for: log/build.gradle.kts

+4
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ dependencies {
88
implementation("org.slf4j:slf4j-api")
99
implementation("jakarta.servlet:jakarta.servlet-api")
1010
}
11+
12+
tasks.sourcesJar {
13+
duplicatesStrategy = DuplicatesStrategy.WARN
14+
}

0 commit comments

Comments
 (0)