File tree 1 file changed +2
-2
lines changed
src/main/kotlin/org/springdoc/openapi/gradle/plugin
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import org.gradle.api.tasks.Optional
21
21
import org.gradle.api.tasks.OutputDirectory
22
22
import org.gradle.api.tasks.TaskAction
23
23
import java.io.FileInputStream
24
- import java.net.ConnectException
24
+ import java.net.SocketException
25
25
import java.net.HttpURLConnection
26
26
import java.net.URL
27
27
import java.security.KeyStore
@@ -95,7 +95,7 @@ open class OpenApiGeneratorTask : DefaultTask() {
95
95
try {
96
96
val isYaml = url.lowercase(Locale .getDefault()).matches(Regex (" .+[./]yaml(/.+)*" ))
97
97
val sslContext = getCustomSslContext()
98
- await ignoreException ConnectException ::class withPollInterval Durations .ONE_SECOND atMost Duration .of(
98
+ await ignoreException SocketException ::class withPollInterval Durations .ONE_SECOND atMost Duration .of(
99
99
waitTimeInSeconds.get().toLong(),
100
100
SECONDS
101
101
) until {
You can’t perform that action at this time.
0 commit comments