Skip to content

Commit 9596a75

Browse files
chore: migrate to non-deprecated type.
1 parent 1f6332e commit 9596a75

File tree

1 file changed

+2
-3
lines changed
  • build-logic/convention/src/main/kotlin/com/autonomousapps/convention/tasks/metalava

1 file changed

+2
-3
lines changed

build-logic/convention/src/main/kotlin/com/autonomousapps/convention/tasks/metalava/CheckApiTask.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import org.gradle.api.file.RegularFileProperty
99
import org.gradle.api.provider.Property
1010
import org.gradle.api.tasks.*
1111
import org.gradle.process.ExecOperations
12-
import org.gradle.process.internal.ExecException
12+
import org.gradle.process.ProcessExecutionException
1313
import org.gradle.workers.WorkAction
1414
import org.gradle.workers.WorkParameters
1515
import org.gradle.workers.WorkerExecutor
@@ -132,7 +132,7 @@ public abstract class CheckApiTask @Inject constructor(
132132

133133
try {
134134
result.assertNormalExitValue()
135-
} catch (e: ExecException) {
135+
} catch (e: ProcessExecutionException) {
136136
throw ApiChangedException(msg, e)
137137
}
138138
}
@@ -160,7 +160,6 @@ public abstract class CheckApiTask @Inject constructor(
160160
appendLine(" ".repeat(margin))
161161
}
162162

163-
164163
val lines = lines()
165164
return buildString {
166165
// Add top margin

0 commit comments

Comments
 (0)